GfsInit

From Gerris

Jump to: navigation, search

GfsInit can be used to set initial conditions for a set of variables.

The syntax in parameter files is:

[ GfsGenericInit ] { V1 = [ GfsFunction ] V2 = [ GfsFunction ] … }

or

[ GfsGenericInit ] { (U,V) = ([ GfsFunction ],[ GfsFunction ]) … }

where V1, V2,… are scalar variables and U and V are variables defining the components of a vector field.

It is of course also possible to initialise the components of a vector field individually, however the vector notation is useful in combination with general orthogonal coordinates. In this case, the left-hand-side denotes the vector components in the computational space and the right-hand-side expressions for the components in physical space.

If the scalar variables do not already exist at the time of initialisation, they are created.

Examples

Views
Navigation
communication