#include "cs_base.h"
#include "cs_defs.h"
Go to the source code of this file.
|
typedef void( | cs_analytic_func_t )(cs_real_t time, const cs_real_3_t xyz, cs_get_t *retval) |
| Generic analytic function. More...
|
|
typedef cs_real_t( | cs_timestep_func_t )(int time_iter, double time) |
| Simple function to define the time step according to the number of iteration already done. More...
|
|
typedef void( | cs_onevar_law_func_t )(double var_value, const void *law_param, cs_get_t *retval) |
| Compute the value of a quantity according to a law depending only on one variable. This law is described by a set of parameters stored in a structure. result = law(var_value) More...
|
|
typedef void( | cs_twovar_law_func_t )(double var1_value, double var2_value, const void *law_param, cs_get_t *retval) |
| Compute the value of a quantity according to a law depending only on two variables. This law is described by a set of parameters stored in a structure. result = law(var1_value, var2_value) More...
|
|
typedef void( | cs_scavec_law_func_t )(double var1_value, const double var2_vect[], const void *law_param, cs_get_t *retval) |
| Compute the value of a quantity according to a law depending only on two variables (the first one is a scalar and the second one a vector) This law is described by a set of parameters stored in a structure. result = law(var1_value, var2_value) More...
|
|
#define CS_CDO_BUILD_HCONF (1 << 0) |
#define CS_CDO_BUILD_LOC_HCONF (1 << 1) |
#define CS_CDO_DUAL_SOURCE (1 << 3) |
#define CS_CDO_PRIMAL_SOURCE (1 << 2) |
#define CS_FLAG_BORDER (1 << 6) |
#define CS_FLAG_CELL (1 << 5) |
#define CS_FLAG_DUAL (1 << 1) |
#define CS_FLAG_EDGE (1 << 3) |
#define CS_FLAG_FACE (1 << 4) |
#define CS_FLAG_PRIMAL (1 << 0) |
#define CS_FLAG_SCAL (1 << 7) |
#define CS_FLAG_SCAN_BY_CELL (1 << 10) |
#define CS_FLAG_STATE_CELLWISE (1 << 1) |
#define CS_FLAG_STATE_CIRCULATION (1 << 4) |
#define CS_FLAG_STATE_DENSITY (1 << 6) |
#define CS_FLAG_STATE_FLUX (1 << 5) |
#define CS_FLAG_STATE_OWNER (1 << 7) |
#define CS_FLAG_STATE_POTENTIAL (1 << 3) |
#define CS_FLAG_STATE_UNIFORM (1 << 0) |
#define CS_FLAG_STATE_UNSTEADY (1 << 2) |
#define CS_FLAG_TENS (1 << 9) |
#define CS_FLAG_VECT (1 << 8) |
#define CS_FLAG_VERTEX (1 << 2) |
#define CS_SCHEME_FLAG_CDOFB (1 << 2) |
#define CS_SCHEME_FLAG_CDOVB (1 << 0) |
#define CS_SCHEME_FLAG_CDOVCB (1 << 1) |
#define CS_SCHEME_FLAG_HHO (1 << 3) |
#define CS_SCHEME_FLAG_SCALAR (1 << 4) |
#define CS_SCHEME_FLAG_VECTOR (1 << 5) |
Generic analytic function.
- Parameters
-
[in] | time | when ? |
[in] | xyz | where ? |
[in,out] | retval | result of the function |
typedef void( cs_onevar_law_func_t)(double var_value, const void *law_param, cs_get_t *retval) |
Compute the value of a quantity according to a law depending only on one variable. This law is described by a set of parameters stored in a structure. result = law(var_value)
- Parameters
-
[in] | var_value | value of the variable attached to this law |
[in] | law_param | set of paramters related to the current law |
[in,out] | retval | result of the function |
typedef void( cs_scavec_law_func_t)(double var1_value, const double var2_vect[], const void *law_param, cs_get_t *retval) |
Compute the value of a quantity according to a law depending only on two variables (the first one is a scalar and the second one a vector) This law is described by a set of parameters stored in a structure. result = law(var1_value, var2_value)
- Parameters
-
[in] | var1_value | value of the first variable attached to this law |
[in] | var2_value | value of the second variable attached to this law |
[in] | law_param | set of paramters related to the current law |
[in,out] | retval | result of the function |
typedef cs_real_t( cs_timestep_func_t)(int time_iter, double time) |
Simple function to define the time step according to the number of iteration already done.
- Parameters
-
[in] | time_iter | current number of iterations |
[in] | time | value of the time at the end of the last iteration |
- Returns
- the value of the time step
typedef void( cs_twovar_law_func_t)(double var1_value, double var2_value, const void *law_param, cs_get_t *retval) |
Compute the value of a quantity according to a law depending only on two variables. This law is described by a set of parameters stored in a structure. result = law(var1_value, var2_value)
- Parameters
-
[in] | var1_value | value of the first variable attached to this law |
[in] | var2_value | value of the second variable attached to this law |
[in] | law_param | set of paramters related to the current law |
[in,out] | retval | result of the function |
Enumerator |
---|
CS_SPACE_SCHEME_CDOVB |
|
CS_SPACE_SCHEME_CDOVCB |
|
CS_SPACE_SCHEME_CDOFB |
|
CS_SPACE_SCHEME_HHO |
|
CS_SPACE_N_SCHEMES |
|
const char* cs_base_strtf |
( |
bool |
boolean | ) |
|
Return a string "true" or "false" according to the boolean.
- Parameters
-
- Returns
- a string "true" or "false"
Check if a location matches a referenced support.
- Parameters
-
[in] | location | flag corresponding to the location to check |
[in] | reference | flag corresponding to the referenced support |
- Returns
- true or false
Define a cs_nvec3_t structure from a cs_real_3_t.
- Parameters
-
[in] | v | vector of size 3 |
[out] | qv | pointer to a cs_nvec3_t structure |