7.1
general documentation
cs_navsto_param.h
Go to the documentation of this file.
1 #ifndef __CS_NAVSTO_PARAM_H__
2 #define __CS_NAVSTO_PARAM_H__
3 
4 /*============================================================================
5  * Functions to handle cs_navsto_param_t structure
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2021 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------
29  * Local headers
30  *----------------------------------------------------------------------------*/
31 
32 #include "cs_boundary.h"
33 #include "cs_cdo_turbulence.h"
34 #include "cs_equation_param.h"
35 #include "cs_iter_algo.h"
36 #include "cs_math.h"
37 #include "cs_param_sles.h"
38 #include "cs_physical_constants.h"
39 
40 /*----------------------------------------------------------------------------*/
41 
43 
44 /*============================================================================
45  * Macro definitions
46  *============================================================================*/
47 
48 /* Manage the naming of properties, variables and equations related to the
49  * Navier-Stokes module
50  */
51 
52 #define CS_NAVSTO_STREAM_EQNAME "streamfunction_eq"
53 
54 /*============================================================================
55  * Type definitions
56  *============================================================================*/
57 
60 
82 typedef enum {
83 
87 
89 
91 
131 typedef enum {
132 
133  CS_NAVSTO_MODEL_STEADY = 1<<0, /* = 1 */
137  CS_NAVSTO_MODEL_BOUSSINESQ = 1<<4, /* = 16 */
139 
141 
187 typedef enum {
188 
190  CS_NAVSTO_POST_KINETIC_ENERGY = 1<< 1, /* = 2 */
191  CS_NAVSTO_POST_VORTICITY = 1<< 2, /* = 4 */
193  CS_NAVSTO_POST_STREAM_FUNCTION = 1<< 4, /* = 16 */
194  CS_NAVSTO_POST_HELICITY = 1<< 5, /* = 32 */
195  CS_NAVSTO_POST_ENSTROPHY = 1<< 6, /* = 64 */
196  CS_NAVSTO_POST_MASS_DENSITY = 1<< 7, /* = 128 */
198  CS_NAVSTO_POST_PRESSURE_GRADIENT = 1<< 9, /* = 512 */
199 
201 
441 typedef enum {
442 
445  CS_NAVSTO_SLES_BY_BLOCKS, /* deprecated */
466 
468 
470 
475 typedef struct {
476 
482 
488 
503 
510 
525 
533 
540 
552 
556 
571 typedef enum {
572 
576 
578 
580 
586 typedef struct {
587 
588  cs_real_t beta; /* Dilatation coefficient */
589  cs_real_t var0; /* Reference value of the variable */
590 
591  /* Array of values of the variable (for instance the temperature). This is a
592  * shared pointer. The lifecycle of this array is not managed by this
593  * structure.
594  */
595 
596  const cs_real_t *var;
597 
599 
605 typedef struct {
606 
619 
625 
631 
644 
651 
659 
665 
678 
684 
692 
703 
709 
727 
728  /* Boussinesq approximation:
729  *
730  * Take into account buoyancy terms (variation of mass density w.r.t. the
731  * variation of a field (for instance the temperature but can be also a
732  * concentration as in segregation model in the solidification module)
733  *
734  * \var n_boussinesq_terms
735  * Number of contributions to the buoyancy source term in the Boussinesq
736  * approximation
737  *
738  * \var boussinesq_param
739  * Structure storing elements used to compute the Boussinesq approximation
740  */
741 
744 
751 
757 
764 
773 
784 
790 
820 
838 
847  /* \var boundaries
848  * Pointer to a \ref cs_boundary_t structure shared with the domain
849  */
851 
870 
887 
899 
903 
1021 typedef enum {
1022 
1050 
1052 
1053 } cs_navsto_key_t;
1054 
1055 /*============================================================================
1056  * Inline static public function prototypes
1057  *============================================================================*/
1058 
1059 /*----------------------------------------------------------------------------*/
1068 /*----------------------------------------------------------------------------*/
1069 
1070 static inline bool
1071 cs_navsto_param_is_steady(const cs_navsto_param_t *nsp)
1072 {
1073  if (nsp == NULL)
1074  return true;
1075 
1077  return true;
1078  else
1079  return false;
1080 }
1081 
1082 /*============================================================================
1083  * Public function prototypes
1084  *============================================================================*/
1085 
1086 /*----------------------------------------------------------------------------*/
1095 /*----------------------------------------------------------------------------*/
1096 
1097 double
1099 
1100  /*----------------------------------------------------------------------------*/
1109 /*----------------------------------------------------------------------------*/
1110 
1111 void
1112 cs_navsto_param_set_notay_scaling(double scaling_coef);
1113 
1114 /*----------------------------------------------------------------------------*/
1127 /*----------------------------------------------------------------------------*/
1128 
1130 cs_navsto_param_create(const cs_boundary_t *boundaries,
1132  cs_navsto_param_model_flag_t model_flag,
1133  cs_navsto_param_coupling_t algo_coupling,
1134  cs_navsto_param_post_flag_t post_flag);
1135 
1136 /*----------------------------------------------------------------------------*/
1144 /*----------------------------------------------------------------------------*/
1145 
1148 
1149 /*----------------------------------------------------------------------------*/
1158 /*----------------------------------------------------------------------------*/
1159 
1160 void
1162  cs_navsto_key_t key,
1163  const char *keyval);
1164 
1165 /*----------------------------------------------------------------------------*/
1173 /*----------------------------------------------------------------------------*/
1174 
1175 void
1177  cs_equation_param_t *eqp);
1178 
1179 /*----------------------------------------------------------------------------*/
1185 /*----------------------------------------------------------------------------*/
1186 
1187 void
1189 
1190 /*----------------------------------------------------------------------------*/
1198 /*----------------------------------------------------------------------------*/
1199 
1202  cs_real_t dilatation_coef,
1203  cs_real_t reference_value);
1204 
1205 /*----------------------------------------------------------------------------*/
1212 /*----------------------------------------------------------------------------*/
1213 
1214 void
1216  const cs_real_t *var);
1217 
1218 /*----------------------------------------------------------------------------*/
1227 /*----------------------------------------------------------------------------*/
1228 
1231 
1232 /*----------------------------------------------------------------------------*/
1241 /*----------------------------------------------------------------------------*/
1242 
1245 
1246 /*----------------------------------------------------------------------------*/
1254 /*----------------------------------------------------------------------------*/
1255 
1256 const char *
1258 
1259 /*----------------------------------------------------------------------------*/
1267 /*----------------------------------------------------------------------------*/
1268 
1269 const char *
1271 
1272 /*----------------------------------------------------------------------------*/
1279 /*----------------------------------------------------------------------------*/
1280 
1281 void
1283  cs_real_t pref);
1284 
1285 /*----------------------------------------------------------------------------*/
1299 /*----------------------------------------------------------------------------*/
1300 
1301 cs_xdef_t *
1303  const char *z_name,
1304  cs_real_t *val);
1305 
1306 /*----------------------------------------------------------------------------*/
1321 /*----------------------------------------------------------------------------*/
1322 
1323 cs_xdef_t *
1325  const char *z_name,
1326  cs_analytic_func_t *analytic,
1327  void *input);
1328 
1329 /*----------------------------------------------------------------------------*/
1343 /*----------------------------------------------------------------------------*/
1344 
1345 cs_xdef_t *
1347  const char *z_name,
1348  cs_real_t *val);
1349 
1350 /*----------------------------------------------------------------------------*/
1365 /*----------------------------------------------------------------------------*/
1366 
1367 cs_xdef_t *
1369  const char *z_name,
1370  cs_analytic_func_t *analytic,
1371  void *input);
1372 
1373 /*----------------------------------------------------------------------------*/
1381 /*----------------------------------------------------------------------------*/
1382 
1383 void
1385 
1386 /*----------------------------------------------------------------------------*/
1394 /*----------------------------------------------------------------------------*/
1395 
1396 void
1398 
1399 /*----------------------------------------------------------------------------*/
1407 /*----------------------------------------------------------------------------*/
1408 
1409 void
1411 
1412 /*----------------------------------------------------------------------------*/
1423 /*----------------------------------------------------------------------------*/
1424 
1425 cs_xdef_t *
1427  const char *z_name,
1428  cs_real_t *values);
1429 
1430 /*----------------------------------------------------------------------------*/
1442 /*----------------------------------------------------------------------------*/
1443 
1444 cs_xdef_t *
1446  const char *z_name,
1447  cs_real_t *values);
1448 
1449 /*----------------------------------------------------------------------------*/
1461 /*----------------------------------------------------------------------------*/
1462 
1463 cs_xdef_t *
1465  const char *z_name,
1466  cs_real_t *values);
1467 
1468 /*----------------------------------------------------------------------------*/
1481 /*----------------------------------------------------------------------------*/
1482 
1483 cs_xdef_t *
1485  const char *z_name,
1486  cs_analytic_func_t *ana,
1487  void *input);
1488 
1489 /*----------------------------------------------------------------------------*/
1505 /*----------------------------------------------------------------------------*/
1506 
1507 cs_xdef_t *
1509  const char *z_name,
1510  cs_flag_t loc,
1511  cs_real_t *array,
1512  bool is_owner,
1513  cs_lnum_t *index);
1514 
1515 /*----------------------------------------------------------------------------*/
1527 /*----------------------------------------------------------------------------*/
1528 
1529 cs_xdef_t *
1531  const char *z_name,
1532  cs_dof_func_t *func,
1533  void *func_input);
1534 
1535 /*----------------------------------------------------------------------------*/
1547 /*----------------------------------------------------------------------------*/
1548 
1549 cs_xdef_t *
1551  const char *z_name,
1552  cs_analytic_func_t *ana,
1553  void *input);
1554 
1555 /*----------------------------------------------------------------------------*/
1566 /*----------------------------------------------------------------------------*/
1567 
1568 cs_xdef_t *
1570  const char *z_name,
1571  cs_real_t *val);
1572 
1573 /*----------------------------------------------------------------------------*/
1588 /*----------------------------------------------------------------------------*/
1589 
1590 cs_xdef_t *
1592  const char *z_name,
1593  cs_flag_t loc,
1594  cs_real_t *array,
1595  bool is_owner,
1596  cs_lnum_t *index);
1597 
1598 /*----------------------------------------------------------------------------*/
1605 /*----------------------------------------------------------------------------*/
1606 
1607 void
1609  cs_adv_field_t *adv_fld);
1610 
1611 /*----------------------------------------------------------------------------*/
1612 
1614 
1615 #endif /* __CS_NAVSTO_PARAM_H__ */
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:1331
Definition: cs_navsto_param.h:1049
Definition: cs_navsto_param.h:196
Definition: cs_navsto_param.h:454
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:1390
Definition: cs_navsto_param.h:1046
Definition: cs_navsto_param.h:1051
cs_property_t * lam_viscosity
Definition: cs_navsto_param.h:664
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:2106
Definition: cs_navsto_param.h:1028
Definition: cs_navsto_param.h:1029
cs_navsto_param_sles_t * sles_param
Definition: cs_navsto_param.h:756
Definition: cs_navsto_param.h:1031
Structure storing the parameters related to the Boussinesq source term in the momentum equation...
Definition: cs_navsto_param.h:586
int n_velocity_ic_defs
Definition: cs_navsto_param.h:818
Definition: cs_navsto_param.h:453
Definition: cs_advection_field.h:149
cs_navsto_param_boussinesq_t * boussinesq_param
Definition: cs_navsto_param.h:743
Definition: cs_navsto_param.h:1041
Definition: cs_navsto_param.h:459
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:2681
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:626
Definition: cs_navsto_param.h:136
cs_real_t reference_pressure
Definition: cs_navsto_param.h:898
Definition: cs_navsto_param.h:1038
void cs_navsto_param_set_notay_scaling(double scaling_coef)
Set the scaling coefficient used in the Notay&#39;s transformation devised in "Algebraic multigrid for St...
Definition: cs_navsto_param.c:605
cs_navsto_param_coupling_t
Choice of algorithm for solving the system.
Definition: cs_navsto_param.h:571
Definition: cs_navsto_param.h:462
Definition: cs_navsto_param.h:133
bool velocity_ic_is_owner
Definition: cs_navsto_param.h:817
Definition: cs_navsto_param.h:577
Definition: cs_navsto_param.h:467
Structure storing the parameters for solving the Navier-Stokes system.
Definition: cs_navsto_param.h:475
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources...
Definition: cs_equation_param.h:177
Definition: cs_navsto_param.h:457
Definition: cs_navsto_param.h:86
cs_param_nl_algo_t nl_algo_type
Definition: cs_navsto_param.h:524
cs_xdef_t ** pressure_ic_defs
Definition: cs_navsto_param.h:837
int n_boussinesq_terms
Definition: cs_navsto_param.h:742
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:1830
Definition: cs_navsto_param.h:1048
cs_real_t beta
Definition: cs_navsto_param.h:588
Structure storing all the parameters to drive the algorithm called Anderson acceleration.
Definition: cs_iter_algo.h:177
Definition: cs_navsto_param.h:463
Definition: cs_navsto_param.h:443
cs_param_nl_algo_t
Class of non-linear iterative algorithm.
Definition: cs_param_types.h:511
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:2590
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:2519
Definition: cs_navsto_param.h:189
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
Definition: cs_navsto_param.h:448
Definition: cs_navsto_param.h:1024
Definition: cs_navsto_param.h:134
cs_quadrature_type_t qtype
Definition: cs_navsto_param.h:750
Definition: cs_navsto_param.h:1042
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, cs_lnum_t *index)
Define a new source term structure defined by an array.
Definition: cs_navsto_param.c:2655
Definition: cs_navsto_param.h:1035
cs_real_t gd_scale_coef
Definition: cs_navsto_param.h:691
Definition: cs_navsto_param.h:464
Definition: cs_navsto_param.h:1044
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:2006
cs_property_t * mass_density
Definition: cs_navsto_param.h:650
int n_pressure_ic_defs
Definition: cs_navsto_param.h:836
Definition: cs_navsto_param.h:1033
cs_property_t * tot_viscosity
Definition: cs_navsto_param.h:658
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:2625
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:895
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:1766
Definition: cs_navsto_param.h:574
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:1647
Structure storing information related to the "physical" boundaries associated with the computational ...
Definition: cs_boundary.h:155
Definition: cs_navsto_param.h:1026
Definition: cs_navsto_param.h:445
Definition: cs_navsto_param.h:1034
cs_param_advection_strategy_t
Choice of how to handle the advection term in an equation.
Definition: cs_param_types.h:352
cs_turbulence_param_t * turbulence
Definition: cs_navsto_param.h:630
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:605
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:2250
cs_xdef_t ** velocity_bc_defs
Definition: cs_navsto_param.h:869
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, cs_lnum_t *index)
Define the velocity field for an inlet boundary using an array of values.
Definition: cs_navsto_param.c:2449
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_navsto_param.h:456
Definition: cs_navsto_param.h:1036
const cs_real_t * var
Definition: cs_navsto_param.h:596
cs_real_t delta_thermal_tolerance
Definition: cs_navsto_param.h:763
Definition: cs_navsto_param.h:450
Definition: cs_navsto_param.h:1023
cs_param_advection_extrapol_t
Choice of how to extrapolate the advection field in the advection term.
Definition: cs_param_types.h:386
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:127
Definition: cs_navsto_param.h:85
cs_real_t var0
Definition: cs_navsto_param.h:589
Definition: cs_navsto_param.h:194
cs_param_space_scheme_t
Type of numerical scheme for the discretization in space.
Definition: cs_param_types.h:180
cs_navsto_param_model_flag_t model_flag
Definition: cs_navsto_param.h:624
cs_param_schur_approx_t
Strategy to build the Schur complement approximation. This appears in block preconditioning or uzawa ...
Definition: cs_param_types.h:621
cs_quadrature_type_t
Definition: cs_quadrature.h:52
Definition: cs_navsto_param.h:1037
cs_navsto_key_t
List of available keys for setting the parameters of the Navier-Stokes system.
Definition: cs_navsto_param.h:1021
Definition: cs_navsto_param.h:1025
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:1740
Definition: cs_navsto_param.h:193
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:100
bool velocity_bc_is_owner
Definition: cs_navsto_param.h:867
cs_param_time_scheme_t time_scheme
Definition: cs_navsto_param.h:701
Definition: cs_navsto_param.h:1032
Definition: cs_navsto_param.h:455
const cs_boundary_t * boundaries
Definition: cs_navsto_param.h:850
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:2310
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 1/2 * u u.
Definition: cs_navsto_param.h:187
Definition: cs_navsto_param.h:197
cs_navsto_param_model_t model
Definition: cs_navsto_param.h:618
cs_navsto_param_post_flag_t post_flag
Definition: cs_navsto_param.h:789
Definition: cs_navsto_param.h:465
cs_param_advection_extrapol_t adv_extrapol
Definition: cs_navsto_param.h:726
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:819
cs_param_advection_form_t adv_form
Definition: cs_navsto_param.h:723
Definition: cs_navsto_param.h:446
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:1903
Definition: cs_navsto_param.h:1040
bool pressure_ic_is_owner
Definition: cs_navsto_param.h:835
Definition: cs_navsto_param.h:1047
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:2055
Structure storing medata for defining a quantity in a very flexible way.
Definition: cs_xdef.h:154
Definition: cs_navsto_param.h:458
Definition: cs_navsto_param.h:447
cs_real_t theta
Definition: cs_navsto_param.h:702
Definition: cs_navsto_param.h:1039
int il_algo_restart
Definition: cs_navsto_param.h:509
cs_param_advection_strategy_t adv_strategy
Definition: cs_navsto_param.h:725
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:2373
cs_iter_algo_param_t il_algo_param
Definition: cs_navsto_param.h:502
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:1712
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:1953
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:441
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:1627
Definition: cs_navsto_param.h:84
Definition: cs_navsto_param.h:444
bool pressure_bc_is_owner
Definition: cs_navsto_param.h:884
Definition: cs_navsto_param.h:451
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&#39;s transformation devised in "Algebraic multigrid f...
Definition: cs_navsto_param.c:588
cs_xdef_t ** pressure_bc_defs
Definition: cs_navsto_param.h:886
int n_pressure_bc_defs
Definition: cs_navsto_param.h:885
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:511
Definition: cs_navsto_param.h:195
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:810
cs_param_dof_reduction_t
Definition: cs_param_types.h:207
cs_iter_algo_param_t nl_algo_param
Definition: cs_navsto_param.h:532
Physical constants descriptor.
Definition: cs_physical_constants.h:51
int verbosity
Definition: cs_navsto_param.h:783
Definition: cs_iter_algo.h:53
Definition: cs_navsto_param.h:461
cs_param_sles_t * schur_sles_param
Definition: cs_navsto_param.h:551
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:1683
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:1570
int n_velocity_bc_defs
Definition: cs_navsto_param.h:868
Definition: cs_navsto_param.h:575
Definition: cs_navsto_param.h:573
Definition: cs_navsto_param.h:452
Definition: cs_navsto_param.h:138
cs_param_advection_scheme_t
Definition: cs_param_types.h:319
Definition: cs_navsto_param.h:192
cs_iter_algo_param_aa_t anderson_param
Definition: cs_navsto_param.h:539
Definition: cs_navsto_param.h:1045
Definition: cs_navsto_param.h:190
Definition: cs_navsto_param.h:1043
cs_param_dof_reduction_t dof_reduction_mode
Definition: cs_navsto_param.h:677
Definition: cs_navsto_param.h:1030
cs_param_schur_approx_t schur_approximation
Definition: cs_navsto_param.h:487
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:772
cs_param_time_scheme_t
Definition: cs_param_types.h:242
Definition: cs_navsto_param.h:198
cs_navsto_sles_t strategy
Definition: cs_navsto_param.h:481
cs_param_advection_form_t
Definition: cs_param_types.h:275
Definition: cs_navsto_param.h:1027
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:2161
cs_physical_constants_t * phys_constants
Definition: cs_navsto_param.h:643
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:1605
Definition: cs_navsto_param.h:460
cs_param_advection_scheme_t adv_scheme
Definition: cs_navsto_param.h:724
cs_navsto_param_coupling_t coupling
Definition: cs_navsto_param.h:683
cs_param_space_scheme_t space_scheme
Definition: cs_navsto_param.h:708
Definition: cs_navsto_param.h:191
Definition: cs_navsto_param.h:449