My Project
programmer's documentation
|
Structure and routines handling the specific settings related to a cs_equation_t structure. More...
#include "cs_advection_field.h"
#include "cs_param.h"
#include "cs_param_cdo.h"
#include "cs_property.h"
#include "cs_xdef.h"
Go to the source code of this file.
Data Structures | |
struct | cs_equation_param_t |
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources. More... | |
Macros | |
Flags specifying which term is needed for an equation. | |
#define | CS_EQUATION_LOCKED (1 << 0) /* 1 */ |
Parameters for setting an equation are not modifiable anymore. More... | |
#define | CS_EQUATION_UNSTEADY (1 << 1) /* 2 */ |
Unsteady term is needed. More... | |
#define | CS_EQUATION_CONVECTION (1 << 2) /* 4 */ |
Convection term is needed. More... | |
#define | CS_EQUATION_DIFFUSION (1 << 3) /* 8 */ |
Diffusion term is needed. More... | |
#define | CS_EQUATION_REACTION (1 << 4) /* 16 */ |
Reaction term is needed. More... | |
#define | CS_EQUATION_FORCE_VALUES (1 << 5) /* 32 */ |
Add an algebraic manipulation to set the value of a given set of interior degrees of freedom. More... | |
Flags specifying which extra operation is needed for an equation. | |
#define | CS_EQUATION_POST_BALANCE (1 << 0) /* 1 */ |
Compute and postprocess the equation balance. More... | |
#define | CS_EQUATION_POST_PECLET (1 << 1) /* 2 */ |
Compute and postprocess the Peclet number. More... | |
#define | CS_EQUATION_POST_UPWIND_COEF (1 << 2) /* 4 */ |
Postprocess the value of the upwinding coefficient. More... | |
#define | CS_EQUATION_POST_NORMAL_FLUX (1 << 3) /* 8 */ |
Postprocess the value of the normal flux across the boundary faces. More... | |
Enumerations | |
enum | cs_equation_type_t { CS_EQUATION_TYPE_USER, CS_EQUATION_TYPE_GROUNDWATER, CS_EQUATION_TYPE_NAVSTO, CS_EQUATION_TYPE_PREDEFINED, CS_EQUATION_N_TYPES } |
Type of equations managed by the solver. More... | |
enum | cs_equation_key_t { CS_EQKEY_ADV_FORMULATION, CS_EQKEY_ADV_SCHEME, CS_EQKEY_ADV_UPWIND_PORTION, CS_EQKEY_AMG_TYPE, CS_EQKEY_BC_ENFORCEMENT, CS_EQKEY_BC_QUADRATURE, CS_EQKEY_BC_STRONG_PENA_COEFF, CS_EQKEY_BC_WEAK_PENA_COEFF, CS_EQKEY_DO_LUMPING, CS_EQKEY_DOF_REDUCTION, CS_EQKEY_EXTRA_OP, CS_EQKEY_HODGE_DIFF_ALGO, CS_EQKEY_HODGE_DIFF_COEF, CS_EQKEY_HODGE_TIME_ALGO, CS_EQKEY_HODGE_REAC_ALGO, CS_EQKEY_ITSOL, CS_EQKEY_ITSOL_EPS, CS_EQKEY_ITSOL_MAX_ITER, CS_EQKEY_ITSOL_RESNORM_TYPE, CS_EQKEY_OMP_ASSEMBLY_STRATEGY, CS_EQKEY_PRECOND, CS_EQKEY_SLES_VERBOSITY, CS_EQKEY_SOLVER_FAMILY, CS_EQKEY_SPACE_SCHEME, CS_EQKEY_TIME_SCHEME, CS_EQKEY_TIME_THETA, CS_EQKEY_VERBOSITY, CS_EQKEY_N_KEYS } |
List of available keys for setting the parameters of an equation. More... | |
Functions | |
static void | cs_equation_param_set_flag (cs_equation_param_t *eqp, cs_flag_t flag) |
Update the flag related to a cs_equation_param_t structure. More... | |
static bool | cs_equation_param_has_diffusion (const cs_equation_param_t *eqp) |
Ask if the parameters of the equation needs a diffusion term. More... | |
static bool | cs_equation_param_has_convection (const cs_equation_param_t *eqp) |
Ask if the parameters of the equation needs a convection term. More... | |
static bool | cs_equation_param_has_reaction (const cs_equation_param_t *eqp) |
Ask if the parameters of the equation needs a reaction term. More... | |
static bool | cs_equation_param_has_time (const cs_equation_param_t *eqp) |
Ask if the parameters of the equation needs an unsteady term. More... | |
static bool | cs_equation_param_has_sourceterm (const cs_equation_param_t *eqp) |
Ask if the parameters of the equation needs a source term. More... | |
static bool | cs_equation_param_has_internal_enforcement (const cs_equation_param_t *eqp) |
Ask if the parameters of the equation has an internal enforcement of the degrees of freedom. More... | |
static bool | cs_equation_param_has_name (cs_equation_param_t *eqp, const char *name) |
Check if a cs_equation_param_t structure has its name member equal to the given name. More... | |
cs_equation_param_t * | cs_equation_create_param (const char *name, cs_equation_type_t type, int dim, cs_param_bc_type_t default_bc) |
Create a cs_equation_param_t structure. More... | |
void | cs_equation_param_update_from (const cs_equation_param_t *ref, cs_equation_param_t *dst) |
Copy the settings from one cs_equation_param_t structure to another one. More... | |
cs_equation_param_t * | cs_equation_free_param (cs_equation_param_t *eqp) |
Free a cs_equation_param_t. More... | |
void | cs_equation_set_param (cs_equation_param_t *eqp, cs_equation_key_t key, const char *keyval) |
Set a parameter attached to a keyname in a cs_equation_param_t structure. More... | |
void | cs_equation_param_set_sles (cs_equation_param_t *eqp, int field_id) |
Set parameters for initializing SLES structures used for the resolution of the linear system. Settings are related to this equation. More... | |
void | cs_equation_param_last_stage (cs_equation_param_t *eqp) |
Last modification of the cs_equation_param_t structure before launching the computation. More... | |
void | cs_equation_summary_param (const cs_equation_param_t *eqp) |
Summary of a cs_equation_param_t structure. More... | |
cs_xdef_t * | cs_equation_add_ic_by_value (cs_equation_param_t *eqp, const char *z_name, cs_real_t *val) |
Define the initial condition for the unknown related to this equation This definition can be done on a specified mesh location. By default, the unknown is set to zero everywhere. Here a constant value is set to all the entities belonging to the given mesh location. More... | |
cs_xdef_t * | cs_equation_add_ic_by_qov (cs_equation_param_t *eqp, const char *z_name, double quantity) |
Define the initial condition for the unknown related to this equation This definition can be done on a specified mesh location. By default, the unknown is set to zero everywhere. Here the value related to all the entities belonging to the given mesh location is such that the integral over these cells returns the requested quantity. More... | |
cs_xdef_t * | cs_equation_add_ic_by_analytic (cs_equation_param_t *eqp, const char *z_name, cs_analytic_func_t *analytic, void *input) |
Define the initial condition for the unknown related to this equation. This definition can be done on a specified mesh location. By default, the unknown is set to zero everywhere. Here the initial value is set according to an analytical function. More... | |
void | cs_equation_add_xdef_bc (cs_equation_param_t *eqp, cs_xdef_t *xdef) |
Set a boundary condition from an existing cs_xdef_t structure The lifecycle of the cs_xdef_t structure is now managed by the current cs_equation_param_t structure. More... | |
cs_xdef_t * | cs_equation_add_bc_by_value (cs_equation_param_t *eqp, const cs_param_bc_type_t bc_type, const char *z_name, cs_real_t *values) |
Define and initialize a new structure to set a boundary condition related to the given equation structure z_name corresponds to the name of a pre-existing cs_zone_t. More... | |
cs_xdef_t * | cs_equation_add_bc_by_array (cs_equation_param_t *eqp, const cs_param_bc_type_t bc_type, const char *z_name, cs_flag_t loc, cs_real_t *array, bool is_owner, cs_lnum_t *index) |
Define and initialize a new structure to set a boundary condition related to the given equation structure z_name corresponds to the name of a pre-existing cs_zone_t. More... | |
cs_xdef_t * | cs_equation_add_bc_by_analytic (cs_equation_param_t *eqp, const cs_param_bc_type_t bc_type, const char *z_name, cs_analytic_func_t *analytic, void *input) |
Define and initialize a new structure to set a boundary condition related to the given equation param structure ml_name corresponds to the name of a pre-existing cs_mesh_location_t. More... | |
void | cs_equation_add_sliding_condition (cs_equation_param_t *eqp, const char *z_name) |
Define and initialize a new structure to set a sliding boundary condition related to the given equation structure z_name corresponds to the name of a pre-existing cs_zone_t. More... | |
void | cs_equation_add_diffusion (cs_equation_param_t *eqp, cs_property_t *property) |
Define and initialize a new structure to store parameters related to a diffusion term. More... | |
void | cs_equation_add_time (cs_equation_param_t *eqp, cs_property_t *property) |
Define and initialize a new structure to store parameters related to an unsteady term. More... | |
void | cs_equation_add_advection (cs_equation_param_t *eqp, cs_adv_field_t *adv_field) |
Define and initialize a new structure to store parameters related to an advection term. More... | |
int | cs_equation_add_reaction (cs_equation_param_t *eqp, cs_property_t *property) |
Define and initialize a new structure to store parameters related to a reaction term. More... | |
cs_xdef_t * | cs_equation_add_source_term_by_val (cs_equation_param_t *eqp, const char *z_name, cs_real_t *val) |
Define a new source term structure and initialize it by value. More... | |
cs_xdef_t * | cs_equation_add_source_term_by_analytic (cs_equation_param_t *eqp, const char *z_name, cs_analytic_func_t *ana, void *input) |
Define a new source term structure and initialize it by an analytical function. More... | |
cs_xdef_t * | cs_equation_add_source_term_by_array (cs_equation_param_t *eqp, const char *z_name, cs_flag_t loc, cs_real_t *array, bool is_owner, cs_lnum_t *index) |
Define a new source term defined by an array. More... | |
void | cs_equation_enforce_vertex_dofs (cs_equation_param_t *eqp, cs_lnum_t n_elts, const cs_lnum_t elt_ids[], const cs_real_t elt_values[]) |
Add an enforcement of the value of degrees of freedom located at mesh vertices. The spatial discretization scheme for the given equation has to be CDO-Vertex based or CDO-Vertex+Cell-based schemes. We assume that values are interlaced (if eqp->dim > 1) More... | |
Structure and routines handling the specific settings related to a cs_equation_t structure.
#define CS_EQUATION_CONVECTION (1 << 2) /* 4 */ |
Convection term is needed.
#define CS_EQUATION_DIFFUSION (1 << 3) /* 8 */ |
Diffusion term is needed.
#define CS_EQUATION_FORCE_VALUES (1 << 5) /* 32 */ |
Add an algebraic manipulation to set the value of a given set of interior degrees of freedom.
#define CS_EQUATION_LOCKED (1 << 0) /* 1 */ |
Parameters for setting an equation are not modifiable anymore.
#define CS_EQUATION_POST_BALANCE (1 << 0) /* 1 */ |
Compute and postprocess the equation balance.
#define CS_EQUATION_POST_NORMAL_FLUX (1 << 3) /* 8 */ |
Postprocess the value of the normal flux across the boundary faces.
#define CS_EQUATION_POST_PECLET (1 << 1) /* 2 */ |
Compute and postprocess the Peclet number.
#define CS_EQUATION_POST_UPWIND_COEF (1 << 2) /* 4 */ |
Postprocess the value of the upwinding coefficient.
#define CS_EQUATION_REACTION (1 << 4) /* 16 */ |
Reaction term is needed.
#define CS_EQUATION_UNSTEADY (1 << 1) /* 2 */ |
Unsteady term is needed.
enum cs_equation_key_t |
List of available keys for setting the parameters of an equation.
Enumerator | |
---|---|
CS_EQKEY_ADV_FORMULATION | Kind of formulation of the advective term. Available choices are:
|
CS_EQKEY_ADV_SCHEME | Type of numerical scheme for the advective term. The available choices depend on the space discretization scheme.
|
CS_EQKEY_ADV_UPWIND_PORTION | Value between 0 and 1 specifying the portion of upwind added to a centered discretization. |
CS_EQKEY_AMG_TYPE | Specify which type of algebraic multigrid (AMG) to choose. Available choices are:
|
CS_EQKEY_BC_ENFORCEMENT | Set the type of enforcement of the boundary conditions. Available choices are:
For HHO and CDO-Face based schemes, only the "penalization" and "algebraic" technique is available up to now. |
CS_EQKEY_BC_QUADRATURE | Set the quadrature algorithm used for evaluating integral quantities on faces or volumes. Available choices are:
Remark: "higher" and "highest" implies automatically a subdivision into tetrahedra of each cell. |
CS_EQKEY_BC_STRONG_PENA_COEFF | Set the value of the penalization coefficient when "penalization" is activated The default value is 1e12. cf. CS_PARAM_BC_ENFORCE_PENALIZED |
CS_EQKEY_BC_WEAK_PENA_COEFF | Set the value of the penalization coefficient when "weak" or "weak_sym" is activated. The default value is 100. cf. CS_PARAM_BC_ENFORCE_WEAK_NITSCHE or CS_PARAM_BC_ENFORCE_WEAK_SYM |
CS_EQKEY_DO_LUMPING | |
CS_EQKEY_DOF_REDUCTION | Set how is defined each degree of freedom (DoF).
|
CS_EQKEY_EXTRA_OP | Set the additional post-processing to perform. Available choices are:
|
CS_EQKEY_HODGE_DIFF_ALGO | Set the algorithm used for building the discrete Hodge operator used in the diffusion term. Available choices are:
|
CS_EQKEY_HODGE_DIFF_COEF | This key is only useful if CS_EQKEY_HODGE_{TIME, DIFF, REAC}_ALGO is set to "cost". keyval is either a name or a value:
|
CS_EQKEY_HODGE_TIME_ALGO | Set the algorithm used for building the discrete Hodge operator used in the unsteady term. Available choices are:
|
CS_EQKEY_HODGE_REAC_ALGO | Set the algorithm used for building the discrete Hodge operator used in the reaction term. Available choices are:
|
CS_EQKEY_ITSOL | Specify the iterative solver for solving the linear system related to an equation. Avalaible choices are:
|
CS_EQKEY_ITSOL_EPS | Tolerance factor for stopping the iterative processus for solving the linear system related to an equation
|
CS_EQKEY_ITSOL_MAX_ITER | Maximum number of iterations for solving the linear system
|
CS_EQKEY_ITSOL_RESNORM_TYPE | Normalized or not the residual before testing if one continues iterating for solving the linear system. This normalization is performed before applying the boundary conditions to avoid handling the penalization of Dirichlet boundary conditions. If the RHS norm is equal to zero, then the "vol_tot" option is used for rescaling the residual. Available choices are: "false" or "none" "vol_tot" "weighted_rhs" (default) "matrix_diag" |
CS_EQKEY_OMP_ASSEMBLY_STRATEGY | Choice of the way to perform the assembly when OpenMP is active Available choices are:
|
CS_EQKEY_PRECOND | Specify the preconditionner associated to an iterative solver. Available choices are:
|
CS_EQKEY_SLES_VERBOSITY | Level of details written by the code for the resolution of the linear system
|
CS_EQKEY_SOLVER_FAMILY | |
CS_EQKEY_SPACE_SCHEME | Set the space discretization scheme. Available choices are:
|
CS_EQKEY_TIME_SCHEME | Set the scheme for the temporal discretization. Available choices are:
|
CS_EQKEY_TIME_THETA | Set the value of theta. Only useful if CS_EQKEY_TIME_SCHEME is set to "theta_scheme"
|
CS_EQKEY_VERBOSITY | Set the level of details written by the code for an equation. The higher the more detailed information is displayed.
|
CS_EQKEY_N_KEYS |
enum cs_equation_type_t |
Type of equations managed by the solver.
void cs_equation_add_advection | ( | cs_equation_param_t * | eqp, |
cs_adv_field_t * | adv_field | ||
) |
Define and initialize a new structure to store parameters related to an advection term.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | adv_field | pointer to a cs_adv_field_t structure |
cs_xdef_t* cs_equation_add_bc_by_analytic | ( | cs_equation_param_t * | eqp, |
const cs_param_bc_type_t | bc_type, | ||
const char * | z_name, | ||
cs_analytic_func_t * | analytic, | ||
void * | input | ||
) |
Define and initialize a new structure to set a boundary condition related to the given equation param structure ml_name corresponds to the name of a pre-existing cs_mesh_location_t.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | bc_type | type of boundary condition to add |
[in] | z_name | name of the associated zone (if NULL or "" if all cells are considered) |
[in] | analytic | pointer to an analytic function defining the value |
[in] | input | NULL or pointer to a structure cast on-the-fly |
cs_xdef_t* cs_equation_add_bc_by_array | ( | cs_equation_param_t * | eqp, |
const cs_param_bc_type_t | bc_type, | ||
const char * | z_name, | ||
cs_flag_t | loc, | ||
cs_real_t * | array, | ||
bool | is_owner, | ||
cs_lnum_t * | index | ||
) |
Define and initialize a new structure to set a boundary condition related to the given equation structure z_name corresponds to the name of a pre-existing cs_zone_t.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | bc_type | type of boundary condition to add |
[in] | z_name | name of the related boundary zone |
[in] | loc | information to know where are located values |
[in] | array | pointer to an array |
[in] | is_owner | transfer the lifecycle to the cs_xdef_t structure (true or false) |
[in] | index | optional pointer to the array index |
cs_xdef_t* cs_equation_add_bc_by_value | ( | cs_equation_param_t * | eqp, |
const cs_param_bc_type_t | bc_type, | ||
const char * | z_name, | ||
cs_real_t * | values | ||
) |
Define and initialize a new structure to set a boundary condition related to the given equation structure z_name corresponds to the name of a pre-existing cs_zone_t.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | bc_type | type of boundary condition to add |
[in] | z_name | name of the related boundary zone |
[in] | values | pointer to a array storing the values |
void cs_equation_add_diffusion | ( | cs_equation_param_t * | eqp, |
cs_property_t * | property | ||
) |
Define and initialize a new structure to store parameters related to a diffusion term.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | property | pointer to a cs_property_t structure |
cs_xdef_t* cs_equation_add_ic_by_analytic | ( | cs_equation_param_t * | eqp, |
const char * | z_name, | ||
cs_analytic_func_t * | analytic, | ||
void * | input | ||
) |
Define the initial condition for the unknown related to this equation. This definition can be done on a specified mesh location. By default, the unknown is set to zero everywhere. Here the initial value is set according to an analytical function.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the associated zone (if NULL or "" if all cells are considered) |
[in] | analytic | pointer to an analytic function |
[in] | input | NULL or pointer to a structure cast on-the-fly |
cs_xdef_t* cs_equation_add_ic_by_qov | ( | cs_equation_param_t * | eqp, |
const char * | z_name, | ||
double | quantity | ||
) |
Define the initial condition for the unknown related to this equation This definition can be done on a specified mesh location. By default, the unknown is set to zero everywhere. Here the value related to all the entities belonging to the given mesh location is such that the integral over these cells returns the requested quantity.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the associated zone (if NULL or "" all cells are considered) |
[in] | quantity | quantity to distribute over the mesh location |
cs_xdef_t* cs_equation_add_ic_by_value | ( | cs_equation_param_t * | eqp, |
const char * | z_name, | ||
cs_real_t * | val | ||
) |
Define the initial condition for the unknown related to this equation This definition can be done on a specified mesh location. By default, the unknown is set to zero everywhere. Here a constant value is set to all the entities belonging to the given mesh location.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the associated zone (if NULL or "" all cells are considered) |
[in] | val | pointer to the value |
int cs_equation_add_reaction | ( | cs_equation_param_t * | eqp, |
cs_property_t * | property | ||
) |
Define and initialize a new structure to store parameters related to a reaction term.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | property | pointer to a cs_property_t structure |
void cs_equation_add_sliding_condition | ( | cs_equation_param_t * | eqp, |
const char * | z_name | ||
) |
Define and initialize a new structure to set a sliding boundary condition related to the given equation structure z_name corresponds to the name of a pre-existing cs_zone_t.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the related boundary zone |
cs_xdef_t* cs_equation_add_source_term_by_analytic | ( | cs_equation_param_t * | eqp, |
const char * | z_name, | ||
cs_analytic_func_t * | ana, | ||
void * | input | ||
) |
Define a new source term structure and initialize it by an analytical function.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the associated zone (if NULL or "" if all cells are considered) |
[in] | ana | pointer to an analytical function |
[in] | input | NULL or pointer to a structure cast on-the-fly |
cs_xdef_t* cs_equation_add_source_term_by_array | ( | cs_equation_param_t * | eqp, |
const char * | z_name, | ||
cs_flag_t | loc, | ||
cs_real_t * | array, | ||
bool | is_owner, | ||
cs_lnum_t * | index | ||
) |
Define a new source term defined by an array.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the associated zone (if NULL or "" if all cells are considered) |
[in] | loc | information to know where are located values |
[in] | array | pointer to an array |
[in] | is_owner | transfer the lifecycle to the cs_xdef_t structure (true or false) |
[in] | index | optional pointer to the array index |
cs_xdef_t* cs_equation_add_source_term_by_val | ( | cs_equation_param_t * | eqp, |
const char * | z_name, | ||
cs_real_t * | val | ||
) |
Define a new source term structure and initialize it by value.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | z_name | name of the associated zone (if NULL or "" all cells are considered) |
[in] | val | pointer to the value |
void cs_equation_add_time | ( | cs_equation_param_t * | eqp, |
cs_property_t * | property | ||
) |
Define and initialize a new structure to store parameters related to an unsteady term.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | property | pointer to a cs_property_t structure |
void cs_equation_add_xdef_bc | ( | cs_equation_param_t * | eqp, |
cs_xdef_t * | xdef | ||
) |
Set a boundary condition from an existing cs_xdef_t structure The lifecycle of the cs_xdef_t structure is now managed by the current cs_equation_param_t structure.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | xdef | pointer to the cs_xdef_t structure to transfer |
cs_equation_param_t* cs_equation_create_param | ( | const char * | name, |
cs_equation_type_t | type, | ||
int | dim, | ||
cs_param_bc_type_t | default_bc | ||
) |
Create a cs_equation_param_t structure.
[in] | name | name of the equation |
[in] | type | type of equation |
[in] | dim | dim of the variable associated to this equation |
[in] | default_bc | type of boundary condition set by default |
Create a cs_equation_param_t structure.
[in] | name | name of the equation |
[in] | type | type of equation |
[in] | dim | dim of the variable associated to this equation |
[in] | default_bc | type of boundary condition set by default |
void cs_equation_enforce_vertex_dofs | ( | cs_equation_param_t * | eqp, |
cs_lnum_t | n_elts, | ||
const cs_lnum_t | elt_ids[], | ||
const cs_real_t | elt_values[] | ||
) |
Add an enforcement of the value of degrees of freedom located at mesh vertices. The spatial discretization scheme for the given equation has to be CDO-Vertex based or CDO-Vertex+Cell-based schemes. We assume that values are interlaced (if eqp->dim > 1)
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | n_elts | number of vertices to enforce |
[in] | elt_ids | list of vertices |
[in] | elt_values | list of associated values |
cs_equation_param_t* cs_equation_free_param | ( | cs_equation_param_t * | eqp | ) |
Free a cs_equation_param_t.
[in] | eqp | pointer to a cs_equation_param_t |
[in,out] | eqp | pointer to a cs_equation_param_t |
|
inlinestatic |
Ask if the parameters of the equation needs a convection term.
[in] | eqp | pointer to a cs_equation_param_t |
|
inlinestatic |
Ask if the parameters of the equation needs a diffusion term.
[in] | eqp | pointer to a cs_equation_param_t |
|
inlinestatic |
Ask if the parameters of the equation has an internal enforcement of the degrees of freedom.
[in] | eqp | pointer to a cs_equation_param_t |
|
inlinestatic |
Check if a cs_equation_param_t structure has its name member equal to the given name.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | name | name of the equation |
|
inlinestatic |
Ask if the parameters of the equation needs a reaction term.
[in] | eqp | pointer to a cs_equation_param_t |
|
inlinestatic |
Ask if the parameters of the equation needs a source term.
[in] | eqp | pointer to a cs_equation_param_t |
|
inlinestatic |
Ask if the parameters of the equation needs an unsteady term.
[in] | eqp | pointer to a cs_equation_param_t |
void cs_equation_param_last_stage | ( | cs_equation_param_t * | eqp | ) |
Last modification of the cs_equation_param_t structure before launching the computation.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
|
inlinestatic |
Update the flag related to a cs_equation_param_t structure.
[in,out] | eqp | pointer to a cs_equation_param_t |
[in] | flag | flag to add |
void cs_equation_param_set_sles | ( | cs_equation_param_t * | eqp, |
int | field_id | ||
) |
Set parameters for initializing SLES structures used for the resolution of the linear system. Settings are related to this equation.
[in] | eqp | pointer to a cs_equation_param_t struct. |
[in] | field_id | id of the cs_field_t struct. for this equation |
void cs_equation_param_update_from | ( | const cs_equation_param_t * | ref, |
cs_equation_param_t * | dst | ||
) |
Copy the settings from one cs_equation_param_t structure to another one.
[in] | ref | pointer to the reference cs_equation_param_t |
[in,out] | dst | pointer to the cs_equation_param_t to update |
void cs_equation_set_param | ( | cs_equation_param_t * | eqp, |
cs_equation_key_t | key, | ||
const char * | keyval | ||
) |
Set a parameter attached to a keyname in a cs_equation_param_t structure.
[in,out] | eqp | pointer to a cs_equation_param_t structure |
[in] | key | key related to the member of eq to set |
[in] | keyval | accessor to the value to set |
void cs_equation_summary_param | ( | const cs_equation_param_t * | eqp | ) |
Summary of a cs_equation_param_t structure.
[in] | eqp | pointer to a cs_equation_param_t structure |