Hello,
I resume this discussion because I am pretty interesting in the answer Yvan
Best regards
Jérémy
Problem about 'Residual', 'Drift', 'CFL number'.
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Re: Problem about 'Residual', 'Drift', 'CFL number'.
Up
With Code_Saturne, how can we be sure that the calculation is converged ?
Especially for a transient calculation, which parameter we should check in listing file for convergence of each time step ?
Could you explain each parameter in the listing file : Rhs norm; Norm Residual, Drift, Time residual ?
Thank you
Jeremy
With Code_Saturne, how can we be sure that the calculation is converged ?
Especially for a transient calculation, which parameter we should check in listing file for convergence of each time step ?
Could you explain each parameter in the listing file : Rhs norm; Norm Residual, Drift, Time residual ?
Thank you
Jeremy
Re: Problem about 'Residual', 'Drift', 'CFL number'.
Hi all!
After some searching on this forum and the functions from code_saturne, I found that norm.residual is the residual I should check in order to see if the simulation is converging or not.
From the file ecrlis.f90, the drift or derive residual is defined as DRIFT=((x_n-x_(n-1) )^2*cell volume)/(time step).
Also from the file ecrlis.f90, the norm residual is defined as norm=sqrt(cs_gres(ncel,volume,w1,w1)),
where cs_gres is the global residual of 2 extensive vectors and is defined as 1/sum(vol) . sum(X.Y/vol)
and w1=((x_n-x_(n-1) )*cell volume)/(time step).
Am I correct? Could someone confirm this?
Best Regards,
Ionut
After some searching on this forum and the functions from code_saturne, I found that norm.residual is the residual I should check in order to see if the simulation is converging or not.
From the file ecrlis.f90, the drift or derive residual is defined as DRIFT=((x_n-x_(n-1) )^2*cell volume)/(time step).
Also from the file ecrlis.f90, the norm residual is defined as norm=sqrt(cs_gres(ncel,volume,w1,w1)),
where cs_gres is the global residual of 2 extensive vectors and is defined as 1/sum(vol) . sum(X.Y/vol)
and w1=((x_n-x_(n-1) )*cell volume)/(time step).
Am I correct? Could someone confirm this?
Best Regards,
Ionut
Re: Problem about 'Residual', 'Drift', 'CFL number'.
Can anyone confirm this? Or, if it is wrong, point me in the right direction?Ionut G wrote: ↑Wed Feb 12, 2020 11:36 am Hi all!
After some searching on this forum and the functions from code_saturne, I found that norm.residual is the residual I should check in order to see if the simulation is converging or not.
From the file ecrlis.f90, the drift or derive residual is defined as DRIFT=((x_n-x_(n-1) )^2*cell volume)/(time step).
Also from the file ecrlis.f90, the norm residual is defined as norm=sqrt(cs_gres(ncel,volume,w1,w1)),
where cs_gres is the global residual of 2 extensive vectors and is defined as 1/sum(vol) . sum(X.Y/vol)
and w1=((x_n-x_(n-1) )*cell volume)/(time step).
Am I correct? Could someone confirm this?
Best Regards,
Ionut
Thanks in advance,
Ionut
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Problem about 'Residual', 'Drift', 'CFL number'.
Hello,
Yes, this seems correct.
Best regards,
Yvan
Yes, this seems correct.
Best regards,
Yvan
Re: Problem about 'Residual', 'Drift', 'CFL number'.
Thank you very much Yvan!
Best regards,
Ionut
Best regards,
Ionut