1 #ifndef __CS_PARAM_TYPES_H__
2 #define __CS_PARAM_TYPES_H__
57 #define CS_DOF_VTX_SCAL 0
58 #define CS_DOF_VTX_VECT 1
59 #define CS_DOF_FACE_SCAL 2
60 #define CS_DOF_FACE_VECT 3
61 #define CS_DOF_FACE_SCAP1 3
62 #define CS_DOF_FACE_SCAP2 4
63 #define CS_DOF_FACE_VECP0 3
64 #define CS_DOF_FACE_VECP1 5
65 #define CS_DOF_FACE_VECP2 6
66 #define CS_DOF_EDGE_SCAL 7
68 #define CS_N_DOF_CASES 8
83 #define CS_ISOTROPIC_DIFFUSION (1 << 0)
87 #define CS_ORTHOTROPIC_DIFFUSION (1 << 1)
91 #define CS_ANISOTROPIC_LEFT_DIFFUSION (1 << 2)
95 #define CS_ANISOTROPIC_RIGHT_DIFFUSION (1 << 3)
99 #define CS_ANISOTROPIC_DIFFUSION ((1 << 2) + (1 << 3))
#define BEGIN_C_DECLS
Definition: cs_defs.h:507
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:508
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
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
const char * cs_param_get_nl_algo_label(cs_param_nl_algo_t algo)
Get the label (short name) of the non-linear algorithm.
Definition: cs_param_types.c:480
cs_param_space_scheme_t
Type of numerical scheme for the discretization in space.
Definition: cs_param_types.h:207
@ CS_SPACE_SCHEME_CDOVCB
Definition: cs_param_types.h:211
@ CS_SPACE_SCHEME_HHO_P2
Definition: cs_param_types.h:216
@ CS_SPACE_SCHEME_LEGACY
Definition: cs_param_types.h:209
@ CS_SPACE_SCHEME_CDOEB
Definition: cs_param_types.h:212
@ CS_SPACE_SCHEME_HHO_P0
Definition: cs_param_types.h:214
@ CS_SPACE_SCHEME_CDOFB
Definition: cs_param_types.h:213
@ CS_SPACE_SCHEME_CDOVB
Definition: cs_param_types.h:210
@ CS_SPACE_SCHEME_HHO_P1
Definition: cs_param_types.h:215
@ CS_SPACE_N_SCHEMES
Definition: cs_param_types.h:218
const char * cs_param_get_advection_extrapol_name(cs_param_advection_extrapol_t extrapol)
Get the label associated to the extrapolation used for the advection field.
Definition: cs_param_types.c:377
cs_param_advection_form_t
Definition: cs_param_types.h:302
@ CS_PARAM_ADVECTION_FORM_NONCONS
Definition: cs_param_types.h:305
@ CS_PARAM_ADVECTION_FORM_CONSERV
Definition: cs_param_types.h:304
@ CS_PARAM_ADVECTION_FORM_SKEWSYM
Definition: cs_param_types.h:306
@ CS_PARAM_N_ADVECTION_FORMULATIONS
Definition: cs_param_types.h:308
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
const char cs_sep_h2[80]
Definition: cs_param_types.c:68
cs_param_resnorm_type_t
Definition: cs_param_types.h:937
@ CS_PARAM_RESNORM_FILTERED_RHS
Definition: cs_param_types.h:944
@ CS_PARAM_N_RESNORM_TYPES
Definition: cs_param_types.h:947
@ CS_PARAM_RESNORM_NORM2_RHS
Definition: cs_param_types.h:940
@ CS_PARAM_RESNORM_WEIGHTED_RHS
Definition: cs_param_types.h:942
@ CS_PARAM_RESNORM_NONE
Definition: cs_param_types.h:939
const char * cs_param_get_precond_name(cs_param_precond_type_t precond)
Get the name of the preconditioner.
Definition: cs_param_types.c:615
cs_param_bc_type_t
Definition: cs_param_types.h:470
@ CS_PARAM_N_BC_TYPES
Definition: cs_param_types.h:482
@ CS_PARAM_BC_SLIDING
Definition: cs_param_types.h:478
@ CS_PARAM_BC_ROBIN
Definition: cs_param_types.h:477
@ CS_PARAM_BC_NEUMANN
Definition: cs_param_types.h:475
@ CS_PARAM_BC_DIRICHLET
Definition: cs_param_types.h:473
@ CS_PARAM_BC_HMG_DIRICHLET
Definition: cs_param_types.h:472
@ CS_PARAM_BC_NEUMANN_FULL
Definition: cs_param_types.h:476
@ CS_PARAM_BC_CIRCULATION
Definition: cs_param_types.h:479
@ CS_PARAM_BC_WALL_PRESCRIBED
Definition: cs_param_types.h:480
@ CS_PARAM_BC_HMG_NEUMANN
Definition: cs_param_types.h:474
cs_param_precond_type_t
Definition: cs_param_types.h:799
@ CS_PARAM_PRECOND_ILU0
Definition: cs_param_types.h:810
@ CS_PARAM_PRECOND_LU
Definition: cs_param_types.h:809
@ CS_PARAM_PRECOND_BJACOB_ILU0
Definition: cs_param_types.h:803
@ CS_PARAM_PRECOND_NONE
Definition: cs_param_types.h:801
@ CS_PARAM_PRECOND_GKB_GMRES
Definition: cs_param_types.h:808
@ CS_PARAM_PRECOND_BJACOB_SGS
Definition: cs_param_types.h:804
@ CS_PARAM_PRECOND_SSOR
Definition: cs_param_types.h:814
@ CS_PARAM_PRECOND_DIAG
Definition: cs_param_types.h:806
@ CS_PARAM_PRECOND_POLY1
Definition: cs_param_types.h:812
@ CS_PARAM_N_PRECOND_TYPES
Definition: cs_param_types.h:816
@ CS_PARAM_PRECOND_AMG
Definition: cs_param_types.h:805
@ CS_PARAM_PRECOND_GKB_CG
Definition: cs_param_types.h:807
@ CS_PARAM_PRECOND_POLY2
Definition: cs_param_types.h:813
@ CS_PARAM_PRECOND_ICC0
Definition: cs_param_types.h:811
cs_param_advection_extrapol_t
Choice of how to extrapolate the advection field in the advection term.
Definition: cs_param_types.h:413
@ CS_PARAM_N_ADVECTION_EXTRAPOLATIONS
Definition: cs_param_types.h:419
@ CS_PARAM_ADVECTION_EXTRAPOL_NONE
Definition: cs_param_types.h:415
@ CS_PARAM_ADVECTION_EXTRAPOL_ADAMS_BASHFORTH_2
Definition: cs_param_types.h:417
@ CS_PARAM_ADVECTION_EXTRAPOL_TAYLOR_2
Definition: cs_param_types.h:416
const char * cs_param_get_advection_scheme_name(cs_param_advection_scheme_t scheme)
Get the label of the advection scheme.
Definition: cs_param_types.c:324
const char cs_sepline[80]
Definition: cs_param_types.c:70
const char * cs_param_get_advection_form_name(cs_param_advection_form_t adv_form)
Get the label associated to the advection formulation.
Definition: cs_param_types.c:300
const char * cs_param_get_amg_type_name(cs_param_amg_type_t type)
Get the name of the type of algebraic multigrid (AMG)
Definition: cs_param_types.c:739
cs_param_sles_class_t
Class of iterative solvers to consider for solver the linear system.
Definition: cs_param_types.h:580
@ CS_PARAM_SLES_CLASS_HYPRE
Definition: cs_param_types.h:583
@ CS_PARAM_SLES_CLASS_CS
Definition: cs_param_types.h:582
@ CS_PARAM_SLES_N_CLASSES
Definition: cs_param_types.h:587
@ CS_PARAM_SLES_CLASS_PETSC
Definition: cs_param_types.h:585
@ CS_PARAM_SLES_CLASS_MUMPS
Definition: cs_param_types.h:584
cs_param_precond_block_t
Definition: cs_param_types.h:724
@ CS_PARAM_PRECOND_BLOCK_FULL_DIAG
Definition: cs_param_types.h:728
@ CS_PARAM_PRECOND_BLOCK_NONE
Definition: cs_param_types.h:726
@ CS_PARAM_PRECOND_BLOCK_FULL_SYM_GAUSS_SEIDEL
Definition: cs_param_types.h:730
@ CS_PARAM_PRECOND_BLOCK_UZAWA
Definition: cs_param_types.h:735
@ CS_PARAM_PRECOND_BLOCK_DIAG
Definition: cs_param_types.h:727
@ CS_PARAM_PRECOND_BLOCK_FULL_LOWER_TRIANGULAR
Definition: cs_param_types.h:729
@ CS_PARAM_PRECOND_BLOCK_LOWER_TRIANGULAR
Definition: cs_param_types.h:732
@ CS_PARAM_PRECOND_BLOCK_UPPER_TRIANGULAR
Definition: cs_param_types.h:734
@ CS_PARAM_N_PCD_BLOCK_TYPES
Definition: cs_param_types.h:737
@ CS_PARAM_PRECOND_BLOCK_SYM_GAUSS_SEIDEL
Definition: cs_param_types.h:733
@ CS_PARAM_PRECOND_BLOCK_FULL_UPPER_TRIANGULAR
Definition: cs_param_types.h:731
cs_param_itsol_type_t
Definition: cs_param_types.h:902
@ CS_PARAM_N_ITSOL_TYPES
Definition: cs_param_types.h:927
@ CS_PARAM_ITSOL_GAUSS_SEIDEL
Definition: cs_param_types.h:913
@ CS_PARAM_ITSOL_BICGSTAB2
Definition: cs_param_types.h:908
@ CS_PARAM_ITSOL_MUMPS_FLOAT_LDLT
Definition: cs_param_types.h:922
@ CS_PARAM_ITSOL_GKB_GMRES
Definition: cs_param_types.h:916
@ CS_PARAM_ITSOL_JACOBI
Definition: cs_param_types.h:918
@ CS_PARAM_ITSOL_MUMPS_FLOAT
Definition: cs_param_types.h:921
@ CS_PARAM_ITSOL_GKB_CG
Definition: cs_param_types.h:915
@ CS_PARAM_ITSOL_BICG
Definition: cs_param_types.h:907
@ CS_PARAM_ITSOL_AMG
Definition: cs_param_types.h:906
@ CS_PARAM_ITSOL_CR3
Definition: cs_param_types.h:910
@ CS_PARAM_ITSOL_MUMPS
Definition: cs_param_types.h:920
@ CS_PARAM_ITSOL_FGMRES
Definition: cs_param_types.h:912
@ CS_PARAM_ITSOL_MUMPS_LDLT
Definition: cs_param_types.h:923
@ CS_PARAM_ITSOL_CG
Definition: cs_param_types.h:909
@ CS_PARAM_ITSOL_MINRES
Definition: cs_param_types.h:919
@ CS_PARAM_ITSOL_GCR
Definition: cs_param_types.h:914
@ CS_PARAM_ITSOL_GMRES
Definition: cs_param_types.h:917
@ CS_PARAM_ITSOL_USER_DEFINED
Definition: cs_param_types.h:925
@ CS_PARAM_ITSOL_FCG
Definition: cs_param_types.h:911
@ CS_PARAM_ITSOL_NONE
Definition: cs_param_types.h:904
@ CS_PARAM_ITSOL_SYM_GAUSS_SEIDEL
Definition: cs_param_types.h:924
const char * cs_param_get_schur_approx_name(cs_param_schur_approx_t type)
Get the name of the type of Schur complement approximation.
Definition: cs_param_types.c:710
const char * cs_param_get_precond_block_name(cs_param_precond_block_t type)
Get the name of the type of block preconditioning.
Definition: cs_param_types.c:679
const char cs_med_sepline[50]
Definition: cs_param_types.c:72
cs_param_bc_enforce_t
Definition: cs_param_types.h:515
@ CS_PARAM_BC_ENFORCE_WEAK_SYM
Definition: cs_param_types.h:520
@ CS_PARAM_BC_ENFORCE_ALGEBRAIC
Definition: cs_param_types.h:517
@ CS_PARAM_BC_ENFORCE_PENALIZED
Definition: cs_param_types.h:518
@ CS_PARAM_BC_ENFORCE_WEAK_NITSCHE
Definition: cs_param_types.h:519
@ CS_PARAM_N_BC_ENFORCEMENTS
Definition: cs_param_types.h:522
const char * cs_param_get_advection_strategy_name(cs_param_advection_strategy_t adv_stra)
Get the label associated to the advection strategy.
Definition: cs_param_types.c:352
const char * cs_param_get_solver_name(cs_param_itsol_type_t solver)
Get the name of the solver.
Definition: cs_param_types.c:527
void() cs_time_func_t(double time, void *input, cs_real_t *retval)
Function which defines the evolution of a quantity according to the current time and any structure gi...
Definition: cs_param_types.h:172
bool cs_param_space_scheme_is_face_based(cs_param_space_scheme_t scheme)
Return true if the space scheme has degrees of freedom on faces, otherwise false.
Definition: cs_param_types.c:222
cs_param_time_scheme_t
Definition: cs_param_types.h:269
@ CS_TIME_SCHEME_THETA
Definition: cs_param_types.h:275
@ CS_TIME_SCHEME_BDF2
Definition: cs_param_types.h:276
@ CS_TIME_SCHEME_STEADY
Definition: cs_param_types.h:271
@ CS_TIME_SCHEME_EULER_EXPLICIT
Definition: cs_param_types.h:273
@ CS_TIME_N_SCHEMES
Definition: cs_param_types.h:278
@ CS_TIME_SCHEME_EULER_IMPLICIT
Definition: cs_param_types.h:272
@ CS_TIME_SCHEME_CRANKNICO
Definition: cs_param_types.h:274
const char * cs_param_get_nl_algo_name(cs_param_nl_algo_t algo)
Get the name of the non-linear algorithm.
Definition: cs_param_types.c:456
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_PARAM_SCHUR_MASS_SCALED_DIAG_INVERSE
Definition: cs_param_types.h:666
@ CS_PARAM_SCHUR_MASS_SCALED_LUMPED_INVERSE
Definition: cs_param_types.h:667
@ CS_PARAM_SCHUR_MASS_SCALED
Definition: cs_param_types.h:665
@ CS_PARAM_SCHUR_IDENTITY
Definition: cs_param_types.h:663
@ CS_PARAM_SCHUR_DIAG_INVERSE
Definition: cs_param_types.h:661
@ CS_PARAM_N_SCHUR_APPROX
Definition: cs_param_types.h:669
@ CS_PARAM_SCHUR_ELMAN
Definition: cs_param_types.h:662
@ CS_PARAM_SCHUR_LUMPED_INVERSE
Definition: cs_param_types.h:664
@ CS_PARAM_SCHUR_NONE
Definition: cs_param_types.h:659
cs_param_nl_algo_t
Class of non-linear iterative algorithm.
Definition: cs_param_types.h:546
@ CS_PARAM_N_NL_ALGOS
Definition: cs_param_types.h:551
@ CS_PARAM_NL_ALGO_ANDERSON
Definition: cs_param_types.h:550
@ CS_PARAM_NL_ALGO_PICARD
Definition: cs_param_types.h:549
@ CS_PARAM_NL_ALGO_NONE
Definition: cs_param_types.h:548
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_types.c:431
cs_param_advection_scheme_t
Definition: cs_param_types.h:346
@ CS_PARAM_ADVECTION_SCHEME_UPWIND
Definition: cs_param_types.h:354
@ CS_PARAM_ADVECTION_SCHEME_SG
Definition: cs_param_types.h:353
@ CS_PARAM_N_ADVECTION_SCHEMES
Definition: cs_param_types.h:356
@ CS_PARAM_ADVECTION_SCHEME_HYBRID_CENTERED_UPWIND
Definition: cs_param_types.h:351
@ CS_PARAM_ADVECTION_SCHEME_CIP
Definition: cs_param_types.h:349
@ CS_PARAM_ADVECTION_SCHEME_SAMARSKII
Definition: cs_param_types.h:352
@ CS_PARAM_ADVECTION_SCHEME_CIP_CW
Definition: cs_param_types.h:350
@ CS_PARAM_ADVECTION_SCHEME_CENTERED
Definition: cs_param_types.h:348
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_types.c:401
cs_param_amg_type_t
Definition: cs_param_types.h:598
@ CS_PARAM_AMG_HYPRE_BOOMER_W
Definition: cs_param_types.h:602
@ CS_PARAM_N_AMG_TYPES
Definition: cs_param_types.h:609
@ CS_PARAM_AMG_PETSC_GAMG_V
Definition: cs_param_types.h:603
@ CS_PARAM_AMG_HOUSE_K
Definition: cs_param_types.h:607
@ CS_PARAM_AMG_HOUSE_V
Definition: cs_param_types.h:606
@ CS_PARAM_AMG_PETSC_PCMG
Definition: cs_param_types.h:605
@ CS_PARAM_AMG_PETSC_GAMG_W
Definition: cs_param_types.h:604
@ CS_PARAM_AMG_HYPRE_BOOMER_V
Definition: cs_param_types.h:601
@ CS_PARAM_AMG_NONE
Definition: cs_param_types.h:600
const char * cs_param_get_time_scheme_name(cs_param_time_scheme_t scheme)
Get the name of the time discretization scheme.
Definition: cs_param_types.c:273
cs_param_dof_reduction_t
Definition: cs_param_types.h:234
@ CS_PARAM_N_REDUCTIONS
Definition: cs_param_types.h:239
@ CS_PARAM_REDUCTION_AVERAGE
Definition: cs_param_types.h:237
@ CS_PARAM_REDUCTION_DERHAM
Definition: cs_param_types.h:236
const char cs_sep_h1[80]
Definition: cs_param_types.c:66
const char * cs_param_get_dotprod_type_name(cs_param_dotprod_type_t dp_type)
Get the name of the type of dot product to apply.
Definition: cs_param_types.c:504
const char * cs_param_get_space_scheme_name(cs_param_space_scheme_t scheme)
Get the name of the space discretization scheme.
Definition: cs_param_types.c:244
cs_param_advection_strategy_t
Choice of how to handle the advection term in an equation.
Definition: cs_param_types.h:379
@ CS_PARAM_ADVECTION_IMPLICIT_LINEARIZED
Definition: cs_param_types.h:382
@ CS_PARAM_N_ADVECTION_STRATEGIES
Definition: cs_param_types.h:385
@ CS_PARAM_ADVECTION_IMPLICIT_FULL
Definition: cs_param_types.h:381
@ CS_PARAM_ADVECTION_EXPLICIT
Definition: cs_param_types.h:383
cs_param_dotprod_type_t
Definition: cs_param_types.h:956
@ CS_PARAM_DOTPROD_CDO
Definition: cs_param_types.h:959
@ CS_PARAM_DOTPROD_EUCLIDEAN
Definition: cs_param_types.h:958
@ CS_PARAM_N_DOTPROD_TYPES
Definition: cs_param_types.h:961