GfsInitFraction
From Gerris
GfsInitFraction is used to initialise a volume-fraction field from a given surface (typically the shape of an interface to be represented using a Volume-Of-Fluid formulation).
The syntax in parameter files is:
[ GfsGenericInit ] V [ GfsSurface ]
where V is a GfsVariable.
If GfsSurface is defined implicitly, by convention the volume fraction of cells not cut by the interface is set to one if the implicit function is positive and zero otherwise.
Examples
- Rayleigh-Taylor instability
- Air-water flow around a Series 60 cargo ship
- Time-reversed VOF advection in a shear flow
- Time-reversed advection with curvature-based refinement
- Mass conservation
- Mass conservation with solid boundary
- Momentum conservation for large density ratios
- Circular droplet in equilibrium
- Axisymmetric spherical droplet in equilibrium
- Planar capillary waves
- Air-Water capillary wave
- Fluids of different densities
- Pure gravity wave
- Shape oscillation of an inviscid droplet
InitFraction {} T (0.05*cos (2.*M_PI*x) + y) { ty = 0.5 }
InitFraction T (1e-4 - z)
InitFraction T (ellipse (0, -.236338, 0.2, 0.2))
InitFraction { start = end } Tref (ellipse (0, -.236338, 0.2, 0.2))
InitFraction T (ellipse (0, -.236338, 0.2, 0.2))
InitFraction { start = end } Tref (ellipse (0, -.236338, 0.2, 0.2))
InitFraction T (- ellipse (0, 0.3, 0.1, 0.1))
InitFraction T1 (- ellipse (0, 0.3, 0.1, 0.1))
InitFraction T (- ellipse (-0.2, 0., 0.05, 0.05))
InitFraction T1 (- ellipse (-0.2, 0., 0.05, 0.05))
InitFraction T (- ellipse(-0.3,0,radius,radius))
InitFraction T CIRCLE
InitFraction T CIRCLE
InitFraction T (y - 0.01*cos (2.*M_PI*x))
InitFraction T (y - 0.01*cos (2.*M_PI*x))
InitFraction T (y - 0.01*cos (2.*M_PI*x))
InitFraction {} T (y - 0.01*cos (2.*M_PI*x))
InitFraction T ({ x += 0.5; y += 0.5; return x*x + y*y - RADIUS(x,y)*RADIUS(x,y); })

