print in probes_files at each time step ?

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
rezki

print in probes_files at each time step ?

Post by rezki »

Hello,

I run a simulation from 50000 to 300000 iterations (time step number) with 57 probes, and I set "nthist" at one. Simulation is at the 117000 iteration number but only the first ten iterations are printed in tmp files (from 50001 to 50010).

Is there a solution (with "nhist") to print results regularly in probes_files ?!
Regards.

Rezki
JamesMcNaughton
Posts: 72
Joined: Mon Mar 19, 2012 1:21 pm

Re: print in probes_files at each time step ?

Post by JamesMcNaughton »

You can type the following to print to the listing every 100 time steps.

Code: Select all

nthsav = 100
By default it will do the first 10 and then every 1/4 of the calculation.

Also I think the file is rewritten not appended to, so don't do this too often for big calculations or you'll waste a lot of time.
rezki

Re: print in probes_files at each time step ?

Post by rezki »

OK thanks for your help.

So I think that I can change this default value in "caltri" and print results every 1/10 of the calculation for example.

Code: Select all

 nthdef = (ntmabs-ntpabs)/4
 nthdef = (ntmabs-ntpabs)/10
Regards.

Rezki
JamesMcNaughton
Posts: 72
Joined: Mon Mar 19, 2012 1:21 pm

Re: print in probes_files at each time step ?

Post by JamesMcNaughton »

You can change it in usini1, anywhere in the usipes subroutine. So a good place is the line below where nthist is.

But yes if you wanted to override the default then change in caltri.
Post Reply