Volume of Fluid advection

Name

Volume of Fluid advection -- 

Synopsis


#include <gfs.h>


gdouble             gfs_plane_alpha                     (const FttVector *m,
                                                         gdouble c);
gdouble             gfs_plane_volume                    (const FttVector *m,
                                                         gdouble alpha);
gdouble             gfs_line_alpha                      (const FttVector *m,
                                                         gdouble c);
gdouble             gfs_line_area                       (const FttVector *m,
                                                         gdouble alpha);
void                gfs_line_center                     (const FttVector *m,
                                                         gdouble alpha,
                                                         gdouble a,
                                                         FttVector *p);
void                gfs_tracer_vof_advection            (GfsDomain *domain,
                                                         GfsAdvectionParams *par);

Description

Details

gfs_plane_alpha ()

gdouble             gfs_plane_alpha                     (const 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                    (const FttVector *m,
                                                         gdouble alpha);

m :

normal to the plane.

alpha :

plane constant.

Returns :

the volume of a cell lying under the plane (m,alpha).


gfs_line_alpha ()

gdouble             gfs_line_alpha                      (const 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.


gfs_line_area ()

gdouble             gfs_line_area                       (const FttVector *m,
                                                         gdouble alpha);

m :

normal to the line.

alpha :

line constant.

Returns :

the area of the fraction of a cell lying under the line (m,alpha).


gfs_line_center ()

void                gfs_line_center                     (const 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.


gfs_tracer_vof_advection ()

void                gfs_tracer_vof_advection            (GfsDomain *domain,
                                                         GfsAdvectionParams *par);

Advects the v field of par using the current face-centered (MAC) velocity field.

domain :

a GfsDomain.

par :

the advection parameters.