Volume of Fluid advection

Name

Volume of Fluid advection -- 

Synopsis


#include <gfs.h>


gdouble     gfs_plane_alpha                 (FttVector *m,
                                             gdouble c);
gdouble     gfs_plane_volume                (FttVector *m,
                                             gdouble alpha,
                                             gdouble c1);
void        gfs_tracer_vof_advection        (GfsDomain *domain,
                                             GfsAdvectionParams *par,
                                             GfsVariable *half);

Description

Details

gfs_plane_alpha ()

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.


gfs_plane_volume ()

gdouble     gfs_plane_volume                (FttVector *m,
                                             gdouble alpha,
                                             gdouble c1);

m : 
alpha : 
c1 : 
Returns : the volume (fraction) of a cubic cell lying under plane p.


gfs_tracer_vof_advection ()

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.