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

Update wrapper.rst #654

Merged
merged 3 commits into from
Nov 29, 2023
Merged
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
28 changes: 0 additions & 28 deletions doc/source/user_guide/wrapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,31 +180,3 @@ The basic PyPrimeMesh wrapper-based workflow follows these steps:
)


Surface wrapping using the ``lucid.Mesh`` class
-----------------------------------------------

This example shows you the method required to replicate the preceding surface mesh results:

.. code:: python

model = prime_client.model
mesh_util = prime.lucid.Mesh(model)
input_file = r"D:/PyPrimeMesh/cylinder_with_flange.pmdat"
mesh_util.read(input_file)

# Create size control for remeshing
size_control2 = model.control_data.create_size_control(
sizing_type=prime.SizingType.HARD
)
size_control2.set_hard_sizing_params(prime.HardSizingParams(model=model, min=0.8))
size_control2.set_scope(prime.ScopeDefinition(model=model))

# Wrap and remesh the input parts
mesh_util.wrap(
min_size=0.2,
max_size=1.0,
input_parts="flange,pipe",
use_existing_features=True,
recompute_remesh_sizes=True,
remesh_size_controls=[size_control2],
)
Loading