Replies: 1 comment
-
Hi @SadBoen , I assume that the result you are aiming for is a 100% hexahedral mesh rather than the surface mesh alone being quad? The reason I ask is that in your example script you specify polyhedral elements. There is not currently a quad map control available for surface meshing directly but if you make use of the multizone method you can achieve a 100% hex mesh as you show in the image.
I hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, Dear all,


In Workbench, I could use surface meshing function to generate very pretty cells as following pic:
and I found the key setting is 'mapped mesh' setting to yes.
But in Pyprimemesh, Does anyone know how to handle it? I have tried many times, my code and 3D model are as follows:
import os
import ansys.meshing.prime as prime
from ansys.meshing.prime.graphics.plotter import PrimePlotter
prime_client = prime.launch_prime(ip="127.0.0.1", port=50055)
pmodel = prime_client.model
mesh_util = prime.lucid.Mesh(model=pmodel)
step_file_path = os.path.join(os.getcwd(), "7145521xx-lw.scdocx")
mesh_util.read(file_name=step_file_path, cad_reader_route=prime.CadReaderRoute.SPACECLAIM)
mesh_util = prime.lucid.Mesh(model=pmodel)
scope_for_key_faces = prime.lucid.SurfaceScope(
part_expression="*",
entity_expression="m-lw-s",
scope_evaluation_type=prime.ScopeEvaluationType.LABELS
)
size_control_for_lw = pmodel.control_data.create_size_control(sizing_type=prime.SizingType.SOFT)
size_control_for_lw.set_soft_sizing_params(params=prime.SoftSizingParams(model=pmodel,
max=1.0, growth_rate=1.0))
surf_mesh_results = mesh_util.surface_mesh_with_size_controls(
size_control_names=size_control_for_lw,
generate_quads=True,
scope=scope_for_key_faces
)
vol_mesh_results = mesh_util.volume_mesh(
volume_fill_type=prime.VolumeFillType.POLY
)
display = PrimePlotter()
display.plot(pmodel)
display.show()
prime_client.exit()
7145521xx-lw.zip
I hope to receive guidance from everyone, thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions