Check if a node is on the surface using PyDPF.
Ayush Kumar
Member, Moderator, Employee Posts: 470
✭✭✭✭
in Structures
Comments
-
from ansys.dpf import core as dpf nid = 10 model = dpf.Model(r"\Path\to\file.rst") mesh = model.metadata.meshed_region skin_nodes = dpf.operators.mesh.skin( mesh=mesh).outputs.nodes_mesh_scoping().ids if nid in skin_nodes: print(f"Node ID {nid} lies on the surface.") else: print(f"Node ID {nid} lies in the body.")
0