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

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 494
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited April 25 in Structures

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:

Comments

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 494
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    edited April 25
    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()