ansys / ansys/pymapdl-reader

Result animations don't work with the new pyvista default backend (trame)

Open
#281 7 comments 0 reactions 1 assignee Claimed by @AlejandroFernandezLuces View on GitHub
bug
Dominant language
Python
Stars
60
Forks
32
Avg merge
5h 50m
Merged PRs (30d)
8

Description

### 🤓 Before submitting the issue

- [X] I have visited the [Troubleshooting section](https://mapdl.docs.pyansys.com/troubleshoot/index.html).
- [X] I have searched among the [existing issues](https://github.com/ansys/pymapdl/issues?q=).
- [X] I am using a [Python virtual environment](https://docs.python.org/3/library/venv.html).
- [X] I am using the [latest version of PyMAPDL](https://github.com/ansys/pymapdl/releases) and its dependencies (fully updated virtual environment). You can update them using ``pip install --upgrade --upgrade-strategy eager ansys-mapdl-core``.

### 🔍 Description of the bug

The results object animation method is not compatible with the current backend that PyVista has switched to (trame). When trying to animate a solution (for example, from a nodal analysis) with ```mapdl.result.animate_nodal_solution(0)``` the trame window gets stuck loading until you stop the execution. Once you do, a static mesh is opened in the trame window.

Animations with the ```notebook=False``` option remain operative, but one thing I have noticed is that the mapping of the colorscale to the animation stopped working a few versions ago (so, for example, if you have something vibrating, it will always show the color for 0 deformation, even if it does animate the displacements). ```add_text=True```has also become less functional, as the text is barely readable.

### 🕵️ Steps To Reproduce

Steps:

1. Make any simple model and run a modal analysis.
2. Animate modal results from the results object.

### 💻 Which Operating System are you using?

Windows

### 🐍 Which Python version are you using?

3.11

### 📝 PyMAPDL Report

'

### 📝 Installed packages

'

### 📝 Logger output file

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.