Gerris
Classes | Functions

GfsVariableTracerVOF

GfsVariableTracer
Collaboration diagram for GfsVariableTracerVOF:

Classes

 GfsVariableTracerVOFHeight

Functions

void gfs_tracer_vof_advection (GfsDomain *domain, GfsAdvectionParams *par)
gdouble gfs_vof_face_value (const FttCellFace *face, GfsVariableTracerVOF *t)
guint gfs_vof_facet (FttCell *cell, GfsVariableTracerVOF *t, FttVector *p, FttVector *m)
gdouble gfs_vof_facet_distance2 (FttCell *cell, GfsVariableTracerVOF *t, GtsPoint *p)
gdouble gfs_vof_center (FttCell *cell, GfsVariableTracerVOF *t, FttVector *p)
gdouble gfs_fit_curvature (FttCell *cell, GfsVariableTracerVOF *t, gdouble *kmax)
gdouble gfs_height_curvature (FttCell *cell, GfsVariableTracerVOF *t, gdouble *kmax)
gboolean gfs_curvature_along_direction (FttCell *cell, GfsVariableTracerVOFHeight *t, FttComponent c, gdouble *kappa, gdouble *kmax)
gdouble gfs_height_curvature_new (FttCell *cell, GfsVariableTracerVOFHeight *t, gdouble *kmax)
gdouble gfs_vof_correctness (FttCell *cell, GfsVariableTracerVOF *t)

Detailed Description

Volume-Of-Fluid advection.

See also:

Syntax reference


Function Documentation

gboolean gfs_curvature_along_direction ( FttCell *  cell,
GfsVariableTracerVOFHeight *  t,
FttComponent  c,
gdouble *  kappa,
gdouble *  kmax 
)
Parameters:
cella #FttCell.
ta #GfsVariableTracerVOFHeight.
cx, y or z.
kappathe curvature.
kmaxthe maximum curvature.

Tries to compute an interface curvature for cell using height-functions on equally-spaced columns in direction c.

Returns:
TRUE if the curvature was successfully computed, FALSE otherwise.

Here is the call graph for this function:

gdouble gfs_fit_curvature ( FttCell *  cell,
GfsVariableTracerVOF *  t,
gdouble *  kmax 
)
Parameters:
cella #FttCell containing an interface.
ta #GfsVariableTracerVOF.
kmaxa pointer or NULL.

Computes an approximation of the curvature of the interface contained in cell using paraboloid fitting of the centroids of the reconstructed interface segments.

If kmax is not NULL, it is filled with the absolute value of the maximum surface curvature (note that in 2D this is just the absolute value of the mean curvature).

Returns:
(double in 3D) the mean curvature of the interface contained in cell.

Here is the call graph for this function:

gdouble gfs_height_curvature ( FttCell *  cell,
GfsVariableTracerVOF *  t,
gdouble *  kmax 
)
Parameters:
cella #FttCell containing an interface.
ta #GfsVariableTracerVOF.
kmaxa pointer or NULL.

An implementation of the Height-Function (HF) method generalised to adaptive meshes.

If kmax is not NULL, it is filled with the absolute value of the maximum surface curvature (note that in 2D this is just the absolute value of the mean curvature).

Returns:
(double in 3D) the mean curvature of the interface contained in cell, or GFS_NODATA if the HF method could not compute a consistent curvature.

Here is the call graph for this function:

gdouble gfs_height_curvature_new ( FttCell *  cell,
GfsVariableTracerVOFHeight *  t,
gdouble *  kmax 
)
Parameters:
cella #FttCell containing an interface.
ta #GfsVariableTracerVOFHeight.
kmaxa pointer or NULL.

Tries to estimate the curvature of an interface using height-functions, either on equally-spaced columns, non-equally spaced columns or using parabola fits of interface positions defined using the height-functions in all directions.

If kmax is not NULL, it is filled with the absolute value of the maximum surface curvature (note that in 2D this is just the absolute value of the mean curvature).

Returns:
(double in 3D) the mean curvature of the interface contained in cell, or GFS_NODATA if the HF method could not compute a consistent curvature.

Here is the call graph for this function:

void gfs_tracer_vof_advection ( GfsDomain *  domain,
GfsAdvectionParams *  par 
)
Parameters:
domaina #GfsDomain.
parthe advection parameters.

Advects the v field of par using the current face-centered (MAC) velocity field.

Here is the call graph for this function:

Here is the caller graph for this function:

gdouble gfs_vof_center ( FttCell *  cell,
GfsVariableTracerVOF *  t,
FttVector *  p 
)
Parameters:
cella #FttCell.
ta #GfsVariableTracerVOF.
pa #FttVector.

Fills p with the coordinates of the center of mass of the VOF-reconstructed interface facet defined by t.

Returns:
the area (length in 2D) of the VOF-reconstructed facet or 0 if the cell is not cut by the interface.

Here is the call graph for this function:

Here is the caller graph for this function:

gdouble gfs_vof_correctness ( FttCell *  cell,
GfsVariableTracerVOF *  t 
)
Parameters:
cella #FttCell.
ta #GfsVariableTracerVOF.

An implementation of the criterion of Cerne, Petelin, Tiselj (2002), to measure how well an interface is represented by a local VOF field.

Returns:
the "correctness" of the interface representation.
gdouble gfs_vof_face_value ( const FttCellFace *  face,
GfsVariableTracerVOF *  t 
)
Parameters:
facea #FttCellFace.
ta #GfsVariableTracerVOF.
Returns:
the value of the VOF fraction defined by t, interpolated on face.

Here is the call graph for this function:

guint gfs_vof_facet ( FttCell *  cell,
GfsVariableTracerVOF *  t,
FttVector *  p,
FttVector *  m 
)
Parameters:
cella #FttCell.
ta #GfsVariableTracerVOF.
pa #FttVector array (of size 2 in 2D and 6 in 3D)
ma #FttVector.

Fills p with the coordinates of points defining the VOF-reconstructed interface facet defined by t.

Fills m with the normal to the interface.

Returns:
the number of points defining the facet.

Here is the call graph for this function:

Here is the caller graph for this function:

gdouble gfs_vof_facet_distance2 ( FttCell *  cell,
GfsVariableTracerVOF *  t,
GtsPoint *  p 
)
Parameters:
cella #FttCell.
ta #GfsVariableTracerVOF.
pa #GtsPoint.
Returns:
the square of the distance between point p and the VOF-reconstructed interface facet defined by t or GFS_NODATA if cell does not contain an interface.

Here is the call graph for this function:

 All Data Structures Files Functions Variables