Page 1 of 1

slow to resolve steady state temperature

Posted: Tue May 05, 2015 10:41 am
by mkendrick
Hello,

This relates to the Kawamura test case (forced channel flow with heat transfer).
Periodicity is used the temperature is decomposed in bulk gradient and deviation, as described in this forum post http://code-saturne.org/forum/viewtopic.php?f=2&t=1612.

I've been trying to get this simulation running for some time and have been using a minimum working example approach. That is to say no turbulence model (iturb = 0) is used and a steady algorithm (idtvar = -1) is used.

I'm finding that the solution is taking a very large number of pseudo time steps to converge, one would expect the solution to converge almost immediately. The error seems to be caused by the normal residual not meeting the solver precision at each step.

I've tried making changes to many options and have run out of ideas as to what could be causing this behaviour.

Attached is the listing file and the user source terms.

Kind Regards,
Martyn

Re: slow to resolve steady state temperature

Posted: Tue May 05, 2015 11:10 pm
by Yvan Fournier
Hello,

I'll check your file later, but did you try the other "pseudo-stead" algorithm (idtvar = 2) ?

The idtvar = -1 option is not used much, and seems to provide mixed results (I'll let colleagues contradict me if they read this an I am wrong)

Regards,

Yvan

Re: slow to resolve steady state temperature

Posted: Wed May 06, 2015 4:23 pm
by mkendrick
I've tried running from SRC using idtvar = -1 and also running from the GUI and selecting 'steady algorithm' which I believe relates to idtvar. It would appear also that selecting between SIMPLE and SIMPLEC changes the value of idtvar. I have tested with both SIMPLE and SIMPLEC with the same behaviour.

Re: slow to resolve steady state temperature

Posted: Fri May 08, 2015 10:06 am
by mkendrick
Further to my previous email. Changing SIMPLE/SIMPLEC does indeed change idtvar between -1 and 2, respectively. This is done automatically if using the GUI.

Attached is the listing with idtvar = 2

The problem was still not converging as expected.

Re: slow to resolve steady state temperature

Posted: Mon May 11, 2015 6:26 pm
by Yvan Fournier
Hello,

I am not sure whether by "many iterations", you are talking about time steps or linear solver iterations.

The KAWAMURA test case being quite specific (due to its periodic aspect), it is dominated by diffusion, so the Jacobi solver used for scalars is a bad fit (especially if you use large time steps).

Could you try using the BiCGSTAB solver (instead of the "automatic" choice) for all linear solvers except for pressure ? And if that fails, try GMRES. In version 4.0, the BiCGSTAB's stopping criteria is better, and we also have a BiCGSTAB2, but hopefully, that test should be enough.

Regards,

Yvan