Is it possible to do a 2D meshing with pyFluent? #2629
-
I am doing a 2D wind simulation now. And I have searched everywhere on the internet try to find a way to do 2D meshing with pyFluent but couldn't find any. So is it possible at all? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hello, unfortunately it is not possible to create a 2D mesh with pyfluent because there is no way of creating 2D mesh in FluentMeshing. |
Beta Was this translation helpful? Give feedback.
-
To those who may be interested, it is also possible to integrate a GUI script for workbench with Python/JavaScript for mesh to automatically generate meshes in Ansys. |
Beta Was this translation helpful? Give feedback.
Hello, unfortunately it is not possible to create a 2D mesh with pyfluent because there is no way of creating 2D mesh in FluentMeshing.
If you are looking to mesh a geometry with python, I recommend you to use gmsh python library: https://gmsh.info/doc/texinfo/gmsh.html
You can find lots of tutorials and it is possible to export your mesh and then run a simulation using pyFluent in solver mode.
Hope it helps