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:
-
cell | a #FttCell. |
t | a #GfsVariableTracerVOFHeight. |
c | x, y or z. |
kappa | the curvature. |
kmax | the 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.
gdouble gfs_fit_curvature |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOF * |
t, |
|
|
gdouble * |
kmax |
|
) |
| |
- Parameters:
-
cell | a #FttCell containing an interface. |
t | a #GfsVariableTracerVOF. |
kmax | a 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.
gdouble gfs_height_curvature |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOF * |
t, |
|
|
gdouble * |
kmax |
|
) |
| |
- Parameters:
-
cell | a #FttCell containing an interface. |
t | a #GfsVariableTracerVOF. |
kmax | a 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.
gdouble gfs_height_curvature_new |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOFHeight * |
t, |
|
|
gdouble * |
kmax |
|
) |
| |
- Parameters:
-
cell | a #FttCell containing an interface. |
t | a #GfsVariableTracerVOFHeight. |
kmax | a 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.
void gfs_tracer_vof_advection |
( |
GfsDomain * |
domain, |
|
|
GfsAdvectionParams * |
par |
|
) |
| |
- Parameters:
-
domain | a #GfsDomain. |
par | the advection parameters. |
Advects the v field of par using the current face-centered (MAC) velocity field.
gdouble gfs_vof_center |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOF * |
t, |
|
|
FttVector * |
p |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
t | a #GfsVariableTracerVOF. |
p | a #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.
gdouble gfs_vof_correctness |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOF * |
t |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
t | a #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:
-
face | a #FttCellFace. |
t | a #GfsVariableTracerVOF. |
- Returns:
- the value of the VOF fraction defined by t, interpolated on face.
guint gfs_vof_facet |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOF * |
t, |
|
|
FttVector * |
p, |
|
|
FttVector * |
m |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
t | a #GfsVariableTracerVOF. |
p | a #FttVector array (of size 2 in 2D and 6 in 3D) |
m | a #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.
gdouble gfs_vof_facet_distance2 |
( |
FttCell * |
cell, |
|
|
GfsVariableTracerVOF * |
t, |
|
|
GtsPoint * |
p |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
t | a #GfsVariableTracerVOF. |
p | a #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.