Gerris
Functions

vof.c File Reference

Volume-Of-Fluid tracers. More...

Functions

gdouble gfs_line_area (const FttVector *m, gdouble alpha)
gdouble gfs_line_alpha (const FttVector *m, gdouble c)
void gfs_line_center (const FttVector *m, gdouble alpha, gdouble a, FttVector *p)
gdouble gfs_line_area_center (const FttVector *m, gdouble alpha, FttVector *p)
gdouble gfs_plane_volume (const FttVector *m, gdouble alpha)
gdouble gfs_plane_alpha (const FttVector *m, gdouble c)
void gfs_plane_center (const FttVector *m, gdouble alpha, gdouble a, FttVector *p)
gdouble gfs_plane_area_center (const FttVector *m, gdouble alpha, FttVector *p)
void gfs_youngs_gradient (FttCell *cell, GfsVariable *v, FttVector *g)
gdouble gfs_vof_plane_interpolate (FttCell *cell, FttVector *p, guint level, GfsVariableTracerVOF *t, FttVector *m)
gdouble gfs_vof_interpolate (FttCell *cell, FttVector *p, guint level, GfsVariableTracerVOF *t)
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)
GfsVariable * gfs_closest_height (FttCell *cell, GfsVariableTracerVOFHeight *t, FttComponent c, gdouble *orientation)

Detailed Description

Volume-Of-Fluid tracers.


Function Documentation

gdouble gfs_line_alpha ( const FttVector *  m,
gdouble  c 
)
Parameters:
ma #FttVector.
ca volume fraction.
Returns:
the value alpha such that the area of a square cell lying under the line defined by m.x = alpha is equal to c.

Here is the caller graph for this function:

gdouble gfs_line_area ( const FttVector *  m,
gdouble  alpha 
)
Parameters:
mnormal to the line.
alphaline constant.
Returns:
the area of the fraction of a cell lying under the line (m,alpha).

Here is the caller graph for this function:

gdouble gfs_line_area_center ( const FttVector *  m,
gdouble  alpha,
FttVector *  p 
)
Parameters:
mnormal to the line.
alphaline constant.
pa #FttVector.

Fills p with the position of the center of area of the fraction of a square cell lying under the line (m,alpha).

Returns:
the length of the facet.

Here is the caller graph for this function:

void gfs_line_center ( const FttVector *  m,
gdouble  alpha,
gdouble  a,
FttVector *  p 
)
Parameters:
mnormal to the line.
alphaline constant.
aarea of cell fraction.
pa #FttVector.

Fills p with the position of the center of mass of the fraction of a square cell lying under the line (m,alpha).

Here is the caller graph for this function:

gdouble gfs_plane_alpha ( const FttVector *  m,
gdouble  c 
)
Parameters:
ma #FttVector.
ca volume fraction.
Returns:
the value alpha such that the volume of a cubic cell lying under the plane defined by m.x = alpha is equal to c.

Here is the caller graph for this function:

gdouble gfs_plane_area_center ( const FttVector *  m,
gdouble  alpha,
FttVector *  p 
)
Parameters:
mnormal to the plane.
alphaplane constant.
pa #FttVector.

Fills p with the position of the center of area of the fraction of a cubic cell lying under the plane (m,alpha).

Returns:
the area of the facet.

Here is the call graph for this function:

Here is the caller graph for this function:

void gfs_plane_center ( const FttVector *  m,
gdouble  alpha,
gdouble  a,
FttVector *  p 
)
Parameters:
mnormal to the plane.
alphaplane constant.
avolume of cell fraction.
pa #FttVector.

Fills p with the position of the center of mass of the fraction of a cubic cell lying under the plane (m,alpha).

Here is the call graph for this function:

Here is the caller graph for this function:

gdouble gfs_plane_volume ( const FttVector *  m,
gdouble  alpha 
)
Parameters:
mnormal to the plane.
alphaplane constant.
Returns:
the volume of a cell lying under the plane (m,alpha).

Here is the caller graph for this function:

gdouble gfs_vof_interpolate ( FttCell *  cell,
FttVector *  p,
guint  level,
GfsVariableTracerVOF *  t 
)
Parameters:
cella #FttCell containing location p.
pthe center of the virtual cell.
levelthe level of the virtual cell.
ta #GfsVariableTracerVOF.

Computes the volume fraction of a virtual cell at level centered on p.

Returns:
the volume fraction of the virtual cell.

Here is the call graph for this function:

gdouble gfs_vof_plane_interpolate ( FttCell *  cell,
FttVector *  p,
guint  level,
GfsVariableTracerVOF *  t,
FttVector *  m 
)
Parameters:
cella #FttCell containing location p.
pthe center of the virtual cell.
levelthe level of the virtual cell.
ta #GfsVariableTracerVOF.
ma #FttVector.

Computes the equation m.x = alpha of the volume fraction plane of a virtual cell at level centered on p.

Returns:
alpha for the virtual cell.

Here is the call graph for this function:

Here is the caller graph for this function:

void gfs_youngs_gradient ( FttCell *  cell,
GfsVariable *  v,
FttVector *  g 
)
Parameters:
cella #FttCell.
va #GfsVariable.
ga #FttVector.

Fills g with the Youngs-averaged gradients of v normalised by the size of cell.

Here is the call graph for this function:

 All Data Structures Files Functions Variables