GfsInitMask
From Gerris
GfsInitMask can be used to "mask out" (i.e. remove) cells on part of the mesh. Slip wall boundary conditions are applied on the boundaries of the resulting holes.
The syntax in parameter files is:
[ GfsGenericInit ] [ GfsFunction ]
where cells for which the GfsFunction is non-zero will be masked out.
Examples
- Dam break on complex topography
- Multi-layer Saint-Venant solver
- Wind-driven stratified lake
- Oscillations in a parabolic container
- Transcritical flow over a bump
- Transcritical flow with multiple layers
InitMask {} (y < 8.*(0.5 - 1./512.))
InitMask {} (y < RATIO*(0.5 - 1./pow(2,LEVEL)))
InitMask {} (y < RATIO*(0.5 - 1./pow(2,LEVEL)))
InitMask {} (y < 10000.*(0.5 - 1./pow(2,LEVEL)))
InitMask {} (y < 25.*(0.5 - 1./pow(2,LEVEL)))
InitMask {} (y < LENGTH*(0.5 - 1./pow(2,LEVEL)))