Skip to content

Commit

Permalink
doc/thin volume (#535)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Walters <[email protected]>
Co-authored-by: Hao Lee <[email protected]>
Co-authored-by: Ninad Kamat <[email protected]>
  • Loading branch information
4 people authored Jul 13, 2023
1 parent b67ed35 commit 2e325a6
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
Binary file added doc/source/images/thinvol_withoutimprints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions doc/source/user_guide/automesh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,63 @@ This example shows how to perform these steps:
)
prime.AutoMesh(model).mesh(part_id=part.id, automesh_params=automesh_params)
=========================
Thin volume mesh controls
=========================

The :class:`ThinVolumeControl <ansys.meshing.prime.ThinVolumeControl>` class creates prisms from a source face mesh projecting to a target with the specified number of layers.

..Note::
Thin volume controls can only be applied on the meshed surfaces.

Some guidelines for the thin volume mesh controls:

- Source and target face zonelets should not be the same.
- The number of prism layers to be created between source and target must be greater than zero.
- A source face zonelet cannot be a target face zonelet in a subsequent control.
- A source can only belong to two thin volume controls.
- Always choose the one with most features as the source.
- Target face zonelets cannot be adjacent to regions with cells whereas source face zonelets can.
- Sides of the new thin volume control cannot be adjacent to regions with existing cells.
- Sides of one thin volume control can only be a source to another thin volume control.

The below example shows how to:

* Create a thin volume control and set source and target.
* Set the thin volume mesh parameters and perform volume meshing.

.. code-block:: python
auto_mesh_params = prime.AutoMeshParams(model=model)
thin_vol_ctrls_ids = []
thin_vol_ctrl = model.control_data.create_thin_volume_control()
thin_vol_ctrl.set_source_scope(
prime.ScopeDefinition(model, label_expression="thin_src")
)
thin_vol_ctrl.set_target_scope(
prime.ScopeDefinition(model, label_expression="thin_trg")
)
.. code-block:: python
thin_vol_ctrl.set_thin_volume_mesh_params(
prime.ThinVolumeMeshParams(
model=model,
n_layers=3,
)
)
thin_vol_ctrls_ids.append(thin_vol_ctrl.id)
auto_mesh_params.thin_volume_control_ids = thin_vol_ctrls_ids
part = model.get_part_by_name("pipe2")
prime.AutoMesh(model).mesh(part.id, auto_mesh_params)
part_summary_res = part.get_summary(
prime.PartSummaryParams(model=model, print_id=False, print_mesh=True)
)
Layers of thin volume mesh created between the source and target surfaces.

.. figure:: ../images/thinvol_withoutimprints.png
:width: 800pt
:align: center

1 change: 1 addition & 0 deletions doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ stacker
stackable
Sweeper
sweeper
tet
tetrahedra
Topo
topo
Expand Down

0 comments on commit 2e325a6

Please sign in to comment.