Writing a Script to Get Datas from Fluent

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
wockenz
Posts: 1
Joined: Fri Mar 17, 2023 1:44 pm

Writing a Script to Get Datas from Fluent

Post by wockenz »

Hello,
I am going to run lots of analysis so i need to write a script which gets datas like maximum, minimum and average pressures and velocities for several planes automatically after the solution done. I searched it but didn't find anything. Can you help me, please?
techGuy
Posts: 126
Joined: Sat Jun 18, 2022 12:48 am

Re: Writing a Script to Get Datas from Fluent

Post by techGuy »

Your question is more pertinent to OpenFOAM than it is to CfdOF. I would ask this in www.reddit.com/r/openfoam or https://www.cfd-online.com/Forums/openfoam/.

Tips:
- write your script in Python.
- it is much easier to do this sort of work in xonsh rather than bash.
- share whatever you write so that others can learn from your experience. If you write something nice/useful, maybe we would incorporate it into CfdOF.
- FYI, we will soon be incorporating "Add filename to output path" to CfdOF. This will make organizing the results from a large number of simulations much easier, assuming you change the filename for each simulation variation.
- If you are indeed wanting simulation results (pressure, flow, etc.) along various planes, that can be done in Paraview and Paraview is scriptable with Python.
Post Reply