Go to the source code of this file.
|  | 
| 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.  More... 
 | 
|  | 
| void | cs_enforcement_param_reset (cs_enforcement_param_t *efp, 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) | 
|  | Reset an existing cs_enforcement_param_t structure.  More... 
 | 
|  | 
| cs_enforcement_param_t * | cs_enforcement_param_copy (const cs_enforcement_param_t *ref) | 
|  | Copy a cs_enforcement_param_t structure.  More... 
 | 
|  | 
| void | cs_enforcement_param_free (cs_enforcement_param_t **p_efp) | 
|  | Free a cs_enforcement_param_t structure.  More... 
 | 
|  | 
| void | cs_enforcement_param_log (const char *eqname, const cs_enforcement_param_t *efp) | 
|  | Log a cs_enforcement_param_t structure.  More... 
 | 
|  | 
| 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.  More... 
 | 
|  | 
| 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.  More... 
 | 
|  | 
| 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.  More... 
 | 
|  | 
| 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.  More... 
 | 
|  | 
◆ cs_enforcement_selection_t
Type of entities used to define the selection where the enforcement takes place. 
Two mechanisms are possible.
1) Cell selection: defined a selection of cells and then automatically built the related selection of degrees of freedom and assigned a value to each selected degrees of freedom
2) DoF selection (faces or vertices up to now): defined a selection of degrees of freedom (DoFs) and assign a values to a selection of degrees of freedom inside 
| Enumerator | 
|---|
| CS_ENFORCEMENT_SELECTION_CELLS | List of cell ids  | 
| CS_ENFORCEMENT_SELECTION_FACES | List of face ids  | 
| CS_ENFORCEMENT_SELECTION_EDGES | List of edge ids  | 
| CS_ENFORCEMENT_SELECTION_VERTICES | List of vertex ids  | 
 
 
◆ cs_enforcement_type_t
Describe the way the values to enforce are defined. 
| Enumerator | 
|---|
| CS_ENFORCEMENT_BY_CONSTANT | The same constant value for each DoF  | 
| CS_ENFORCEMENT_BY_DOF_VALUES | A prescribed value for each DoF  | 
 
 
◆ cs_enforcement_define_at_edges()
Build a cs_enforcement_t structure for edge-based scheme. 
- Parameters
- 
  
    | [in] | connect | pointer to a cs_cdo_connect_t |  | [in] | n_params | number of enforcement parameters |  | [in] | efp_array | array of parameter structures defining the enforcement |  
 
- Returns
- an array with the values to enforce 
 
 
◆ cs_enforcement_define_at_faces()
Build a cs_enforcement_t structure for face-based scheme. 
- Parameters
- 
  
    | [in] | connect | pointer to a cs_cdo_connect_t |  | [in] | n_params | number of enforcement parameters |  | [in] | efp_array | array of parameter structures defining the enforcement |  
 
- Returns
- an array with the values to enforce 
 
 
◆ cs_enforcement_define_at_vertices()
Build a cs_enforcement_t structure for vertex-based scheme. 
- Parameters
- 
  
    | [in] | connect | pointer to a cs_cdo_connect_t |  | [in] | n_params | number of enforcement parameters |  | [in] | efp_array | array of parameter structures defining the enforcement |  
 
- Returns
- an array with the values to enforce 
 
 
◆ cs_enforcement_dofs_cw()
Build the cell-wise value to enforce. 
- Parameters
- 
  
    | [in] | forced_values | values to enforce or FLT_MAX |  | [in,out] | csys | pointer to a cs_cell_sys_t structure |  | [in,out] | cw_forced_values | local values to enforce |  
 
- Returns
- true if at least one DoF has to be enforced 
 
 
◆ cs_enforcement_param_copy()
◆ cs_enforcement_param_create()
Create and define a cs_enforcement_param_t structure. 
- Parameters
- 
  
    | [in] | sel_type | type of elements which have been selected |  | [in] | type | way to set values for the selected elements |  | [in] | stride | number of values to enforce by element |  | [in] | n_elts | number of selected elements locally |  | [in] | elt_ids | list of element ids |  | [in] | values | array of values to enforce |  
 
- Returns
- a pointer to a cs_enforcement_param_t structure 
 
 
◆ cs_enforcement_param_free()
◆ cs_enforcement_param_log()
◆ cs_enforcement_param_reset()
Reset an existing cs_enforcement_param_t structure. 
- Parameters
- 
  
    | [in,out] | efp | pointer to a cs_enforcement_param_t structure |  | [in] | sel_type | type of elements which have been selected |  | [in] | type | way to set values for the selected elements |  | [in] | stride | number of values to enforce by element |  | [in] | n_elts | number of selected elements locally |  | [in] | elt_ids | list of element ids |  | [in] | values | array of values to enforce |