Classes |
| | GfsFunctionConstant |
| | GfsFunctionSpatial |
Functions |
| GString * | gfs_function_expression (GtsFile *fp, gboolean *is_expression) |
| GfsFunction * | gfs_function_new (GfsFunctionClass *klass, gdouble val) |
| void | gfs_function_set_units (GfsFunction *f, gdouble units) |
| gchar * | gfs_function_description (GfsFunction *f, gboolean truncate) |
| gdouble | gfs_function_value (GfsFunction *f, FttCell *cell) |
| gdouble | gfs_function_face_value (GfsFunction *f, FttCellFace *fa) |
| void | gfs_function_set_constant_value (GfsFunction *f, gdouble val) |
| gdouble | gfs_function_get_constant_value (GfsFunction *f) |
| gboolean | gfs_function_is_constant (const GfsFunction *f) |
| GfsVariable * | gfs_function_get_variable (GfsFunction *f) |
| void | gfs_function_read (GfsFunction *f, gpointer domain, GtsFile *fp) |
| void | gfs_function_write (GfsFunction *f, FILE *fp) |
Detailed Description
Numerical constants and expressions.
- See also:
Syntax reference
Function Documentation
| gchar* gfs_function_description |
( |
GfsFunction * |
f, |
|
|
gboolean |
truncate |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| truncate | whether to truncate long descriptions. |
- Returns:
- a newly allocated string describing f.
| GString* gfs_function_expression |
( |
GtsFile * |
fp, |
|
|
gboolean * |
is_expression |
|
) |
| |
- Parameters:
-
| fp | a #GtsFile. |
| is_expression | a pointer to a boolean or NULL. |
Reads the expression (in which case is_expression is set to TRUE) or function from fp.
- Returns:
- a newly allocated GString containing the result or NULL in case of error.
| gdouble gfs_function_face_value |
( |
GfsFunction * |
f, |
|
|
FttCellFace * |
fa |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| fa | a #FttCellFace. |
- Returns:
- the value of function f at the center of face fa.
| gdouble gfs_function_get_constant_value |
( |
GfsFunction * |
f | ) |
|
- Parameters:
-
- Returns:
- the value of function f if f is constant, G_MAXDOUBLE otherwise.
| GfsVariable* gfs_function_get_variable |
( |
GfsFunction * |
f | ) |
|
- Parameters:
-
- Returns:
- the variable containing the value of f if f is a simple variable, NULL otherwise.
| gboolean gfs_function_is_constant |
( |
const GfsFunction * |
f | ) |
|
- Parameters:
-
- Returns:
- TRUE if f is a constant, FALSE otherwise.
| GfsFunction* gfs_function_new |
( |
GfsFunctionClass * |
klass, |
|
|
gdouble |
val |
|
) |
| |
- Parameters:
-
| klass | a #GfsFunctionClass. |
| val | a value. |
- Returns:
- a new #GfsFunction with constant value val.
| void gfs_function_read |
( |
GfsFunction * |
f, |
|
|
gpointer |
domain, |
|
|
GtsFile * |
fp |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| domain | a #GfsDomain. |
| fp | a #GtsFile. |
Calls the read() method of f.
| void gfs_function_set_constant_value |
( |
GfsFunction * |
f, |
|
|
gdouble |
val |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| val | the value. |
Sets the value of the constant function f to val.
| void gfs_function_set_units |
( |
GfsFunction * |
f, |
|
|
gdouble |
units |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| units | the units of f. |
Sets the units of f.
| gdouble gfs_function_value |
( |
GfsFunction * |
f, |
|
|
FttCell * |
cell |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| cell | a #FttCell or NULL. |
- Returns:
- the value of function f in cell.
| void gfs_function_write |
( |
GfsFunction * |
f, |
|
|
FILE * |
fp |
|
) |
| |
- Parameters:
-
| f | a #GfsFunction. |
| fp | a file pointer. |
Calls the write() method of f.