#include "cs_base.h"
#include "cs_defs.h"
#include "cs_math.h"
Go to the source code of this file.
|
typedef unsigned char | cs_mask_t |
|
typedef void() | cs_analytic_func_t(cs_real_t time, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t *coords, bool compact, void *input, cs_real_t *retval) |
| Generic function pointer for an analytic function elt_ids is optional. If not NULL, it enables to access in coords at the right location and the same thing to fill retval if compact is set to false. More...
|
|
typedef cs_real_t() | cs_timestep_func_t(int time_iter, double time, void *input) |
| Function which defines the time step according to the number of iteration already done, the current time and any structure given as a parameter. More...
|
|
◆ CS_CDO_ASSEMBLE_BUF_SIZE
#define CS_CDO_ASSEMBLE_BUF_SIZE 99 |
◆ CS_CDO_N_MAX_REACTIONS
#define CS_CDO_N_MAX_REACTIONS 8 |
◆ CS_CDO_OFF
◆ CS_CDO_OMP_CHUNK_SIZE
#define CS_CDO_OMP_CHUNK_SIZE 128 |
◆ CS_CDO_OMP_SCHEDULE
◆ CS_CDO_ONLY
◆ CS_CDO_WITH_FV
◆ CS_FLAG_BORDER
#define CS_FLAG_BORDER (1 << 6) |
◆ CS_FLAG_BOUNDARY
#define CS_FLAG_BOUNDARY (1 << 0) |
◆ CS_FLAG_BY_CELL
#define CS_FLAG_BY_CELL (1 << 10) |
◆ CS_FLAG_CELL
#define CS_FLAG_CELL (1 << 5) |
◆ CS_FLAG_DUAL
#define CS_FLAG_DUAL (1 << 1) |
◆ CS_FLAG_EDGE
#define CS_FLAG_EDGE (1 << 3) |
◆ CS_FLAG_FACE
#define CS_FLAG_FACE (1 << 4) |
◆ CS_FLAG_FULL_LOC
#define CS_FLAG_FULL_LOC (1 << 11) |
◆ CS_FLAG_PRIMAL
#define CS_FLAG_PRIMAL (1 << 0) |
◆ CS_FLAG_SCALAR
#define CS_FLAG_SCALAR (1 << 7) |
◆ CS_FLAG_STATE_CELLWISE
#define CS_FLAG_STATE_CELLWISE (1 << 1) |
◆ CS_FLAG_STATE_CIRCULATION
#define CS_FLAG_STATE_CIRCULATION (1 << 5) |
◆ CS_FLAG_STATE_DENSITY
#define CS_FLAG_STATE_DENSITY (1 << 7) |
◆ CS_FLAG_STATE_FACEWISE
#define CS_FLAG_STATE_FACEWISE (1 << 2) |
◆ CS_FLAG_STATE_FLUX
#define CS_FLAG_STATE_FLUX (1 << 6) |
◆ CS_FLAG_STATE_OWNER
#define CS_FLAG_STATE_OWNER (1 << 8) |
◆ CS_FLAG_STATE_POTENTIAL
#define CS_FLAG_STATE_POTENTIAL (1 << 4) |
◆ CS_FLAG_STATE_STEADY
#define CS_FLAG_STATE_STEADY (1 << 3) |
◆ CS_FLAG_STATE_UNIFORM
#define CS_FLAG_STATE_UNIFORM (1 << 0) |
◆ CS_FLAG_SYS_DEBUG
#define CS_FLAG_SYS_DEBUG (1 << 4) |
◆ CS_FLAG_SYS_HLOC_CONF
#define CS_FLAG_SYS_HLOC_CONF (1 << 0) |
◆ CS_FLAG_SYS_SOURCES_HLOC
#define CS_FLAG_SYS_SOURCES_HLOC (1 << 3) |
◆ CS_FLAG_SYS_SYM
#define CS_FLAG_SYS_SYM (1 << 1) |
◆ CS_FLAG_SYS_TIME_DIAG
#define CS_FLAG_SYS_TIME_DIAG (1 << 2) |
◆ CS_FLAG_TENSOR
#define CS_FLAG_TENSOR (1 << 9) |
◆ CS_FLAG_VECTOR
#define CS_FLAG_VECTOR (1 << 8) |
◆ CS_FLAG_VERTEX
#define CS_FLAG_VERTEX (1 << 2) |
◆ CS_N_CELL_DOFS_0TH
#define CS_N_CELL_DOFS_0TH 1 |
◆ CS_N_CELL_DOFS_1ST
#define CS_N_CELL_DOFS_1ST 4 |
◆ CS_N_CELL_DOFS_2ND
#define CS_N_CELL_DOFS_2ND 10 |
◆ CS_N_FACE_DOFS_0TH
#define CS_N_FACE_DOFS_0TH 1 |
◆ CS_N_FACE_DOFS_1ST
#define CS_N_FACE_DOFS_1ST 3 |
◆ CS_N_FACE_DOFS_2ND
#define CS_N_FACE_DOFS_2ND 6 |
◆ CS_SCHEME_FLAG_CDOFB
#define CS_SCHEME_FLAG_CDOFB (1 << 2) |
◆ CS_SCHEME_FLAG_CDOVB
#define CS_SCHEME_FLAG_CDOVB (1 << 0) |
◆ CS_SCHEME_FLAG_CDOVCB
#define CS_SCHEME_FLAG_CDOVCB (1 << 1) |
◆ CS_SCHEME_FLAG_HHO
#define CS_SCHEME_FLAG_HHO (1 << 3) |
◆ CS_SCHEME_FLAG_POLY0
#define CS_SCHEME_FLAG_POLY0 (1 << 6) |
◆ CS_SCHEME_FLAG_POLY1
#define CS_SCHEME_FLAG_POLY1 (1 << 7) |
◆ CS_SCHEME_FLAG_POLY2
#define CS_SCHEME_FLAG_POLY2 (1 << 8) |
◆ CS_SCHEME_FLAG_SCALAR
#define CS_SCHEME_FLAG_SCALAR (1 << 4) |
◆ CS_SCHEME_FLAG_VECTOR
#define CS_SCHEME_FLAG_VECTOR (1 << 5) |
◆ cs_analytic_func_t
Generic function pointer for an analytic function elt_ids is optional. If not NULL, it enables to access in coords at the right location and the same thing to fill retval if compact is set to false.
- Parameters
-
[in] | time | when ? |
[in] | n_elts | number of elements to consider |
[in] | elt_ids | list of elements ids (to access coords and fill) |
[in] | coords | where ? |
[in] | compact | true:no indirection, false:indirection for filling |
[in] | input | pointer to a structure cast on-the-fly (may be NULL) |
[in,out] | retval | result of the function |
◆ cs_mask_t
◆ cs_timestep_func_t
typedef cs_real_t() cs_timestep_func_t(int time_iter, double time, void *input) |
Function which defines the time step according to the number of iteration already done, the current time and any structure given as a parameter.
- Parameters
-
[in] | time_iter | current number of iterations |
[in] | time | value of the time at the end of the last iteration |
[in] | input | pointer to a structure cast on-the-fly |
- Returns
- the value of the time step
◆ cs_space_scheme_t
Enumerator |
---|
CS_SPACE_SCHEME_CDOVB | |
CS_SPACE_SCHEME_CDOVCB | |
CS_SPACE_SCHEME_CDOFB | |
CS_SPACE_SCHEME_HHO_P0 | |
CS_SPACE_SCHEME_HHO_P1 | |
CS_SPACE_SCHEME_HHO_P2 | |
CS_SPACE_N_SCHEMES | |
◆ cs_base_strtf()
static const char* cs_base_strtf |
( |
bool |
boolean | ) |
|
|
inlinestatic |
Return a string "true" or "false" according to the boolean.
- Parameters
-
- Returns
- a string "true" or "false"
◆ cs_nvec3()
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 |
◆ cs_test_flag()
Check if a two flag share the same pattern Return true if the flag to check has at least the pattern of the reference flag.
- Parameters
-
[in] | flag_to_check | flag corresponding to the location to check |
[in] | reference | flag corresponding to the referenced support |
- Returns
- true or false
◆ cs_cdo_activation_mode
int cs_cdo_activation_mode |
◆ cs_cdo_dual_cell
◆ cs_cdo_dual_face
◆ cs_cdo_dual_face_byc
◆ cs_cdo_dual_vtx
◆ cs_cdo_primal_cell
◆ cs_cdo_primal_face
◆ cs_cdo_primal_vtx
◆ lsepline
◆ msepline
◆ ssepline