7.2
general documentation
cs_equation_system_param.h
Go to the documentation of this file.
1 #ifndef __CS_EQUATION_SYSTEM_PARAM_H__
2 #define __CS_EQUATION_SYSTEM_PARAM_H__
3 
4 /*============================================================================
5  * Functions to handle a set of coupled equations hinging on the cs_equation_t
6  * structure
7  *============================================================================*/
8 
9 /*
10  This file is part of code_saturne, a general-purpose CFD tool.
11 
12  Copyright (C) 1998-2022 EDF S.A.
13 
14  This program is free software; you can redistribute it and/or modify it under
15  the terms of the GNU General Public License as published by the Free Software
16  Foundation; either version 2 of the License, or (at your option) any later
17  version.
18 
19  This program is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
22  details.
23 
24  You should have received a copy of the GNU General Public License along with
25  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
26  Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 */
28 
29 /*----------------------------------------------------------------------------
30  * Local headers
31  *----------------------------------------------------------------------------*/
32 
33 #include "cs_equation_param.h"
34 #include "cs_iter_algo.h"
35 #include "cs_param_types.h"
36 
37 /*----------------------------------------------------------------------------*/
38 
40 
41 /*============================================================================
42  * Macro definitions
43  *============================================================================*/
44 
45 /*============================================================================
46  * Type definitions
47  *============================================================================*/
48 
59 typedef enum {
60 
62 
64 
66 
71 typedef struct {
72 
91  char *restrict name;
92 
93  int verbosity;
94 
96 
98 
115 
117 
119 
125 
126 
156 typedef enum {
157 
165 
167 
169 
170 /*============================================================================
171  * Public function prototypes
172  *============================================================================*/
173 /*----------------------------------------------------------------------------*/
182 /*----------------------------------------------------------------------------*/
183 
185 cs_equation_system_param_create(const char *name,
186  int block_var_dim);
187 
188 /*----------------------------------------------------------------------------*/
196 /*----------------------------------------------------------------------------*/
197 
200 
201 /*----------------------------------------------------------------------------*/
207 /*----------------------------------------------------------------------------*/
208 
209 void
211 
212 /*----------------------------------------------------------------------------*/
221 /*----------------------------------------------------------------------------*/
222 
223 void
226  const char *keyval);
227 
228 /*----------------------------------------------------------------------------*/
229 
231 
232 #endif /* __CS_EQUATION_SYSTEM_PARAM_H__ */
#define restrict
Definition: cs_defs.h:142
Definition: cs_equation_system_param.h:166
cs_equation_system_sles_strategy_t
Definition: cs_equation_system_param.h:59
int block_var_dim
Definition: cs_equation_system_param.h:97
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
Definition: cs_equation_system_param.h:162
Definition: cs_equation_system_param.h:158
void cs_equation_system_param_set(cs_equation_system_param_t *sysp, cs_equation_system_key_t key, const char *keyval)
Set a parameter related to a keyname in a cs_equation_system_param_t structure.
Definition: cs_equation_system_param.c:209
cs_iter_algo_param_t linear_solver
Definition: cs_equation_system_param.h:118
cs_equation_system_key_t
List of available keys for setting the parameters of a system of equations.
Definition: cs_equation_system_param.h:156
bool sles_setup_done
Definition: cs_equation_system_param.h:114
Definition: cs_equation_system_param.h:163
int verbosity
Definition: cs_equation_system_param.h:93
Definition: cs_equation_system_param.h:161
Definition: cs_equation_system_param.h:63
cs_param_space_scheme_t
Type of numerical scheme for the discretization in space.
Definition: cs_param_types.h:207
Definition: cs_equation_system_param.h:159
Main structure storing the parameter settings.
Definition: cs_equation_system_param.h:71
char *restrict name
Definition: cs_equation_system_param.h:91
Definition: cs_equation_system_param.h:61
cs_equation_system_param_t * cs_equation_system_param_free(cs_equation_system_param_t *sysp)
Free a cs_equation_system_param_t structure.
Definition: cs_equation_system_param.c:141
Definition: cs_equation_system_param.h:164
cs_param_space_scheme_t space_scheme
Definition: cs_equation_system_param.h:95
Definition: cs_equation_system_param.h:160
#define END_C_DECLS
Definition: cs_defs.h:511
Definition: cs_iter_algo.h:53
void cs_equation_system_param_log(const cs_equation_system_param_t *sysp)
Log the setup gathered in the structure cs_equation_system_param_t.
Definition: cs_equation_system_param.c:162
cs_equation_system_param_t * cs_equation_system_param_create(const char *name, int block_var_dim)
Create and initialize a new cs_equation_system_param_t structure.
Definition: cs_equation_system_param.c:91
cs_equation_system_sles_strategy_t sles_strategy
Definition: cs_equation_system_param.h:116