|
programmer's documentation
|
#include "cs_equation_param.h"
Go to the source code of this file.
Data Structures | |
| struct | cs_navsto_param_t |
| Structure storing the parameters related to the resolution of the Navier-Stokes system. More... | |
Functions | |
| static bool | cs_navsto_param_is_steady (cs_navsto_param_t *nsp) |
| Ask cs_navsto_param_t structure if the settings correspond to a steady computation. More... | |
| cs_navsto_param_t * | cs_navsto_param_create (cs_navsto_param_model_t model, cs_navsto_param_time_state_t time_state, cs_navsto_param_coupling_t algo_coupling) |
| Create a new structure to store all numerical parameters related to the resolution of the Navier-Stokes (NS) system. More... | |
| cs_navsto_param_t * | cs_navsto_param_free (cs_navsto_param_t *param) |
| Free a cs_navsto_param_t structure. More... | |
| void | cs_navsto_param_set (cs_navsto_param_t *nsp, cs_navsto_key_t key, const char *keyval) |
| Set a parameter attached to a keyname in a cs_navsto_param_t structure. More... | |
| void | cs_navsto_param_transfer (const cs_navsto_param_t *nsp, cs_equation_param_t *eqp) |
| Apply the numerical settings defined for the Navier-Stokes system to an equation related to this system. More... | |
| void | cs_navsto_param_log (const cs_navsto_param_t *nsp) |
| Summary of the main cs_navsto_param_t structure. More... | |
| const char * | cs_navsto_param_get_coupling_name (cs_navsto_param_coupling_t coupling) |
| Retrieve the name of the coupling algorithm. More... | |
| cs_xdef_t * | cs_navsto_add_velocity_ic_by_value (cs_navsto_param_t *nsp, const char *z_name, cs_real_t *val) |
| Define the initial condition for the velocity unknowns. 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 to a constant value. More... | |
| cs_xdef_t * | cs_navsto_add_velocity_ic_by_analytic (cs_navsto_param_t *nsp, const char *z_name, cs_analytic_func_t *analytic, void *input) |
| Define the initial condition for the velocity unkowns. 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... | |
| cs_xdef_t * | cs_navsto_add_pressure_ic_by_value (cs_navsto_param_t *nsp, const char *z_name, cs_real_t *val) |
| Define the initial condition for the pressure unknowns. 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 to a constant value. More... | |
| cs_xdef_t * | cs_navsto_add_pressure_ic_by_analytic (cs_navsto_param_t *nsp, const char *z_name, cs_analytic_func_t *analytic, void *input) |
| Define the initial condition for the pressure unkowns. 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... | |
| cs_xdef_t * | cs_navsto_add_source_term_by_analytic (cs_navsto_param_t *nsp, const char *z_name, cs_analytic_func_t *ana, void *input) |
| Define a new source term structure defined by an analytical function. More... | |
| cs_xdef_t * | cs_navsto_add_source_term_by_val (cs_navsto_param_t *nsp, const char *z_name, cs_real_t *val) |
| Define a new source term structure defined by a constant value. More... | |
| cs_xdef_t * | cs_navsto_add_source_term_by_array (cs_navsto_param_t *nsp, const char *z_name, cs_flag_t loc, cs_real_t *array, cs_lnum_t *index) |
| Define a new source term structure defined by an array. More... | |
| enum cs_navsto_key_t |
List of available keys for setting the parameters of the Navier-Stokes system.
| Enumerator | |
|---|---|
| CS_NSKEY_DOF_REDUCTION | Set how the DoFs are defined (similar to CS_EQKEY_DOF_REDUCTION) Enable to set this type of DoFs definition for all related equations |
| CS_NSKEY_GD_SCALE_COEF | Set the scaling of the grad-div term when an artificial compressibility algorithm or an Uzawa - Augmented Lagrangian method is used |
| CS_NSKEY_MAX_ALGO_ITER | Set the maximal number of iteration of the coupling algorithm. Not useful for a monolithic approach. In this case, only the maximal number of iterations for the iterative solver is taken into account |
| CS_NSKEY_QUADRATURE | Set the type to use in all routines involving quadrature (similar to CS_EQKEY_BC_QUADRATURE) |
| CS_NSKEY_RESIDUAL_TOLERANCE | Tolerance at which the Navier–Stokes is resolved (apply to the residual of the coupling algorithm chosen to solve the Navier–Stokes system) |
| CS_NSKEY_SPACE_SCHEME | Numerical scheme for the space discretization |
| CS_NSKEY_TIME_SCHEME | Numerical scheme for the time discretization |
| CS_NSKEY_TIME_THETA | Set the value of theta. Only useful if CS_NSKEY_TIME_SCHEME is set to "theta_scheme"
|
| CS_NSKEY_VERBOSITY | Set the level of details for the specific part related to the Navier-Stokes system |
| CS_NSKEY_N_KEYS | |
Choice of algorithm for solving the system.
Modelling related to the Navier-Stokes system of equations.
Status of the time for the Navier-Stokes system of equations.
| cs_xdef_t* cs_navsto_add_pressure_ic_by_analytic | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_analytic_func_t * | analytic, | ||
| void * | input | ||
| ) |
Define the initial condition for the pressure unkowns. 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] | nsp | pointer to a cs_navsto_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_navsto_add_pressure_ic_by_value | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_real_t * | val | ||
| ) |
Define the initial condition for the pressure unknowns. 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 to a constant value.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| [in] | z_name | name of the associated zone (if NULL or "" if all cells are considered) |
| [in] | val | pointer to the value |
| cs_xdef_t* cs_navsto_add_source_term_by_analytic | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_analytic_func_t * | ana, | ||
| void * | input | ||
| ) |
Define a new source term structure defined by an analytical function.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| [in] | z_name | name of the associated zone (if NULL or "" 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_navsto_add_source_term_by_array | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_flag_t | loc, | ||
| cs_real_t * | array, | ||
| cs_lnum_t * | index | ||
| ) |
Define a new source term structure defined by an array.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| [in] | z_name | name of the associated zone (if NULL or "" all cells are considered) |
| [in] | loc | information to know where are located values |
| [in] | array | pointer to an array |
| [in] | index | optional pointer to the array index |
| cs_xdef_t* cs_navsto_add_source_term_by_val | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_real_t * | val | ||
| ) |
Define a new source term structure defined by a constant value.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| [in] | z_name | name of the associated zone (if NULL or "" all cells are considered) |
| [in] | val | pointer to the value to set |
| cs_xdef_t* cs_navsto_add_velocity_ic_by_analytic | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_analytic_func_t * | analytic, | ||
| void * | input | ||
| ) |
Define the initial condition for the velocity unkowns. 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] | nsp | pointer to a cs_navsto_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_navsto_add_velocity_ic_by_value | ( | cs_navsto_param_t * | nsp, |
| const char * | z_name, | ||
| cs_real_t * | val | ||
| ) |
Define the initial condition for the velocity unknowns. 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 to a constant value.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| [in] | z_name | name of the associated zone (if NULL or "" if all cells are considered) |
| [in] | val | pointer to the value |
| cs_navsto_param_t* cs_navsto_param_create | ( | cs_navsto_param_model_t | model, |
| cs_navsto_param_time_state_t | time_state, | ||
| cs_navsto_param_coupling_t | algo_coupling | ||
| ) |
Create a new structure to store all numerical parameters related to the resolution of the Navier-Stokes (NS) system.
| [in] | model | model related to the NS system to solve |
| [in] | time_state | state of the time for the NS equations |
| [in] | algo_coupling | algorithm used for solving the NS system |
| cs_navsto_param_t* cs_navsto_param_free | ( | cs_navsto_param_t * | param | ) |
Free a cs_navsto_param_t structure.
| [in,out] | param | pointer to a cs_navsto_param_t structure |
| const char* cs_navsto_param_get_coupling_name | ( | cs_navsto_param_coupling_t | coupling | ) |
Retrieve the name of the coupling algorithm.
| [in] | coupling | A cs_navsto_param_coupling_t |
|
inlinestatic |
Ask cs_navsto_param_t structure if the settings correspond to a steady computation.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| void cs_navsto_param_log | ( | const cs_navsto_param_t * | nsp | ) |
Summary of the main cs_navsto_param_t structure.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| void cs_navsto_param_set | ( | cs_navsto_param_t * | nsp, |
| cs_navsto_key_t | key, | ||
| const char * | keyval | ||
| ) |
Set a parameter attached to a keyname in a cs_navsto_param_t structure.
| [in,out] | nsp | pointer to a cs_navsto_param_t structure to set |
| [in] | key | key related to the member of eq to set |
| [in] | keyval | accessor to the value to set |
| void cs_navsto_param_transfer | ( | const cs_navsto_param_t * | nsp, |
| cs_equation_param_t * | eqp | ||
| ) |
Apply the numerical settings defined for the Navier-Stokes system to an equation related to this system.
| [in] | nsp | pointer to a cs_navsto_param_t structure |
| [in,out] | eqp | pointer to a cs_equation_param_t structure |
1.8.13