# GfsEventStop

### From Gerris

GfsEventStop is used to stop the simulation when steady-state is reached. This is done by monitoring the maximum change in a given variable at every locations between successive calls to GfsEventStop. If the absolute value of this change is smaller than or equal to a user-defined threshold the simulation is stopped.

The syntax in parameter files is:

[ GfsEvent ] V THRESHOLD ( DV )

where `V`

is a variable, `THRESHOLD`

a number and `DV`

an optional variable name. If `DV`

is given, the corresponding field contains the difference in `V`

between successive calls.

### Examples

EventStop { start = 100000 istep = 100 } A0 0.025

`
`

`
`

EventStop { step = 0.1 } U 1e-3 DU

`
`

`
`

EventStop { step = 0.1 } U 1e-3 DU

`
`

`
`

EventStop { istep = 10 } U 1e-4 DU

`
`

`
`

EventStop { istep = 10 } U 1e-4 DU

`
`

`
`

EventStop { istep = 10 } U 1e-4 DU

`
`

`
`

EventStop { istep = 10 } U 1e-4 DU

`
`

`
`

EventStop { istep = 1 } U 1e-6 DU

`
`

`
`

EventStop { istart = 10 istep = 10 } U 5e-6 DU

`
`

`
`

EventStop { istep = 1 } U 1e-6 DU

`
`

`
`

EventStop { istep = 1 } U 1e-8 DU

`
`

`
`

EventStop { istep = 1 } U 1e-4 DU

`
`

`
`

EventStop { step = 1 } U0 1e-9

`
`

`
`

EventStop { istep = 10 } T DT

`
`

`
`

EventStop { istep = 10 } T DT

`
`

`
`

EventStop { istep = 10 } K 1e-5 DK

`
`

`
`

EventStop { step = 1 } H 1e-5

`
`

`
`

EventStop { step = 1 } H 1e-3

`
`

`
`

EventStop { step = 1e-2 } V 1e-5 DV

`
`

`
`

EventStop { step = 1e-2 } U 1e-4 DU

`
`

`
`

EventStop { step = 1e-2 } U 1e-4 DU

`
`

`
`

EventStop { step = 1e-2 } U 1e-4 DU

`
`

`
`

EventStop { istep = 10 } Ex 0.001

`
`

`
`

EventStop { istep = 10 } Ex 0.001

`
`

`
`

EventStop { istep = 10 } Rhoe 0.001 { relative = 1 }

`
`

`
`

EventStop { istep = 10 } Phi 1e-4 DPhi

`
`

`
`

EventStop { istep = 1 } U 1e-9

`
`

`
`

EventStop { istep = 1 } U 1e-9

`
`