I would like to save outputs with the writer to make animation on Paraview.
I need to save the data every 20 timesteps but only after the 10000th timestep.
I write in the setup file:
Code: Select all
<frequency period="formula">
if ( niter > 10000 ) { if (mod((niter - 10000), 20) == 0) { iactive=1; } }
</frequency>
Notice that I even try:
Code: Select all
<frequency period="formula">
if ( niter > 10000 ) { iactive=1; }
</frequency>
Here is the full setup for the writer output:
Code: Select all
<writer id="-1" label="results">
<directory name="postprocessing"/>
<format name="ensight" options="separate_meshes"/>
<frequency period="formula">if (niter > 10000) { iactive=1; }</frequency>
<output_at_start status="off"/>
<output_at_end status="off"/>
<time_dependency choice="fixed_mesh"/>
</writer>