How do I extract skin mesh only on the inner liner of a hollow cylinder using PyDPF?

Ayush Kumar
Member, Moderator, Employee Posts: 494
✭✭✭✭
How do I extract skin mesh only on the inner liner of a hollow cylinder using PyDPF?
The named selection IC1 is created in Mechanical, scoping the inner face of the Geometry.
Tagged:
0
Comments
-
from ansys.dpf import core as dpf rst = r"\Path\to\file.rst" ds = dpf.DataSources(rst) model = dpf.Model(rst) mesh = model.metadata.meshed_region ns = dpf.operators.scoping.on_named_selection(named_selection_name="IC1", data_sources=ds) skin_mesh = dpf.operators.mesh.skin(mesh=mesh, mesh_scoping=ns).outputs.mesh.get_data() print(skin_mesh) skin_mesh.plot()
1