Generic source term

Name

Generic source term -- Abstract class for source terms

Synopsis


#include <gfs.h>

#define             GFS_SOURCE_GENERIC_CLASS            (klass)
#define             GFS_SOURCE_GENERIC                  (obj)

                    GfsSourceGeneric;

GfsSourceGenericClass* gfs_source_generic_class         (void);

Description

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

where NAME is the name of a variable.

Details

GFS_SOURCE_GENERIC_CLASS()

#define             GFS_SOURCE_GENERIC_CLASS(klass)

klass :


GFS_SOURCE_GENERIC()

#define             GFS_SOURCE_GENERIC(obj)

obj :


GfsSourceGeneric

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;


gfs_source_generic_class ()

GfsSourceGenericClass* gfs_source_generic_class         (void);

Returns :