![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <errno.h>
#include <locale.h>
#include <assert.h>
#include "bft_mem.h"
#include "cs_mesh_location.h"
#include "cs_cdo_bc.h"
Functions | |
static cs_flag_t | _get_bc_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 vertices and edges) More... | |
static cs_cdo_bc_t * | _cdo_bc_create (cs_lnum_t n_elts) |
Create a cs_cdo_bc_t structure. More... | |
static void | _add_def_to_bc (const short int def_id, const cs_lnum_t n_faces, const cs_lnum_t *elt_ids, cs_lnum_t shift, short int *bc_defs, cs_lnum_t *bc_list) |
Update the cs_cdo_bc_t structure with elements associated to the definition of id def_id. More... | |
cs_cdo_bc_list_t * | cs_cdo_bc_list_create (cs_lnum_t n_elts, cs_lnum_t n_nhmg_elts) |
Create a cs_cdo_bc_list_t structure. More... | |
cs_cdo_bc_list_t * | cs_cdo_bc_list_free (cs_cdo_bc_list_t *bcl) |
Free a cs_cdo_bc_list_t structure. More... | |
cs_cdo_bc_t * | cs_cdo_bc_define (const cs_param_bc_t *param_bc, cs_lnum_t n_b_faces) |
Define the structure which translates the BC definition from the user viewpoint into a ready-to-use structure. More... | |
cs_cdo_bc_t * | cs_cdo_bc_free (cs_cdo_bc_t *face_bc) |
Free a cs_cdo_bc_t structure. More... | |
|
inlinestatic |
Update the cs_cdo_bc_t structure with elements associated to the definition of id def_id.
[in] | def_id | id of the definition to add |
[in] | n_faces | number of border faces to specify |
[in] | elt_ids | list of border faces related to this def. (or NULL) |
[in] | shift | shift to apply before adding new entries |
[in,out] | bc_defs | pointer to the list of definitions |
[in,out] | bc_list | pointer to the list dedicated to a specific type of boundary condition |
|
static |
Create a cs_cdo_bc_t structure.
[in] | n_elts | number of elements |
|
inlinestatic |
Convert a cs_param_bc_type_t into a flag (enable multiple type for a same entity as required for vertices and edges)
[in] | bc_type | predefined type of boundary condition |
cs_cdo_bc_t* cs_cdo_bc_define | ( | const cs_param_bc_t * | param_bc, |
cs_lnum_t | n_b_faces | ||
) |
Define the structure which translates the BC definition from the user viewpoint into a ready-to-use structure.
[in] | param_bc | pointer to the parameters related to BCs of an eq. |
[in] | n_b_faces | number of border faces |
cs_cdo_bc_t* cs_cdo_bc_free | ( | cs_cdo_bc_t * | face_bc | ) |
Free a cs_cdo_bc_t structure.
[in,out] | face_bc | pointer to a cs_cdo_bc_t structure |
cs_cdo_bc_list_t* cs_cdo_bc_list_create | ( | cs_lnum_t | n_elts, |
cs_lnum_t | n_nhmg_elts | ||
) |
Create a cs_cdo_bc_list_t structure.
[in] | n_elts | number of entries of the list |
[in] | n_nhmg_elts | number of elements attached to a homogeneous BC |
cs_cdo_bc_list_t* cs_cdo_bc_list_free | ( | cs_cdo_bc_list_t * | bcl | ) |
Free a cs_cdo_bc_list_t structure.
[in] | bcl | pointer to the cs_cdo_bc_list_t structure to free |