Crank-Nicolson

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
jjd
Posts: 3
Joined: Fri Jun 16, 2017 7:11 pm

Crank-Nicolson

Post 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
Yvan Fournier
Posts: 4082
Joined: Mon Feb 20, 2012 3:25 pm

Re: Crank-Nicolson

Post 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
Yvan Fournier
Posts: 4082
Joined: Mon Feb 20, 2012 3:25 pm

Re: Crank-Nicolson

Post 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
jjd
Posts: 3
Joined: Fri Jun 16, 2017 7:11 pm

Re: Crank-Nicolson

Post by jjd »

yes, I'm using the GUI,
setup.log says thetav = 1 and ischtp not look.
Luciano Garelli
Posts: 284
Joined: Fri Dec 04, 2015 1:42 pm

Re: Crank-Nicolson

Post 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
jjd
Posts: 3
Joined: Fri Jun 16, 2017 7:11 pm

Re: Crank-Nicolson

Post by jjd »

Great, thanks Luciano.
Regards
Post Reply