CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Steady calculation (

S.H.Yang (Yang) January 5, 2005 10:29

Hi: I am a new user of OpenF
I am a new user of OpenFoam,I have some questions about OpenFoam:
1)when I run sonicFoam/forwardstep case,I change the initial internal U field from (0,0,0) to (3,0,0),why the calculation became divergence?
2)I want a calculation with sonicTurbFoam to keep the CoNum constant instand of DeltaT constant ,how can I do this?

Luiz Eduardo Bittencourt Sampaio (Sampaio) January 5, 2005 14:54

Hi, I did 2) in the follow

I did 2) in the following way:
added the following line to the code after calculating CoNumber (# include CourantNo.H)

alfat = CFL/CoNum;

Obviously, alfat had been previously defined as scalar and CFL was read from a file (defined as float).


S.H.Yang (Yang) January 6, 2005 03:42

Sampaio Thanks for your help
Thanks for your help.It works fine.

Eugene de Villiers (Eugene) January 11, 2005 10:28

You should be aware that Open
You should be aware that OpenFOAM already has a mechanism for maintaining a steady maximum CFL number.

See the dambreak tutorial and interFoam solver for details.


All times are GMT -4. The time now is 18:04.