1 #ifndef __CS_NAVSTO_PARAM_H__ 2 #define __CS_NAVSTO_PARAM_H__ 52 #define CS_NAVSTO_STREAM_EQNAME "streamfunction_eq" 1108 const char *keyval);
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 syst...
Definition: cs_navsto_param.c:1162
Definition: cs_navsto_param.h:994
Definition: cs_navsto_param.h:197
Definition: cs_navsto_param.h:455
void cs_navsto_param_log(const cs_navsto_param_t *nsp)
Summary of the main cs_navsto_param_t structure.
Definition: cs_navsto_param.c:1195
Definition: cs_navsto_param.h:993
Definition: cs_navsto_param.h:996
void cs_navsto_set_outlets(cs_navsto_param_t *nsp)
Add the definition of boundary conditions related to outlets into the set of parameters for the manag...
Definition: cs_navsto_param.c:1887
Definition: cs_navsto_param.h:975
Definition: cs_navsto_param.h:976
cs_navsto_param_sles_t * sles_param
Definition: cs_navsto_param.h:732
Definition: cs_navsto_param.h:978
Structure storing the parameters related to the Boussinesq source term in the momentum equation...
Definition: cs_navsto_param.h:585
int n_velocity_ic_defs
Definition: cs_navsto_param.h:794
Definition: cs_navsto_param.h:454
Definition: cs_advection_field.h:150
cs_navsto_param_boussinesq_t * boussinesq_param
Definition: cs_navsto_param.h:713
Definition: cs_navsto_param.h:988
Definition: cs_navsto_param.h:460
void cs_navsto_add_oseen_field(cs_navsto_param_t *nsp, cs_adv_field_t *adv_fld)
Add a advection field for the Oseen problem.
Definition: cs_navsto_param.c:2470
cs_navsto_param_t * cs_navsto_param_create(const cs_boundary_t *boundaries, cs_navsto_param_model_t model, cs_navsto_param_model_flag_t model_flag, cs_navsto_param_coupling_t algo_coupling, cs_navsto_param_post_flag_t post_flag)
Create a new structure to store all numerical parameters related to the resolution of the Navier-Stok...
Definition: cs_navsto_param.c:583
Definition: cs_navsto_param.h:136
cs_real_t reference_pressure
Definition: cs_navsto_param.h:874
Definition: cs_navsto_param.h:985
void cs_navsto_param_set_notay_scaling(double scaling_coef)
Set the scaling coefficient used in the Notay's transformation devised in "Algebraic multigrid for St...
Definition: cs_navsto_param.c:562
cs_navsto_param_coupling_t
Choice of algorithm for solving the system.
Definition: cs_navsto_param.h:570
Definition: cs_navsto_param.h:463
Definition: cs_navsto_param.h:133
bool velocity_ic_is_owner
Definition: cs_navsto_param.h:793
Definition: cs_navsto_param.h:576
Definition: cs_navsto_param.h:468
Structure storing the parameters for solving the Navier-Stokes system.
Definition: cs_navsto_param.h:476
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources...
Definition: cs_equation_param.h:186
Definition: cs_navsto_param.h:458
Definition: cs_navsto_param.h:86
cs_xdef_t ** pressure_ic_defs
Definition: cs_navsto_param.h:813
int n_boussinesq_terms
Definition: cs_navsto_param.h:712
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 unknowns. This definition can be done on a specified me...
Definition: cs_navsto_param.c:1611
cs_real_t beta
Definition: cs_navsto_param.h:587
Structure storing all the parameters to drive the algorithm called Anderson acceleration.
Definition: cs_iter_algo.h:177
Definition: cs_navsto_param.h:464
Definition: cs_navsto_param.h:444
cs_param_nl_algo_t
Class of non-linear iterative algorithm.
Definition: cs_param_types.h:546
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.
Definition: cs_navsto_param.c:2376
Definition: cs_navsto_param.h:135
cs_xdef_t * cs_navsto_set_velocity_inlet_by_dof_func(cs_navsto_param_t *nsp, const char *z_name, cs_dof_func_t *func, void *func_input)
Define the velocity field for an inlet boundary using a DoF function.
Definition: cs_navsto_param.c:2304
Definition: cs_navsto_param.h:190
#define BEGIN_C_DECLS
Definition: cs_defs.h:512
Definition: cs_navsto_param.h:449
Definition: cs_navsto_param.h:134
cs_quadrature_type_t qtype
Definition: cs_navsto_param.h:720
Definition: cs_navsto_param.h:989
Definition: cs_navsto_param.h:982
cs_real_t gd_scale_coef
Definition: cs_navsto_param.h:690
Definition: cs_navsto_param.h:465
Definition: cs_navsto_param.h:991
void cs_navsto_set_fixed_walls(cs_navsto_param_t *nsp)
Add the definition of boundary conditions related to a fixed wall into the set of parameters for the ...
Definition: cs_navsto_param.c:1787
cs_property_t * mass_density
Definition: cs_navsto_param.h:649
int n_pressure_ic_defs
Definition: cs_navsto_param.h:812
Definition: cs_navsto_param.h:980
cs_property_t * tot_viscosity
Definition: cs_navsto_param.h:657
static bool cs_navsto_param_is_steady(const cs_navsto_param_t *nsp)
Ask cs_navsto_param_t structure if the settings correspond to a steady computation.
Definition: cs_navsto_param.h:1016
cs_flag_t cs_navsto_param_post_flag_t
Definition: cs_navsto_param.h:59
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.
Definition: cs_navsto_param.c:2411
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.
Definition: cs_navsto_param.c:833
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 me...
Definition: cs_navsto_param.c:1547
Definition: cs_navsto_param.h:573
cs_equation_param_t * cs_navsto_param_get_velocity_param(const cs_navsto_param_t *nsp)
Retrieve the cs_equation_param_t structure related to the velocity equation (momentum equation in mos...
Definition: cs_navsto_param.c:1431
Structure storing information related to the "physical" boundaries associated with the computational ...
Definition: cs_boundary.h:155
Definition: cs_navsto_param.h:446
Definition: cs_navsto_param.h:981
cs_turbulence_param_t * turbulence
Definition: cs_navsto_param.h:629
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:604
Structure and routines handling the SLES settings stored inside a cs_param_sles_t structure...
cs_xdef_t * cs_navsto_set_velocity_wall_by_value(cs_navsto_param_t *nsp, const char *z_name, cs_real_t *values)
Define the velocity field for a sliding wall boundary using a uniform value.
Definition: cs_navsto_param.c:2031
cs_xdef_t ** velocity_bc_defs
Definition: cs_navsto_param.h:845
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_navsto_param.h:457
Definition: cs_navsto_param.h:983
const cs_real_t * var
Definition: cs_navsto_param.h:595
cs_real_t delta_thermal_tolerance
Definition: cs_navsto_param.h:739
Definition: cs_navsto_param.h:451
cs_param_nl_algo_t nl_algo_type
Definition: cs_navsto_param.h:525
void() cs_dof_func_t(cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool dense_output, void *input, cs_real_t *retval)
Generic function pointer for computing a quantity at predefined locations such as degrees of freedom ...
Definition: cs_param_types.h:154
Definition: cs_navsto_param.h:85
cs_real_t var0
Definition: cs_navsto_param.h:588
Definition: cs_navsto_param.h:195
cs_param_space_scheme_t
Type of numerical scheme for the discretization in space.
Definition: cs_param_types.h:207
cs_navsto_param_model_flag_t model_flag
Definition: cs_navsto_param.h:623
cs_param_schur_approx_t
Strategy to build the Schur complement approximation. This appears in block preconditioning or uzawa ...
Definition: cs_param_types.h:657
cs_quadrature_type_t
Definition: cs_quadrature.h:52
Definition: cs_navsto_param.h:984
cs_xdef_t * cs_navsto_set_velocity_inlet_by_array(cs_navsto_param_t *nsp, const char *z_name, cs_flag_t loc, cs_real_t *array, bool is_owner, const cs_lnum_t *index, const cs_lnum_t *ids)
Define the velocity field for an inlet boundary using an array of values.
Definition: cs_navsto_param.c:2232
cs_navsto_key_t
List of available keys for setting the parameters of the Navier-Stokes system.
Definition: cs_navsto_param.h:972
void cs_navsto_set_reference_pressure(cs_navsto_param_t *nsp, cs_real_t pref)
Set the value to consider for the reference pressure.
Definition: cs_navsto_param.c:1521
Definition: cs_navsto_param.h:194
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 dense_output, void *input, cs_real_t *retval)
Generic function pointer for an evaluation relying on an analytic function.
Definition: cs_param_types.h:127
bool velocity_bc_is_owner
Definition: cs_navsto_param.h:843
Definition: cs_navsto_param.h:979
Definition: cs_navsto_param.h:456
const cs_boundary_t * boundaries
Definition: cs_navsto_param.h:826
Definition: cs_navsto_param.h:88
cs_xdef_t * cs_navsto_set_velocity_inlet_by_value(cs_navsto_param_t *nsp, const char *z_name, cs_real_t *values)
Define the velocity field for an inlet boundary using a uniform value.
Definition: cs_navsto_param.c:2092
cs_navsto_param_post_bit_t
Bit values for additional generic postprocessing related to the Navier-Stokes module. In what follows, w denotes the vorticity vector, u the velocity vector and k the kinetic energy defined by .
Definition: cs_navsto_param.h:188
cs_property_t * lam_viscosity
Definition: cs_navsto_param.h:663
Definition: cs_navsto_param.h:198
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, bool is_owner, const cs_lnum_t *index, const cs_lnum_t *ids)
Define a new source term structure defined by an array.
Definition: cs_navsto_param.c:2442
cs_param_schur_approx_t schur_approximation
Definition: cs_navsto_param.h:488
cs_navsto_param_model_t model
Definition: cs_navsto_param.h:617
cs_navsto_param_post_flag_t post_flag
Definition: cs_navsto_param.h:765
Definition: cs_navsto_param.h:466
Structure storing the parameters related to the resolution of the turbulence modelling. Several members are structures defined in cs_turbulence_model.h as a global variable. The purpose of this structure is to store all parameters in one place.
Definition: cs_cdo_turbulence.h:64
cs_xdef_t ** velocity_ic_defs
Definition: cs_navsto_param.h:795
Definition: cs_navsto_param.h:447
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 me...
Definition: cs_navsto_param.c:1684
Definition: cs_navsto_param.h:987
bool pressure_ic_is_owner
Definition: cs_navsto_param.h:811
Definition: cs_navsto_param.h:137
void cs_navsto_set_symmetries(cs_navsto_param_t *nsp)
Add the definition of boundary conditions related to a symmetry into the set of parameters for the ma...
Definition: cs_navsto_param.c:1836
Structure storing medata for defining a quantity in a very flexible way.
Definition: cs_xdef.h:155
Definition: cs_navsto_param.h:459
Definition: cs_navsto_param.h:448
Definition: cs_navsto_param.h:986
int il_algo_restart
Definition: cs_navsto_param.h:510
cs_xdef_t * cs_navsto_set_velocity_inlet_by_analytic(cs_navsto_param_t *nsp, const char *z_name, cs_analytic_func_t *ana, void *input)
Define the velocity field for an inlet boundary using an analytical function.
Definition: cs_navsto_param.c:2155
cs_iter_algo_param_t il_algo_param
Definition: cs_navsto_param.h:503
const char * cs_navsto_param_get_coupling_name(cs_navsto_param_coupling_t coupling)
Retrieve the name of the coupling algorithm.
Definition: cs_navsto_param.c:1494
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 unknowns. This definition can be done on a specified me...
Definition: cs_navsto_param.c:1734
bool handle_non_linearities
Definition: cs_navsto_param.h:726
cs_navsto_sles_t
High-level information about the way of settings the SLES for solving the Navier-Stokes system...
Definition: cs_navsto_param.h:442
cs_navsto_param_sles_t * cs_navsto_param_get_sles_param(const cs_navsto_param_t *nsp)
Retrieve the cs_equation_param_t structure related to the velocity equation (momentum equation in mos...
Definition: cs_navsto_param.c:1411
Definition: cs_navsto_param.h:84
Definition: cs_navsto_param.h:445
bool pressure_bc_is_owner
Definition: cs_navsto_param.h:860
Definition: cs_navsto_param.h:452
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
double cs_navsto_param_get_notay_scaling(void)
Retrieve the scaling coefficient used in the Notay's transformation devised in "Algebraic multigrid f...
Definition: cs_navsto_param.c:545
cs_xdef_t ** pressure_bc_defs
Definition: cs_navsto_param.h:862
int n_pressure_bc_defs
Definition: cs_navsto_param.h:861
cs_navsto_param_model_bit_t
Bit values for additional physical modelling related to the Navier-Stokes system of equations...
Definition: cs_navsto_param.h:131
#define END_C_DECLS
Definition: cs_defs.h:513
Definition: cs_navsto_param.h:196
unsigned short int cs_flag_t
Definition: cs_defs.h:324
cs_navsto_param_t * cs_navsto_param_free(cs_navsto_param_t *param)
Free a cs_navsto_param_t structure.
Definition: cs_navsto_param.c:749
cs_param_dof_reduction_t
Definition: cs_param_types.h:234
cs_iter_algo_param_t nl_algo_param
Definition: cs_navsto_param.h:533
Physical constants descriptor.
Definition: cs_physical_constants.h:51
int verbosity
Definition: cs_navsto_param.h:759
Definition: cs_iter_algo.h:53
Definition: cs_navsto_param.h:462
cs_param_sles_t * schur_sles_param
Definition: cs_navsto_param.h:550
const char * cs_navsto_param_get_model_name(cs_navsto_param_model_t model)
Retrieve the name of the model system of equations.
Definition: cs_navsto_param.c:1466
cs_navsto_param_boussinesq_t * cs_navsto_param_add_boussinesq_term(cs_navsto_param_t *nsp, cs_real_t dilatation_coef, cs_real_t reference_value)
Add a new Boussinesq term (source term for the momemtum equation)
Definition: cs_navsto_param.c:1354
int n_velocity_bc_defs
Definition: cs_navsto_param.h:844
Definition: cs_navsto_param.h:574
Definition: cs_navsto_param.h:572
Definition: cs_navsto_param.h:453
Definition: cs_navsto_param.h:138
Definition: cs_navsto_param.h:193
cs_iter_algo_param_aa_t anderson_param
Definition: cs_navsto_param.h:540
Definition: cs_navsto_param.h:992
Definition: cs_navsto_param.h:191
Definition: cs_navsto_param.h:990
cs_param_dof_reduction_t dof_reduction_mode
Definition: cs_navsto_param.h:676
Definition: cs_navsto_param.h:977
cs_navsto_param_model_t
Describe the system of equations related to the Navier-Stokes to be solved.
Definition: cs_navsto_param.h:82
int n_max_outer_iter
Definition: cs_navsto_param.h:748
Definition: cs_navsto_param.h:199
cs_navsto_sles_t strategy
Definition: cs_navsto_param.h:482
Definition: cs_navsto_param.h:974
Structure associated to the definition of a property relying on the cs_xdef_t structure.
cs_flag_t cs_navsto_param_model_flag_t
Definition: cs_navsto_param.h:58
cs_xdef_t * cs_navsto_set_pressure_bc_by_value(cs_navsto_param_t *nsp, const char *z_name, cs_real_t *values)
Set the pressure field on a boundary using a uniform value.
Definition: cs_navsto_param.c:1942
cs_physical_constants_t * phys_constants
Definition: cs_navsto_param.h:642
Structure storing all metadata related to the resolution of a linear system with an iterative solver...
Definition: cs_param_sles.h:62
void cs_navsto_param_set_boussinesq_array(cs_navsto_param_boussinesq_t *bp, const cs_real_t *var)
Set the array of values to consider in the Boussinesq term.
Definition: cs_navsto_param.c:1389
Definition: cs_navsto_param.h:461
cs_navsto_param_coupling_t coupling
Definition: cs_navsto_param.h:682
cs_param_space_scheme_t space_scheme
Definition: cs_navsto_param.h:696
Definition: cs_navsto_param.h:192
Definition: cs_navsto_param.h:450