CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   editing case file for a solver (http://www.cfd-online.com/Forums/openfoam/73252-editing-case-file-solver.html)

 mecbe2002 March 3, 2010 02:37

editing case file for a solver

lets take a example to illustrate my question. Consider "rhopSonicFoam" solver.

its a Pressure-Density based compressible solver. how to decide what type of fluid properties to define i.e thermodynamic or thermophysical and also whether its a steady state solver or not and what are to be included in controlDict file.

One more question.. how to solve a steady state problem. In Fluent we give the convergence criteria, similarly how to represent in OpenFoam for a steady state problem.

 mecbe2002 March 4, 2010 00:24

 ternik March 6, 2010 17:37

Quote:
 Originally Posted by mecbe2002 (Post 248241) lets take a example to illustrate my question. Consider "rhopSonicFoam" solver. its a Pressure-Density based compressible solver. how to decide what type of fluid properties to define i.e thermodynamic or thermophysical and also whether its a steady state solver or not and what are to be included in controlDict file. One more question.. how to solve a steady state problem. In Fluent we give the convergence criteria, similarly how to represent in OpenFoam for a steady state problem. thanks in advance
Hi,

regarding the steady state problem - in OF there is simpleFoam (Steady-state solver for incompressible, turbulent flow; in addition, it works well for the laminar flow of non-Newtonian fluids!). Of course, you can set convergence criteria (like in Fluent or CFX) and the pyFoamSteadyRunner.py (I think it is a Python library) stops the OF solver (simpleFoam) when all linear solvers are below threshold (converged solution) and the last simulation state is written to dis. More on this (PyFoam) can be found here

http://openfoamwiki.net/index.php/Contrib_PyFoam

Hope this help!

Enjoy,
Primoz

 mecbe2002 March 7, 2010 00:47

Hi Primoz,