Page 1 of 1
Crank-Nicolson
Posted: Sat Jun 17, 2017 1:07 am
by jjd
Dear
I am currently using version 4.3 of code_saturne, as I can setup the Crank Nicolson time schemes??.
(Default uses Backward Euler right?)
Best regards from Argentina
Jonathan
Re: Crank-Nicolson
Posted: Wed Jun 21, 2017 5:54 pm
by Yvan Fournier
Hello,
I'm not 100% sure about default. Are you using the GUI ? What do the listing and setup.log say ?
Regards,
Yvan
Re: Crank-Nicolson
Posted: Wed Jun 21, 2017 5:55 pm
by Yvan Fournier
Hello,
I'm not 100% sure about default. Are you using the GUI ? What do the listing and setup.log say ?
Regards,
Yvan
Re: Crank-Nicolson
Posted: Wed Jun 21, 2017 10:28 pm
by jjd
yes, I'm using the GUI,
setup.log says thetav = 1 and ischtp not look.
Re: Crank-Nicolson
Posted: Fri Jun 23, 2017 4:37 pm
by Luciano Garelli
Hello,
The option to change the time stepping scheme is "ischtp", the doxygen doc says that ischtp=1 is 1st order (default) and ischtp=2: 2nd order.
I think that you can set it using the subroutine usipsu in the cs_user_parameters.f90 by setting ischtp=2. Also, if ischtp=2 the code set thetav=0.5 for transient simulations (istat=1) in modini.f90
Regards,
Luciano
Re: Crank-Nicolson
Posted: Fri Jun 23, 2017 11:40 pm
by jjd
Great, thanks Luciano.
Regards