ansys / pyensight

Python API for EnSight
http://ensight.docs.pyansys.com
MIT License
6 stars 2 forks source link

Volume render demo and aero forces demo #370

Closed bndunn closed 2 months ago

bndunn commented 4 months ago

Added two basic demos: aero force calculation & volume rendering demo.

bndunn commented 3 months ago

@mariostieriansys I think this is ready to go!

bndunn commented 3 months ago

@mariostieriansys I don't understand what a code style failure is?

mariostieriansys commented 3 months ago

@bndunn I fixed the style for you @kecolburn I also took the chance to address a few of the comments Kevin and I put there. You will see that in the aero_forces example instead of finding the variables computed in EnSight, since the function "compute_forces" already returns the computed forces value in a dictionary, I am just walking that dictionary and printing the values.

Also in the volume rendering example, to make it easier, where possible I converted the script to use the object API. Mostly it was focused on the LPART loading where, with the object API, I managed to reduce it to three lines