|
My Project
programmer's documentation
|
Go to the documentation of this file. 1 #ifndef __CS_CDO_BC_H__
2 #define __CS_CDO_BC_H__
46 #define CS_CDO_BC_DEFAULT_DEF -1
60 #define CS_CDO_BC_NEUMANN (1 << 0)
62 #define CS_CDO_BC_HMG_NEUMANN (1 << 1)
64 #define CS_CDO_BC_DIRICHLET (1 << 2)
66 #define CS_CDO_BC_HMG_DIRICHLET (1 << 3)
68 #define CS_CDO_BC_ROBIN (1 << 4)
70 #define CS_CDO_BC_SLIDING (1 << 5)
149 " %s: Empty desciption buffer.", __func__);
154 sprintf(desc,
"%s",
"Homogenous Dirichlet");
157 sprintf(desc,
"%s",
"Dirichlet");
160 sprintf(desc,
"%s",
"Homogeneous Neumann");
163 sprintf(desc,
"%s",
"Neumann");
166 sprintf(desc,
"%s",
"Robin");
169 sprintf(desc,
"%s",
"Sliding");
174 "%s: Invalid case. Please contact the support.\n", __func__);
Definition: cs_param.h:304
cs_lnum_t * nhmg_dir_ids
Definition: cs_cdo_bc.h:108
Definition: cs_param.h:305
cs_lnum_t n_nhmg_neu_faces
Definition: cs_cdo_bc.h:113
cs_lnum_t * hmg_neu_ids
Definition: cs_cdo_bc.h:112
Structure storing medata for defining a quantity in a very flexible way.
Definition: cs_xdef.h:126
#define CS_CDO_BC_HMG_DIRICHLET
Definition: cs_cdo_bc.h:66
#define CS_CDO_BC_ROBIN
Definition: cs_cdo_bc.h:68
cs_lnum_t n_b_faces
Definition: cs_cdo_bc.h:90
#define END_C_DECLS
Definition: cs_defs.h:468
#define CS_CDO_BC_DIRICHLET
Definition: cs_cdo_bc.h:64
cs_lnum_t * robin_ids
Definition: cs_cdo_bc.h:118
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
void bft_error(const char *const file_name, const int line_num, const int sys_error_code, const char *const format,...)
Calls the error handler (set by bft_error_handler_set() or default).
Definition: bft_error.c:193
cs_cdo_bc_face_t * cs_cdo_bc_face_define(cs_param_bc_type_t default_bc, bool is_steady, int dim, int n_defs, cs_xdef_t **defs, cs_lnum_t n_b_faces)
Define the structure which translates the BC definitions from the user viewpoint into a ready-to-use ...
Definition: cs_cdo_bc.c:143
Definition: cs_param.h:307
static bool cs_cdo_bc_is_neumann(cs_flag_t flag)
Check if a flag is associated to a Neumann BC (homogeneous or not)
Definition: cs_cdo_bc.h:255
static cs_flag_t cs_cdo_bc_get_flag(cs_param_bc_type_t bc_type)
Convert a cs_param_bc_type_t into a flag (enable multiple type for a same entity as required for vert...
Definition: cs_cdo_bc.h:191
bool is_steady
Definition: cs_cdo_bc.h:88
Definition: cs_cdo_bc.h:86
cs_lnum_t n_hmg_neu_faces
Definition: cs_cdo_bc.h:111
cs_lnum_t * sliding_ids
Definition: cs_cdo_bc.h:122
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_lnum_t n_nhmg_dir_faces
Definition: cs_cdo_bc.h:107
cs_lnum_t * nhmg_neu_ids
Definition: cs_cdo_bc.h:114
static bool cs_cdo_bc_is_dirichlet(cs_flag_t flag)
Check if a flag is associated to a Dirichlet BC (homogeneous or not)
Definition: cs_cdo_bc.h:234
#define CS_CDO_BC_NEUMANN
Definition: cs_cdo_bc.h:60
cs_lnum_t * hmg_dir_ids
Definition: cs_cdo_bc.h:106
cs_lnum_t n_sliding_faces
Definition: cs_cdo_bc.h:121
Definition: cs_param.h:308
cs_lnum_t n_robin_faces
Definition: cs_cdo_bc.h:117
unsigned short int cs_flag_t
Definition: cs_defs.h:304
Definition: cs_param.h:306
Definition: cs_param.h:309
short int * def_ids
Definition: cs_cdo_bc.h:97
static bool cs_cdo_bc_is_sliding(cs_flag_t flag)
Check if a flag is associated to a sliding boundary.
Definition: cs_cdo_bc.h:276
cs_cdo_bc_face_t * cs_cdo_bc_free(cs_cdo_bc_face_t *face_bc)
Free a cs_cdo_bc_face_t structure.
Definition: cs_cdo_bc.c:315
cs_flag_t * flag
Definition: cs_cdo_bc.h:93
#define CS_CDO_BC_SLIDING
Definition: cs_cdo_bc.h:70
cs_param_bc_type_t
Definition: cs_param.h:302
#define CS_CDO_BC_HMG_NEUMANN
Definition: cs_cdo_bc.h:62
static void cs_cdo_bc_get_desc(cs_flag_t bc_flag, char *desc)
Convert a flag into a description.
Definition: cs_cdo_bc.h:144
cs_lnum_t n_hmg_dir_faces
Definition: cs_cdo_bc.h:105