1 #ifndef __CS_ENFORCEMENT_H__ 2 #define __CS_ENFORCEMENT_H__ Definition: cs_enforcement.h:79
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
cs_real_t * cs_enforcement_define_at_vertices(const cs_cdo_connect_t *connect, int n_params, cs_enforcement_param_t **efp_array)
Build a cs_enforcement_t structure for vertex-based scheme.
Definition: cs_cdo_connect.h:79
cs_enforcement_param_t * cs_enforcement_param_copy(const cs_enforcement_param_t *ref)
Copy a cs_enforcement_param_t structure.
cs_lnum_t n_elts
Definition: cs_enforcement.h:94
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Set of arrays and local (small) dense matrices related to a mesh cell This is a key structure for bui...
Definition: cs_cdo_local.h:146
Definition: cs_enforcement.h:80
cs_enforcement_type_t
Describe the way the values to enforce are defined.
Definition: cs_enforcement.h:77
bool cs_enforcement_dofs_cw(const cs_real_t *forced_values, cs_cell_sys_t *csys, cs_real_t *cw_forced_values)
Build the cell-wise value to enforce.
int stride
Definition: cs_enforcement.h:96
Definition: cs_enforcement.h:67
cs_lnum_t * elt_ids
Definition: cs_enforcement.h:95
cs_real_t * values
Definition: cs_enforcement.h:97
void cs_enforcement_param_log(const char *eqname, const cs_enforcement_param_t *efp)
Log a cs_enforcement_param_t structure.
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
#define END_C_DECLS
Definition: cs_defs.h:511
Definition: cs_enforcement.h:65
cs_enforcement_selection_t
Type of entities used to define the selection where the enforcement takes place.
Definition: cs_enforcement.h:63
cs_enforcement_selection_t selection_type
Definition: cs_enforcement.h:91
cs_enforcement_param_t * cs_enforcement_param_create(cs_enforcement_selection_t sel_type, cs_enforcement_type_t type, int stride, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t *values)
Create and define a cs_enforcement_param_t structure.
Definition: cs_enforcement.h:66
cs_real_t * cs_enforcement_define_at_faces(const cs_cdo_connect_t *connect, int n_params, cs_enforcement_param_t **efp_array)
Build a cs_enforcement_t structure for face-based scheme.
cs_enforcement_type_t type
Definition: cs_enforcement.h:92
void cs_enforcement_param_free(cs_enforcement_param_t **p_efp)
Free a cs_enforcement_param_t structure.
Definition: cs_enforcement.h:68
Set of data defining an enforcement.
Definition: cs_enforcement.h:89
cs_real_t * cs_enforcement_define_at_edges(const cs_cdo_connect_t *connect, int n_params, cs_enforcement_param_t **efp_array)
Build a cs_enforcement_t structure for edge-based scheme.