-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rst.animate_nodal_solution doesn't work off notebook #142
Comments
Adding a comment to note: this TypeError happens with every version back to 0.51.6. Versions before that give another error, which is a key error during normal computation, my bet is that that happens due to either Pyvista updates or to this specific model being composed of all beam elements (thus screwing up something in the normals calculation). Now I'll probably see if downgrading ansys-mapdl-core fixes this, and later I'll try downgrading pyvista (animation is a key feature I'll be using to understand how to run and postprocess some transient models directly within python). Anyway, hopefully it's an easy fix and we can get this functionality back on the latest releases! EDIT (for the sake of completness): downgraded to |
Sorry about getting back to you so late regarding this. We're really trying to shift people over to DPF and this isn't getting as much love as it used to. However, as long as people are using it, I'm happy to support it. This should be fixed in #149 and I guess animation is missing from both PyDPF-Core and PyDPF-Post. |
Great that it works, thanks! When I can I'll have a deep dive into DPF-Core and Post, but yeah, animations just bring so much understanding when performing modal or tranisent analyses. I'd say the biggest hurdle (for me at least) that has prevented me from taking a dive into those libraries is the integration with PyMAPDL: a simple |
That's on the to-do list for sure, it's just a matter of getting around to it. I agree with having simple integration and that's a feature being implemented in ansys/pymapdl#1298 |
🔍 Before submitting the issue
🐞 Description of the bug
Launching animations on ipynb files within VSCode demands that the user runs the animate nodal solution with the notebook=False keyword argument, else you'd only get the first frame and the animation would get stuck. However, the latest version of the rst class doesn't allow the use of this kwarg, thus completely eliminating the possibility of result animation in this manner.
The error happens once
animate_nodal_solution
calls_plot_point_scalars
, as this tries to pass on the notebook argument toplotter.add_mesh
. This keyword argument obviously isn't meant for that function, and thus, you get aTypeError
.I'll try to downgrade version by version once I have the time, see if that fixes it, will update here if I can solve it by only downgrading the reader (although incompatibilities with core may arise).
📝 Steps to reproduce
result = mapdl.result
result.animate_nodal_solution(0, notebook=False)
💻 Which operating system are you using?
Windows
🐍 Which Python version are you using?
3.8
📦 Installed packages
The text was updated successfully, but these errors were encountered: