ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
419 stars 117 forks source link

Show deformation (without other nodal information) #348

Open natter1 opened 3 years ago

natter1 commented 3 years ago

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)?

akaszynski commented 3 years ago

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.

mikerife commented 1 year ago

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

germa89 commented 2 months ago

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

GitHub
Applying increasing force over time in a specific point · ansys pymapdl · Discussion #3021
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...