Automating Ansys with PyFluent (https://github.com/ansys/pyfluent)
Setting up: pip install ansys-fluent-core If you set up a virtual python environment and don't install it globally then make sure your editor (ie VSCode) can make use of it. https://developer.ansys.com/blog/pyfluent-cheat-sheet
Tutorials from ANSYS https://fluent.docs.pyansys.com/version/stable/user_guide/index.html
In-depth API documentation from ANSYS (what we will be using) https://fluent.docs.pyansys.com/version/stable/api/index.html
There is currently (2025) a transition from the old cli commands to the new pyfluent interface. As of yet generating a python journal file is only available in meshing mode but not solution mode. Thus it is easier to mesh very coarsely -> create journal file -> run file -> get mesh generated by script -> set up solution based off of the script generated mesh -> save solution case file -> change values for mesh creation to a much more refined mesh -> replace the course mesh in the case file with the refined mesh -> change values in case that we want to iterate over using pyfluent -> run solution with refined mesh.
This allows us to overcome the large learning curve that setting up an entire case in pyfluent can be and focusing on learning only the needed documentation.