![]() | ![]() | ![]() | 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 c, 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 alpha such that the volume of a cubic cell lying under the plane defined by m.x = alpha is equal to c. |
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 (m,alpha). |
gdouble gfs_line_alpha (FttVector *m,gdouble c);
m : | a FttVector. |
c : | a 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. |
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 (m,alpha). |
void gfs_line_center (FttVector *m,gdouble alpha,gdouble c, 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. |
c : | 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 >>> |