CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Steady calculation (http://www.cfd-online.com/Forums/openfoam-solving/60665-steady-calculation.html)

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

Hi: I am a new user of OpenF
 
Hi:
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 13:54

Hi, I did 2) in the follow
 
Hi,

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

alfat = CFL/CoNum;
runTime.setDeltaT(alfat*runTime.deltaT().value());

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

Cheers,
Luiz

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

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

Eugene de Villiers (Eugene) January 11, 2005 09: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.

Eugene


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