pymapdl icon indicating copy to clipboard operation
pymapdl copied to clipboard

Show deformation (without other nodal information)

Open natter1 opened this issue 4 years ago • 3 comments

I wanted to plot deformation, but the only way I found to do this was using plot_nodal_solution(). But this allways uses a colorcoded overlay to show additional information (e.g. UX deformation). Is there a way to simply plot the deformation (maybe only color elementtypes)?

natter1 avatar Feb 04 '21 01:02 natter1

Sounds like we need to just add another method that simply plots deformation rather than including the scalars as well. I can implement that in the next release, which will probably have to happen over the weekend.

BTW, thanks for the well wishes! It's been quite a transition, and I hope to keep supporting all the early adopters with the new modules and APIs.

akaszynski avatar Feb 04 '21 05:02 akaszynski

Hi @natter1 @akaszynski @germa89 Sorry about coming to this so late. See the APDL command UPCOORD. You can add the displacements stored in the MAPDL database (in memory, so need to use SET command to read in some result) with UPCOORD, plot the elements, then back the displacements back out with a negative scale factor. So:

mapdl.post1()
mapdl.set('last')
mapdl.upcoord(1)
mapdl.eplot()

mapdl.upcoord(-1)

The eplot will be the deformed elements plotted. We could probably do something similar using a grey color map and a single contour value when plotting displacements.

Mike

mikerife avatar Aug 05 '22 19:08 mikerife

Related: https://github.com/ansys/pymapdl/discussions/3021#discussioncomment-9227847

GitHub
Hi everybody, I have looked and looked and looked and I can't find any examples of where you apply an increasing load to a specific point over a decided amount of timesteps. Is that something you g...

germa89 avatar Apr 29 '24 10:04 germa89