Closed EgbertvdVeen closed 1 month ago
Hello @EgbertvdVeen, thank you for raising this issue. I have indeed been able to reproduce this with one of our example files:
import ansys.dpf.core as dpf
from ansys.dpf.core import examples
from ansys.dpf.core.plotter import DpfPlotter
model = dpf.Model(examples.find_simple_bar())
main_mesh = model.metadata.meshed_region
plane = dpf.fields_factory.create_3d_vector_field(1, dpf.locations.overall)
plane.append([0, 1, 0], 1)
origin = dpf.fields_factory.create_3d_vector_field(1, dpf.locations.overall)
origin.append([0, 2.0, 0], 1)
cut_mesh = dpf.operators.mesh.mesh_plan_clip(main_mesh, normal=plane, origin=origin).eval(2)
print(cut_mesh)
print(cut_mesh.nodes.scoping.ids)
print(cut_mesh.elements.scoping.ids) # Element IDs are all zeroes
plotter = DpfPlotter()
plotter.add_mesh(main_mesh, style='wireframe')
plotter.add_mesh(cut_mesh)
plotter.show_figure()
We will work on fixing this as quickly as possible.
Best regards,
Paul
Hi @PProfizi,
Great, thanks!
With kind regards,
Egbert
Before submitting the issue
Description of the bug
All the element-ID's of the new "cut mesh" from the mesh_plan_clip operator have a number 0 instead of a unique ID-number.
Steps To Reproduce
I have made a simple beam model that is fixed on one side and is loaded with a lateral force on the other side. With the script below I read in the model, define the normal and origin of the plane and cut the main mesh. When displaying the element and node ID's of the cut mesh the element ID's show only zero's:
Which Operating System causes the issue?
Windows
Which DPF/Ansys version are you using?
Ansys 2024 R1
Which Python version causes the issue?
3.9
Installed packages
I added the pip freeze file. piplist.txt