46 #define CS_PARAM_FLAG_UNIFORM (1 << 0) // 1: uniform (in space)
47 #define CS_PARAM_FLAG_VERTEX (1 << 1) // 2: on vertices
48 #define CS_PARAM_FLAG_EDGE (1 << 2) // 4: on edges
49 #define CS_PARAM_FLAG_FACE (1 << 3) // 8: on faces
50 #define CS_PARAM_FLAG_CELL (1 << 4) // 16: on cells
51 #define CS_PARAM_FLAG_PRIMAL (1 << 5) // 32: on primal mesh
52 #define CS_PARAM_FLAG_DUAL (1 << 6) // 64: on dual mesh
53 #define CS_PARAM_FLAG_BORDER (1 << 7) // 128: scalar-valued
54 #define CS_PARAM_FLAG_SCAL (1 << 8) // 256: scalar-valued
55 #define CS_PARAM_FLAG_VECT (1 << 9) // 512: vector-valued
56 #define CS_PARAM_FLAG_TENS (1 << 10) // 1024: tensor-valued
57 #define CS_PARAM_FLAG_SYMMET (1 << 11) // 2048: symmetric
58 #define CS_PARAM_FLAG_IMPLICIT (1 << 12) // 4096: implicit
59 #define CS_PARAM_FLAG_EXPLICIT (1 << 13) // 8192: explicit
60 #define CS_PARAM_FLAG_UNSTEADY (1 << 14) //16384: unsteady
cs_quadra_type_t quad_type
Definition: cs_param.h:260
cs_param_pty_t * cs_param_pty_get(int pty_id)
Retrieve a cs_param_pty_t structure from its id.
Definition: cs_param.c:177
Definition: cs_param.h:147
cs_param_hodge_algo_t algo
Definition: cs_param.h:168
cs_param_precond_type_t precond
Definition: cs_param.h:298
#define restrict
Definition: cs_defs.h:122
cs_param_bc_def_t * defs
Definition: cs_param.h:230
int post_freq
Definition: cs_param.h:118
Definition: cs_param.h:274
cs_param_def_type_t def_type
Definition: cs_param.h:259
cs_param_pty_type_t
Definition: cs_param.h:103
Definition: cs_param.h:245
Definition: cs_param.h:276
void( cs_user_func_t)(const void *input1, const void *input2, cs_real_t cur_time, cs_real_3_t xyz, cs_get_t *output)
Definition: cs_cdo.h:84
cs_param_boundary_type_t
Definition: cs_param.h:191
Definition: cs_param.h:94
Definition: cs_param.h:92
bool cs_param_pty_is_uniform(int pty_id)
Query to know if the material property is uniform.
Definition: cs_param.c:489
Definition: cs_param.h:90
bool inv_pty
Definition: cs_param.h:164
const char * cs_param_source_term_get_type_name(const cs_param_source_term_t st_info)
Get the name related to a source term.
Definition: cs_param.c:920
Definition: cs_param.h:242
Definition: cs_param.h:287
cs_def_t def_coef1
Definition: cs_param.h:217
void cs_param_pty_set_default(void)
Add by default several material properties.
Definition: cs_param.c:230
Definition: cs_param.h:290
cs_user_func_t * user_func
Definition: cs_param.h:70
cs_param_itsol_type_t solver
Definition: cs_param.h:299
void cs_param_pty_get_val(int pty_id, cs_real_t t, cs_real_3_t xyz, bool invers, cs_real_33_t *matval)
Retrieve the 3x3 matrix related to a general material property. This value is computed at location (x...
Definition: cs_param.h:183
#define BEGIN_C_DECLS
Definition: cs_defs.h:419
Definition: cs_param.h:184
Definition: cs_param.h:91
Definition: cs_param.h:273
int pty_id
Definition: cs_param.h:163
cs_flag_t flag
Definition: cs_param.h:116
Definition: cs_param.h:154
Definition: cs_param.h:81
cs_def_t imp_def
Definition: cs_param.h:263
Definition: cs_param.h:240
void cs_param_pty_add_fields(void)
Create a field related to a material property.
Definition: cs_param.c:337
Definition: cs_param.h:195
const char * cs_param_get_precond_name(cs_param_precond_type_t precond)
Get the name of the preconditionner.
Definition: cs_param.c:1034
Definition: cs_param.h:291
cs_def_t def
Definition: cs_param.h:134
Definition: cs_param.h:249
Definition: cs_param.h:107
cs_param_pty_type_t type
Definition: cs_param.h:132
Definition: cs_param.h:277
cs_param_source_term_type_t
Definition: cs_param.h:238
Definition: cs_param.h:148
Definition: cs_param.h:143
Definition: cs_param.h:288
Definition: cs_param.h:82
Definition: cs_param.h:146
Definition: cs_param.h:93
Definition: cs_param.h:193
Definition: cs_param.h:243
cs_param_def_type_t def_type
Definition: cs_param.h:133
cs_def_t def_coef2
Definition: cs_param.h:218
void cs_param_pty_set_by_analytic_func(const char *name, cs_analytic_func_t *analytic_func)
Define a material property by an analytical function.
Definition: cs_param.c:460
Definition: cs_param.h:280
Definition: cs_param.h:244
Definition: cs_param.h:157
int loc_id
Definition: cs_param.h:210
void( cs_analytic_func_t)(cs_real_t time, cs_real_3_t xyz, cs_get_t *retval)
Definition: cs_cdo.h:79
const char * cs_param_pty_get_name(int pty_id)
Retrieve the name of a material property from its id.
Definition: cs_param.c:518
Definition: cs_param.h:180
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:984
int field_id
Definition: cs_param.h:120
Definition: cs_param.h:108
void cs_param_source_term_add(cs_param_source_term_t *st, 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, cs_def_t imp_def, cs_def_t exp_def)
Define a source term. This source term is added to the list of source terms associated to an equation...
Definition: cs_param.c:865
int output_freq
Definition: cs_param.h:304
cs_param_bc_t * cs_param_bc_create(cs_param_bc_type_t default_bc, bool is_penalized)
Allocate and initialize a new cs_param_bc_t structure.
void cs_param_pty_finalize(void)
Free structures dedicated to the definition of material properties.
Definition: cs_param.c:774
Definition: cs_param.h:105
int n_max_iter
Definition: cs_param.h:301
Definition: cs_param.h:76
void cs_param_pty_free_all(void)
Destroy all structures related to properties.
Definition: cs_param.c:153
Definition: cs_param.h:113
int n_defs
Definition: cs_param.h:229
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:952
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:968
cs_analytic_func_t * analytic
Definition: cs_param.h:69
cs_param_precond_type_t
Definition: cs_param.h:271
cs_param_hodge_type_t type
Definition: cs_param.h:167
bool strong_enforcement
Definition: cs_param.h:225
Definition: cs_param.h:144
cs_param_itsol_type_t
Definition: cs_param.h:285
double penalty_coef
Definition: cs_param.h:226
void cs_param_pty_resume_all(void)
Resume all the cs_param_pty_t structures.
Definition: cs_param.c:692
cs_param_def_type_t def_type
Definition: cs_param.h:213
Definition: cs_param.h:106
Definition: cs_param.h:196
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
int location_id
Definition: cs_param.h:253
cs_param_bc_type_t
Definition: cs_param.h:178
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:904
Definition: cs_param.h:194
Definition: cs_param.h:80
cs_quadra_type_t
Definition: cs_quadrature.h:40
Definition: cs_param.h:79
Definition: cs_param.h:66
Definition: cs_param.h:186
Definition: cs_param.h:275
cs_quadra_type_t quad_type
Definition: cs_param.h:227
cs_param_hodge_type_t
Definition: cs_param.h:141
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:936
Definition: cs_param.h:289
cs_param_source_term_type_t type
Definition: cs_param.h:257
const char * cs_param_get_solver_name(cs_param_itsol_type_t solver)
Get the name of the solver.
Definition: cs_param.c:1000
Definition: cs_param.h:156
#define END_C_DECLS
Definition: cs_defs.h:420
char *restrict name
Definition: cs_param.h:251
double cs_real_t
Definition: cs_defs.h:296
Definition: cs_param.h:198
cs_param_bc_type_t default_bc
Definition: cs_param.h:224
void cs_param_pty_add(const char *name, cs_param_pty_type_t type, int post_freq)
Create and intialize a material property.
Definition: cs_param.c:294
cs_param_var_type_t
Definition: cs_param.h:88
Definition: cs_param.h:182
cs_def_t exp_def
Definition: cs_param.h:264
Definition: cs_param.h:83
void cs_param_pty_set_by_val(const char *name, cs_get_t matval)
Define a material property by value.
Definition: cs_param.c:393
bool resid_normalized
Definition: cs_param.h:305
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:311
cs_param_var_type_t var_type
Definition: cs_param.h:258
Definition: cs_field_pointer.h:92
void cs_param_bc_def_set(cs_param_bc_def_t *bc_def, int loc_id, cs_param_bc_type_t bc_type, cs_param_def_type_t def_type, cs_def_t def_coef1, cs_def_t def_coef2)
Set a cs_param_bc_def_t structure.
Definition: cs_param.c:828
Definition: cs_param.h:208
Definition: cs_param.h:145
cs_param_bc_type_t bc_type
Definition: cs_param.h:212
Definition: cs_param.h:241
double coef
Definition: cs_param.h:169
Definition: cs_param.h:181
Definition: cs_param.h:222
Definition: cs_param.h:278
cs_param_hodge_algo_t
Definition: cs_param.h:152
Definition: cs_param.h:161
int cs_param_pty_get_id_by_name(const char *ref_name)
Find the id related to a property definition from its name.
Definition: cs_param.c:199
double eps
Definition: cs_param.h:302
char *restrict name
Definition: cs_param.h:115
unsigned short int cs_flag_t
Definition: cs_cdo.h:50
Definition: cs_param.h:78
Definition: cs_param.h:279
cs_param_def_type_t
Definition: cs_param.h:74
Definition: cs_param.h:77
Definition: cs_param.h:296
Definition: cs_param.h:155