Constant source term

Name

Constant source term -- Like gravity for velocity variables

Synopsis


#include <gfs.h>


#define     GFS_SOURCE_CONSTANT             (obj)
#define     GFS_IS_SOURCE_CONSTANT          (obj)

struct      GfsSourceConstant;

GfsSourceClass* gfs_source_constant_class   (void);

Description

GfsSourceConstant adds a constant source term to a given variable.

The syntax in parameter files is as follows:

[ GfsSource ] VALUE

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:

GfsSourceConstant {} V -9.81

Details

GFS_SOURCE_CONSTANT()

#define     GFS_SOURCE_CONSTANT(obj)

obj : 


GFS_IS_SOURCE_CONSTANT()

#define     GFS_IS_SOURCE_CONSTANT(obj)

obj : 


struct GfsSourceConstant

struct GfsSourceConstant {
  /*< private >*/
  GfsSource parent;

  /*< public >*/
  gdouble intensity;
};


gfs_source_constant_class ()

GfsSourceClass* gfs_source_constant_class   (void);

Returns :