47 #define CS_PARAM_FLAG_UNIFORM (1 << 0) // 1: uniform (in space)
48 #define CS_PARAM_FLAG_CELLWISE (1 << 1) // 2: cellwise uniform
49 #define CS_PARAM_FLAG_UNSTEADY (1 << 2) // 4: unsteady
50 #define CS_PARAM_FLAG_VERTEX (1 << 3) // 8: on vertices
51 #define CS_PARAM_FLAG_EDGE (1 << 4) // 16: on edges
52 #define CS_PARAM_FLAG_FACE (1 << 5) // 32: on faces
53 #define CS_PARAM_FLAG_CELL (1 << 6) // 64: on cells
54 #define CS_PARAM_FLAG_PRIMAL (1 << 7) // 128: on primal mesh
55 #define CS_PARAM_FLAG_DUAL (1 << 8) // 256: on dual mesh
56 #define CS_PARAM_FLAG_BORDER (1 << 9) // 512: scalar-valued
57 #define CS_PARAM_FLAG_SCAL (1 << 10) // 1024: scalar-valued
58 #define CS_PARAM_FLAG_VECT (1 << 11) // 2048: vector-valued
59 #define CS_PARAM_FLAG_TENS (1 << 12) // 4096: tensor-valued
60 #define CS_PARAM_FLAG_BY_CELL (1 << 13) // 8192: by cell (c2e, c2f, c2v)
cs_quadra_type_t quad_type
Definition: cs_param.h:332
cs_time_scheme_t
Definition: cs_param.h:146
cs_param_bc_t * cs_param_bc_create(cs_param_bc_type_t default_bc)
Allocate and initialize a new cs_param_bc_t structure.
Definition: cs_param.c:275
Definition: cs_param.h:149
void cs_param_set_def(cs_param_def_type_t def_type, cs_param_var_type_t var_type, const void *val, cs_def_t *def)
Set a cs_def_t structure.
Definition: cs_param.c:180
Definition: cs_param.h:116
cs_param_hodge_algo_t algo
Definition: cs_param.h:136
cs_param_advection_weight_algo_t weight_algo
Definition: cs_param.h:207
cs_param_precond_type_t precond
Definition: cs_param.h:371
#define restrict
Definition: cs_defs.h:122
cs_param_bc_def_t * defs
Definition: cs_param.h:303
const char * cs_param_reaction_get_name(const cs_param_reaction_t r_info)
Get the name related to a reaction term.
Definition: cs_param.c:450
Definition: cs_param.h:347
cs_param_def_type_t def_type
Definition: cs_param.h:331
Definition: cs_param.h:316
Definition: cs_param.h:349
cs_real_t theta
Definition: cs_param.h:160
cs_param_boundary_type_t
Definition: cs_param.h:237
cs_onevar_law_func_t * law1_func
Definition: cs_param.h:79
Definition: cs_param.h:103
Definition: cs_param.h:101
Definition: cs_param.h:99
Definition: cs_param.h:198
bool inv_pty
Definition: cs_param.h:132
const char * cs_param_source_term_get_type_name(const cs_param_source_term_t st_info)
Get the name of type of a given source term structure.
Definition: cs_param.c:553
void cs_param_bc_def_set(cs_param_bc_def_t *bcpd, int loc_id, cs_param_bc_type_t bc_type, cs_param_var_type_t var_type, cs_param_def_type_t def_type, const void *coef1, const void *coef2)
Set a cs_param_bc_def_t structure.
Definition: cs_param.c:308
Definition: cs_param.h:360
Definition: cs_param.h:266
cs_def_t def_coef1
Definition: cs_param.h:289
Definition: cs_param.h:363
cs_param_var_type_t var_type
Definition: cs_param.h:283
cs_user_func_t * user_func
Definition: cs_param.h:78
cs_param_itsol_type_t solver
Definition: cs_param.h:372
Definition: cs_param.h:185
const char * cs_param_get_bc_enforcement_name(cs_param_bc_enforce_t type)
Get the name of the type of enforcement of the boundary condition.
Definition: cs_param.c:378
Definition: cs_param.h:188
Definition: cs_param.h:253
#define BEGIN_C_DECLS
Definition: cs_defs.h:429
Definition: cs_param.h:254
Definition: cs_param.h:100
Definition: cs_param.h:346
Definition: cs_param.h:123
Definition: cs_param.h:196
Definition: cs_param.h:241
const char * cs_param_get_precond_name(cs_param_precond_type_t precond)
Get the name of the preconditioner.
Definition: cs_param.c:635
cs_param_advection_weight_t
Definition: cs_param.h:194
Definition: cs_param.h:364
Definition: cs_param.h:262
Definition: cs_param.h:320
Definition: cs_param.h:183
void cs_param_source_term_add(cs_param_source_term_t *stp, const char *st_name, int ml_id, cs_param_source_term_type_t type, cs_param_var_type_t var_type, cs_quadra_type_t quad_type, cs_param_def_type_t def_type, const void *val)
Define a source term. This source term is added to the list of source terms associated to an equation...
Definition: cs_param.c:500
Definition: cs_param.h:350
cs_param_source_term_type_t
Definition: cs_param.h:311
Definition: cs_param.h:117
Definition: cs_param.h:112
Definition: cs_param.h:174
cs_param_advection_form_t
Definition: cs_param.h:172
Definition: cs_param.h:197
Definition: cs_param.h:361
Definition: cs_param.h:150
Definition: cs_param.h:115
Definition: cs_param.h:102
Definition: cs_param.h:239
Definition: cs_param.h:314
cs_def_t def
Definition: cs_param.h:337
const char * cs_param_reaction_get_type_name(cs_param_reaction_t r_info)
Get the name of the type of reaction term.
Definition: cs_param.c:466
int ml_id
Definition: cs_param.h:324
char * name
Definition: cs_param.h:225
cs_def_t def_coef2
Definition: cs_param.h:290
Definition: cs_param.h:219
Definition: cs_param.h:353
Definition: cs_param.h:315
Definition: cs_param.h:126
Definition: cs_param.h:204
int loc_id
Definition: cs_param.h:280
bool do_lumping
Definition: cs_param.h:161
Definition: cs_param.h:184
Definition: cs_param.h:250
cs_timestep_func_t * time_func
Definition: cs_param.h:77
cs_param_advection_weight_algo_t
Definition: cs_param.h:181
Definition: cs_param.h:89
cs_time_scheme_t scheme
Definition: cs_param.h:159
const char * cs_param_hodge_get_type_name(const cs_param_hodge_t h_info)
Get the type of discrete Hodge operator.
Definition: cs_param.c:585
Definition: cs_param.h:175
void( cs_onevar_law_func_t)(double var_value, const void *law_param, cs_get_t *retval)
Compute the value of a quantity according to a law depending only on one variable. This law is described by a set of parameters stored in a structure. result = law(var_value)
Definition: cs_cdo.h:128
int output_freq
Definition: cs_param.h:377
void( cs_analytic_func_t)(cs_real_t time, const cs_real_3_t xyz, cs_get_t *retval)
Generic analytic function.
Definition: cs_cdo.h:96
int n_max_iter
Definition: cs_param.h:374
Definition: cs_param.h:91
Definition: cs_param.h:268
cs_param_hodge_t hodge
Definition: cs_param.h:228
cs_quadra_type_t quad_type
Definition: cs_param.h:209
const char * cs_param_get_bc_name(cs_param_bc_type_t bc)
Get the name of the type of boundary condition.
Definition: cs_param.c:343
int n_defs
Definition: cs_param.h:302
const char * cs_param_get_def_type_name(const cs_param_def_type_t type)
Get the name related to a type of definition.
Definition: cs_param.c:163
const char * cs_param_hodge_get_algo_name(const cs_param_hodge_t h_info)
Get the name of algorithm related to a discrete Hdoge operator.
Definition: cs_param.c:569
cs_analytic_func_t * analytic
Definition: cs_param.h:76
cs_param_precond_type_t
Definition: cs_param.h:344
cs_param_hodge_type_t type
Definition: cs_param.h:135
Definition: cs_param.h:157
Definition: cs_param.h:113
cs_param_itsol_type_t
Definition: cs_param.h:358
cs_param_advection_form_t formulation
Definition: cs_param.h:206
cs_param_def_type_t def_type
Definition: cs_param.h:284
Definition: cs_param.h:242
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
cs_param_bc_type_t
Definition: cs_param.h:248
int post
Definition: cs_param.h:325
const char * cs_param_source_term_get_name(const cs_param_source_term_t st_info)
Get the name related to a source term.
Definition: cs_param.c:537
cs_param_def_type_t ic_def_type
Definition: cs_param.h:164
cs_param_bc_enforce_t enforcement
Definition: cs_param.h:297
Definition: cs_param.h:240
Definition: cs_param.h:186
Definition: cs_param.h:90
cs_real_t( cs_timestep_func_t)(int time_iter)
Simple function to define the time step according to the number of iteration already done...
Definition: cs_cdo.h:112
Definition: cs_param.h:265
cs_quadra_type_t
Definition: cs_quadrature.h:40
Definition: cs_param.h:85
Definition: cs_param.h:73
Definition: cs_param.h:255
Definition: cs_param.h:348
cs_quadra_type_t quad_type
Definition: cs_param.h:298
cs_param_advection_weight_t weight_criterion
Definition: cs_param.h:208
Definition: cs_param.h:148
void( cs_user_func_t)(const void *input1, const void *input2, cs_real_t tcur, const cs_real_3_t xyz, cs_get_t *output)
Definition: cs_param.h:67
cs_param_hodge_type_t
Definition: cs_param.h:110
bool do_lumping
Definition: cs_param.h:229
bool use_subdiv
Definition: cs_param.h:333
Definition: cs_param.h:151
const char * cs_param_get_var_type_name(const cs_param_var_type_t type)
Get the name related to a type of variable.
Definition: cs_param.c:147
Definition: cs_param.h:218
Definition: cs_param.h:362
cs_param_source_term_type_t type
Definition: cs_param.h:329
const char * cs_param_get_solver_name(cs_param_itsol_type_t solver)
Get the name of the solver.
Definition: cs_param.c:601
Definition: cs_param.h:125
bool use_subdiv
Definition: cs_param.h:299
#define END_C_DECLS
Definition: cs_defs.h:430
char *restrict name
Definition: cs_param.h:322
double cs_real_t
Definition: cs_defs.h:296
Definition: cs_param.h:243
cs_param_bc_type_t default_bc
Definition: cs_param.h:296
cs_param_reaction_type_t type
Definition: cs_param.h:226
cs_param_var_type_t
Definition: cs_param.h:97
Definition: cs_param.h:252
Definition: cs_param.h:92
Definition: cs_param.h:223
bool resid_normalized
Definition: cs_param.h:378
cs_param_var_type_t var_type
Definition: cs_param.h:330
Definition: cs_param.h:278
Definition: cs_param.h:313
Definition: cs_param.h:114
cs_param_bc_type_t bc_type
Definition: cs_param.h:282
double coef
Definition: cs_param.h:137
Definition: cs_param.h:263
Definition: cs_param.h:251
Definition: cs_param.h:294
Definition: cs_param.h:351
cs_param_reaction_type_t
Definition: cs_param.h:216
cs_param_hodge_algo_t
Definition: cs_param.h:121
Definition: cs_param.h:130
double eps
Definition: cs_param.h:375
Definition: cs_param.h:187
void cs_param_reaction_add(cs_param_reaction_t *rp, const char *r_name, cs_param_hodge_type_t h_type, cs_param_hodge_algo_t h_algo, cs_param_source_term_type_t r_type)
Define a new reaction term. The structure related to this reaction term has already been allocated am...
Definition: cs_param.c:415
Definition: cs_param.h:88
cs_param_bc_enforce_t
Definition: cs_param.h:260
Definition: cs_param.h:352
cs_param_def_type_t
Definition: cs_param.h:83
Definition: cs_param.h:87
Definition: cs_param.h:152
cs_def_t ic_def
Definition: cs_param.h:165
Definition: cs_param.h:86
Definition: cs_param.h:176
Definition: cs_param.h:369
Definition: cs_param.h:124