![]() |
programmer's documentation
|
#include "cs_cdo.h"
#include "cs_cdo_connect.h"
#include "cs_cdo_quantities.h"
#include "cs_cdo_toolbox.h"
Go to the source code of this file.
Data Structures | |
struct | cs_cdo_locsys_t |
struct | cs_cell_mesh_t |
struct | cs_face_mesh_t |
Macros | |
#define | CS_CDO_LOCAL_V (1 << 0) |
#define | CS_CDO_LOCAL_E (1 << 1) |
#define | CS_CDO_LOCAL_F (1 << 2) |
#define | CS_CDO_LOCAL_EV (1 << 3) |
#define | CS_CDO_LOCAL_FE (1 << 4) |
#define | CS_CDO_LOCAL_EF (1 << 5) |
Functions | |
cs_cdo_locsys_t * | cs_cdo_locsys_create (int n_max_ent) |
Allocate a cs_cdo_locsys_t structure. More... | |
void | cs_cdo_locsys_free (cs_cdo_locsys_t **p_ls) |
Free a cs_cdo_locsys_t structure. More... | |
void | cs_cdo_local_initialize (const cs_cdo_connect_t *connect) |
Allocate global structures related to a cs_cell_mesh_t and cs_face_mesh_t structures. More... | |
void | cs_cdo_local_finalize (void) |
Free global structures related to cs_cell_mesh_t and cs_face_mesh_t structures. More... | |
cs_cell_mesh_t * | cs_cdo_local_get_cell_mesh (int mesh_id) |
Get a pointer to a cs_cell_mesh_t structure corresponding to mesh id. More... | |
cs_face_mesh_t * | cs_cdo_local_get_face_mesh (int mesh_id) |
Get a pointer to a cs_face_mesh_t structure corresponding to mesh id. More... | |
cs_cell_mesh_t * | cs_cell_mesh_create (const cs_cdo_connect_t *connect) |
Allocate a cs_cell_mesh_t structure. More... | |
void | cs_cell_mesh_free (cs_cell_mesh_t **p_cm) |
Free a cs_cell_mesh_t structure. More... | |
void | cs_cell_mesh_build (cs_lnum_t c_id, cs_flag_t level, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, cs_cell_mesh_t *cm) |
Define a cs_cell_mesh_t structure for a given cell id. According to the requested level, some quantities may not be defined;. More... | |
cs_face_mesh_t * | cs_face_mesh_create (const cs_cdo_connect_t *connect) |
Allocate a cs_face_mesh_t structure. More... | |
void | cs_face_mesh_free (cs_face_mesh_t **p_fm) |
Free a cs_face_mesh_t structure. More... | |
void | cs_face_mesh_build (cs_lnum_t c_id, cs_lnum_t f_id, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, cs_face_mesh_t *fm) |
Define a cs_face_mesh_t structure for a given face/cell id. More... | |
void | cs_face_mesh_build_from_cell_mesh (const cs_cell_mesh_t *cm, short int f, cs_face_mesh_t *fm) |
Define a cs_face_mesh_t structure for a given cell from a cs_cell_mesh_t structure. v_ids and e_ids are defined in the cell numbering given by cm. More... | |
Variables | |
cs_cell_mesh_t ** | cs_cdo_local_cell_meshes |
cs_face_mesh_t ** | cs_cdo_local_face_meshes |
#define CS_CDO_LOCAL_E (1 << 1) |
#define CS_CDO_LOCAL_EF (1 << 5) |
#define CS_CDO_LOCAL_EV (1 << 3) |
#define CS_CDO_LOCAL_F (1 << 2) |
#define CS_CDO_LOCAL_FE (1 << 4) |
#define CS_CDO_LOCAL_V (1 << 0) |
void cs_cdo_local_finalize | ( | void | ) |
Free global structures related to cs_cell_mesh_t and cs_face_mesh_t structures.
cs_cell_mesh_t* cs_cdo_local_get_cell_mesh | ( | int | mesh_id | ) |
Get a pointer to a cs_cell_mesh_t structure corresponding to mesh id.
[in] | mesh_id | id in the array of pointer to cs_cell_mesh_t struct. |
cs_face_mesh_t* cs_cdo_local_get_face_mesh | ( | int | mesh_id | ) |
Get a pointer to a cs_face_mesh_t structure corresponding to mesh id.
[in] | mesh_id | id in the array of pointer to cs_face_mesh_t struct. |
void cs_cdo_local_initialize | ( | const cs_cdo_connect_t * | connect | ) |
Allocate global structures related to a cs_cell_mesh_t and cs_face_mesh_t structures.
[in] | connect | pointer to a cs_cdo_connect_t structure |
Allocate global structures related to a cs_cell_mesh_t and cs_face_mesh_t structures.
[in] | connect | pointer to a cs_cdo_connect_t structure |
cs_cdo_locsys_t* cs_cdo_locsys_create | ( | int | n_max_ent | ) |
Allocate a cs_cdo_locsys_t structure.
[in] | n_max_ent | max number of entries |
void cs_cdo_locsys_free | ( | cs_cdo_locsys_t ** | p_ls | ) |
Free a cs_cdo_locsys_t structure.
[in,out] | p_ls | pointer of pointer to a cs_cdo_locsys_t structure |
void cs_cell_mesh_build | ( | cs_lnum_t | c_id, |
cs_flag_t | flag, | ||
const cs_cdo_connect_t * | connect, | ||
const cs_cdo_quantities_t * | quant, | ||
cs_cell_mesh_t * | cm | ||
) |
Define a cs_cell_mesh_t structure for a given cell id. According to the requested level, some quantities may not be defined;.
[in] | c_id | cell id |
[in] | level | indicate which members are really defined |
[in] | connect | pointer to a cs_cdo_connect_t structure |
[in] | quant | pointer to a cs_cdo_quantities_t structure |
[in,out] | cm | pointer to a cs_cell_mesh_t structure to set |
[in] | c_id | cell id |
[in] | flag | indicate which members are really defined |
[in] | connect | pointer to a cs_cdo_connect_t structure |
[in] | quant | pointer to a cs_cdo_quantities_t structure |
[in,out] | cm | pointer to a cs_cell_mesh_t structure to set |
cs_cell_mesh_t* cs_cell_mesh_create | ( | const cs_cdo_connect_t * | connect | ) |
Allocate a cs_cell_mesh_t structure.
[in] | connect | pointer to a cs_cdo_connect_t structure |
void cs_cell_mesh_free | ( | cs_cell_mesh_t ** | p_cm | ) |
Free a cs_cell_mesh_t structure.
[in,out] | p_cm | pointer of pointer to a cs_cell_mesh_t structure |
void cs_face_mesh_build | ( | cs_lnum_t | c_id, |
cs_lnum_t | f_id, | ||
const cs_cdo_connect_t * | connect, | ||
const cs_cdo_quantities_t * | quant, | ||
cs_face_mesh_t * | fm | ||
) |
Define a cs_face_mesh_t structure for a given face/cell id.
[in] | c_id | cell id |
[in] | f_id | face id in the mesh structure |
[in] | connect | pointer to a cs_cdo_connect_t structure |
[in] | quant | pointer to a cs_cdo_quantities_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure to set |
void cs_face_mesh_build_from_cell_mesh | ( | const cs_cell_mesh_t * | cm, |
short int | f, | ||
cs_face_mesh_t * | fm | ||
) |
Define a cs_face_mesh_t structure for a given cell from a cs_cell_mesh_t structure. v_ids and e_ids are defined in the cell numbering given by cm.
[in] | cm | pointer to the reference cs_cell_mesh_t structure |
[in] | f | face id in the cs_cell_mesh_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure to set |
Define a cs_face_mesh_t structure for a given cell from a cs_cell_mesh_t structure. v_ids and e_ids are defined in the cell numbering given by cm.
[in] | cm | pointer to the reference cs_cell_mesh_t structure |
[in] | f_id | face id in the cs_cell_mesh_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure to set |
cs_face_mesh_t* cs_face_mesh_create | ( | const cs_cdo_connect_t * | connect | ) |
Allocate a cs_face_mesh_t structure.
[in] | connect | pointer to a cs_cdo_connect_t structure |
void cs_face_mesh_free | ( | cs_face_mesh_t ** | p_fm | ) |
Free a cs_face_mesh_t structure.
[in,out] | p_fm | pointer of pointer to a cs_face_mesh_t structure |
cs_cell_mesh_t** cs_cdo_local_cell_meshes |
cs_face_mesh_t** cs_cdo_local_face_meshes |