Skip to content

fpfcmsr/FluentScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FluentScripts

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

https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/external_compressible_flow.html#sphx-glr-examples-00-fluent-external-compressible-flow-py

https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/exhaust_system_settings_api.html#sphx-glr-examples-00-fluent-exhaust-system-settings-api-py

In-depth API documentation from ANSYS (what we will be using) https://fluent.docs.pyansys.com/version/stable/api/index.html

The General Solution / Idea

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.

About

Automating Ansys with PyFluent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published