| Gerris Flow Solver Reference Manual |
|---|
#include <gfs.h> #define GFS_SOURCE_GENERIC_CLASS (klass) #define GFS_SOURCE_GENERIC (obj) GfsSourceGeneric;GfsSourceGenericClass * gfs_source_generic_class (void);
GfsSourceGeneric is derived from GfsEvent and is used to associate a source term to a given variable.
The syntax in parameter files is as follows:
[ GfsEvent ] NAME
typedef struct {
GfsVariable * v;
gdouble (* mac_value) (GfsSourceGeneric *, FttCell *, GfsVariable *);
gdouble (* centered_value) (GfsSourceGeneric *, FttCell *, GfsVariable *);
gdouble (* face_value) (GfsSourceGeneric *, FttCellFace *, GfsVariable *);
void (* flux) (GfsSourceGeneric *, GfsDomain *,
GfsVariable *, GfsVariable *,
gdouble);
} GfsSourceGeneric;| <<< Source terms | Source terms >>> |