CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Under-Relaxation for Temperature Equartion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2010, 14:12
Default Under-Relaxation for Temperature Equartion
  #1
Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 16
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))
);

TEqn.relax();

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
Hagen is offline   Reply With Quote

Old   November 25, 2010, 03:54
Default
  #2
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18
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

Reply


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 Off
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 12:57
Relaxation and convergence sammi Phoenics 0 March 20, 2008 04:32
relaxation parameter rvndr Main CFD Forum 0 May 5, 2004 13: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 12:13


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