Name
Constant source term -- Like gravity for velocity variables
Description
GfsSourceConstant adds a constant source term to a given variable.
The syntax in parameter files is as follows:
where VALUE is the strength of the source.
To add the acceleration of gravity in the vertical direction in a 2D simulation one would use:
Details
GFS_SOURCE_CONSTANT()
#define GFS_SOURCE_CONSTANT(obj) |
GFS_IS_SOURCE_CONSTANT()
#define GFS_IS_SOURCE_CONSTANT(obj) |
struct GfsSourceConstant
struct GfsSourceConstant {
/*< private >*/
GfsSource parent;
/*< public >*/
gdouble intensity;
}; |
gfs_source_constant_class ()