Replies: 1 comment 5 replies
-
Hi @sergo8 from ansys.dpf import core as dpf
from ansys.dpf.core import examples
model = dpf.Model(examples.find_static_rst())
mesh = model.metadata.meshed_region
my_element_scoping = dpf.mesh_scoping_factory.elemental_scoping([1])
node_mesh = dpf.operators.mesh.from_scoping(scoping=my_element_scoping, mesh=mesh, nodes_only=True)
node_mesh.eval()
result_mesh = node_mesh.outputs.mesh()
print(result_mesh) And it returned: Is that what you had in mind? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems that input parameter: nodes_only=True - does not work.
See the code below:
node_mesh = core.operators.mesh.from_scoping(scoping=el_scoping, mesh=mesh, nodes_only=True)
node_mesh.eval()
result_mesh = node_mesh.outputs.mesh()
It gives the following output:
DPF Meshed Region:
668 nodes
75 elements
Unit: mm
With solid (3D) elements
Instead, I guess it has to return only selected nodes, but not both elements and nodes.
Is this a bug or I do it in a wrong way?
Beta Was this translation helpful? Give feedback.
All reactions