Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/thin volume #535

Merged
merged 17 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading