Page 1 of 1

Exec Intervals, but skip first iteration

Posted: 18 May 2021, 17:00
by AndrejR
Hi, I have a steady-state simulation, in which I want a certain solver to run only every 5 iterations (5th iteration, 10th iteration...). I attempted to do this:

Code: Select all

Solver 8:
   Exec Solver: after timestep
   Exec Intervals(1): 5
but this makes solver run on 1st iteration, 6th iteration etc. What can I do to skip that first execution?

Re: Exec Intervals, but skip first iteration

Posted: 20 May 2021, 01:23
by kevinarden
You should read through Chapter 13, there is some discussion on controlling when solvers run, or don't run.

https://www.nic.funet.fi/pub/sci/physic ... Manual.pdf

Re: Exec Intervals, but skip first iteration

Posted: 31 May 2021, 16:01
by AndrejR
I am thinking that maybe Exec Condition with custom Fortran function might help me. But I need to pass it current value of Steady-State iterator. Is this possible? I cannot find any such information in the documentation.

EDIT: I just realized that's just variable Time in Steady-State simulations. A little confusing, but I got it. I will try it and let you know if it worked.

EDIT2: Works like a charm, thanks!