![]() | ![]() | ![]() | Gerris Flow Solver Reference Manual | ![]() |
---|
#include <gfs.h>gdouble gfs_plane_alpha (FttVector *m,gdouble c);gdouble gfs_plane_volume (FttVector *m,gdouble alpha,gdouble c1);gdouble gfs_line_alpha (FttVector *m,gdouble c);gdouble gfs_line_area (FttVector *m,gdouble alpha,gdouble c1);void gfs_line_center (FttVector *m,gdouble alpha,gdouble a, FttVector *p);void gfs_cell_vof_advection (FttCell *cell, FttComponent c, GfsAdvectionParams *par);void gfs_tracer_vof_advection (GfsDomain *domain, GfsAdvectionParams *par, GfsVariable *half);
gdouble gfs_plane_alpha (FttVector *m,gdouble c);
m : | a FttVector. |
c : | a volume fraction. |
Returns : | the value |
gdouble gfs_plane_volume (FttVector *m,gdouble alpha,gdouble c1);
m : | normal to the plane. |
alpha : | plane constant. |
c1 : | width of the cell. |
Returns : | the volume of a parallelepipedic cell (c1,1,1) lying under
the plane ( |
gdouble gfs_line_alpha (FttVector *m,gdouble c);
m : | a FttVector. |
c : | a volume fraction. |
Returns : | the value |
gdouble gfs_line_area (FttVector *m,gdouble alpha,gdouble c1);
m : | normal to the line. |
alpha : | line constant. |
c1 : | width of the cell. |
Returns : | the area of the fraction of a rectangular cell (c1,1)
lying under the line ( |
void gfs_line_center (FttVector *m,gdouble alpha,gdouble a, FttVector *p);
Fills p
with the position of the center of mass of the fraction of
a square cell lying under the line (m
,alpha
).
m : | normal to the line. |
alpha : | line constant. |
a : | area of cell fraction. |
p : | a FttVector. |
void gfs_cell_vof_advection (FttCell *cell, FttComponent c, GfsAdvectionParams *par);
cell : | |
c : | |
par : |
|
void gfs_tracer_vof_advection (GfsDomain *domain, GfsAdvectionParams *par, GfsVariable *half);
Advects the v
field of par
using the current face-centered (MAC)
velocity field.
If half
is not NULL, the half-timestep value of par
->v is
stored in the corresponding variable.
domain : | a GfsDomain. |
par : | the advection parameters. |
half : | a GfsVariable or NULL. |
<<< Advection | Poisson solver >>> |