-
Hi all, I am working on a project where I need to estimate the relative distance between bodies after deformation. My model consists of 3 bodies (modeled with shell elements) and they are connected by bolts (beam elements). The number of nodes and elements for each may not match, so I do not have pair nodes on which to easily calculate the relative distance. What are your thoughts on this? Do you have any strategies in mind? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @derne058 If you want to use Pyvista meshes to calculate the distance, you will have to obtain the mesh of the deformed and undeformed elements. from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
# define your model
undef_mesh = mapdl.mesh.grid
# Solve your model
mapdl.solution()
mapdl.antype("static")
# more options...
mapdl.solve()
# Updating mesh
mapdl.post1()
mapdl.set('last')
mapdl.upcoord(1)
deformed_mesh = mapdl.mesh.grid
# Use pyvista to compare distances I think the approach is decent. Hopefully @mikerife agrees with me, he is the expert. Related: |
Beta Was this translation helpful? Give feedback.
Hi @derne058
If you want to use Pyvista meshes to calculate the distance, you will have to obtain the mesh of the deformed and undeformed elements.
I think the approach is decent. Hopefully @mikerife agrees with me, he is the expert.
Related: