ansys / pymapdl-reader

Legacy binary interface to MAPDL binary files.
https://reader.docs.pyansys.com
MIT License
47 stars 23 forks source link

Cyclic Result Analysis Plotting #412

Open norandex opened 5 months ago

norandex commented 5 months ago

🔍 Before submitting the issue

🐞 Description of the bug

I encounter some issues while trying to plot mode shape of cyclic analysis:

1) why do the colors merge on the colorbar in some cases? Is there a way to fix color ranges? image

But in the other cases (cumulative indices) the colors are OK: image

2) There is a commented parameter in cyclic_reader.py: image This affects on the plot for certain cumulative indices. Could you please explain such behavior? Is there a way to automatically determine which formula we should use: result_combined = result - result_r 1j or result_combined = result + result_r 1j ?

📝 Steps to reproduce

from ansys.mapdl import reader as pymapdl_reader
from ansys.mapdl.reader import examples

result = examples.download_sector_modal()
result.plot_nodal_displacement(15, show_displacement=True,displacement_factor=0.001,cpos="yz",show_scalar_bar=True,full_rotor=True,cmap=["blue","cyan","aquamarine","lime","greenyellow","yellow","orange","red"])

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

I'm using built-in example download_sector_modal. Ansys v15.0 i guess

🐍 Which Python version are you using?

3.10

📦 Installed packages

ansys-mapdl-core==0.64.1
ansys-mapdl-reader==0.53.0