CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Under-Relaxation for Temperature Equartion

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 24, 2010, 14:12
Default Under-Relaxation for Temperature Equartion
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 9
Hagen is on a distinguished road
Hello Everybody,

I try to run a calculation for the straight channel on different Reynolds numbers with a modified simpleFoam solver. It solves the energy equation and models the scalar flux with a differential approach. The part where the equation is solved looks like this:

//Energy equation ---------------------------------------------------------------------------------------------------------------------------
fvScalarMatrix TEqn
fvm::div(phi, T)
- fvm::Sp(fvc::div(phi), T)
- fvm::laplacian(kappaEff, T)
- fvc::div(Dp & fvc::grad(p))


eqnResidual = TEqn.solve().initialResidual();
maxResidual = max(eqnResidual, maxResidual);

Unfortunately the solver becomes unstable for Reynolds numbers higher than 25000. I guess under-relaxation for T would solve the problem.
When I define for example T=0.7 in the fvSolutions dictionary, the solver makes only one iteration every timestep.
Does anybody know where the bug is? Do you have different suggestions to make the calculation stable?
Thank you for your help

Hagen is offline   Reply With Quote

Old   November 25, 2010, 03:54
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 11
idrama is on a distinguished road
When you have modified something then it is hard to recognize it without seeing the code. However, instead of using relaxation factors, you can reduce the bound of the maxCo number. According to theory, see Versteeg p. 265 (I think), has it the same effect as using RF.
idrama is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Purpose of relaxation factors Mohsin FLUENT 5 April 30, 2010 11:57
Relaxation and convergence sammi Phoenics 0 March 20, 2008 04:32
relaxation parameter rvndr Main CFD Forum 0 May 5, 2004 12:34
Question on adjusting relaxation factor CFD Rookie Main CFD Forum 3 January 26, 2004 15:37
Relaxation factor Moon Siemens 1 June 13, 2003 11:13

All times are GMT -4. The time now is 03:08.