My Project
programmer's documentation
Data Fields
cs_cell_mesh_t Struct Reference

Set of local quantities and connectivities related to a mesh cell This is a key structure for all cellwise processes. This structure belongs to one thread and only. This structure used allows one to get a better memory locality. It maps the existing global mesh and other related structures into a more compact one dedicated to a cell. Arrays are allocated to the max number of related entities (e.g. n_max_vbyc or to n_max_ebyc). The cell-wise numbering is based on the c2v, c2e and c2f connectivity. More...

#include <cs_cdo_local.h>

Collaboration diagram for cs_cell_mesh_t:
Collaboration graph

Data Fields

cs_flag_t flag
 
fvm_element_t type
 
short int n_max_vbyc
 
short int n_max_ebyc
 
short int n_max_fbyc
 
cs_lnum_t c_id
 
cs_real_3_t xc
 
double vol_c
 
double diam_c
 
short int n_vc
 
cs_lnum_tv_ids
 
double * xv
 
double * wvc
 
short int n_ec
 
cs_lnum_te_ids
 
cs_quant_tedge
 
cs_nvec3_tdface
 
short int n_fc
 
cs_lnum_t bface_shift
 
cs_lnum_tf_ids
 
short int * f_sgn
 
double * f_diam
 
double * hfc
 
double * pfc
 
cs_quant_tface
 
cs_nvec3_tdedge
 
short int * e2v_ids
 
short int * e2v_sgn
 
short int * f2v_idx
 
short int * f2v_ids
 
short int * f2e_idx
 
short int * f2e_ids
 
double * tef
 
short int * e2f_ids
 
cs_nvec3_tsefc
 

Detailed Description

Set of local quantities and connectivities related to a mesh cell This is a key structure for all cellwise processes. This structure belongs to one thread and only. This structure used allows one to get a better memory locality. It maps the existing global mesh and other related structures into a more compact one dedicated to a cell. Arrays are allocated to the max number of related entities (e.g. n_max_vbyc or to n_max_ebyc). The cell-wise numbering is based on the c2v, c2e and c2f connectivity.

Field Documentation

◆ bface_shift

cs_lnum_t bface_shift

shift to get the boundary face numbering

◆ c_id

cs_lnum_t c_id

id of related cell

◆ dedge

cs_nvec3_t* dedge

dual edge quantities (length and unit vector)

◆ dface

cs_nvec3_t* dface

local dual face quantities (area and unit normal)

◆ diam_c

double diam_c

diameter of the current cell

◆ e2f_ids

short int* e2f_ids

cell-wise edge -> faces connectivity

◆ e2v_ids

short int* e2v_ids

cell-wise edge->vertices connectivity

◆ e2v_sgn

short int* e2v_sgn

cell-wise edge->vertices orientation (-1 or +1)

◆ e_ids

cs_lnum_t* e_ids

edge ids on this rank

◆ edge

cs_quant_t* edge

local edge quantities (xe, length and unit vector)

◆ f2e_ids

short int* f2e_ids

size 2*n_max_ebyc

◆ f2e_idx

short int* f2e_idx

size n_fc + 1

◆ f2v_ids

short int* f2v_ids

size 2*n_max_ebyc

◆ f2v_idx

short int* f2v_idx

size n_fc + 1

◆ f_diam

double* f_diam

diameters of local faces

◆ f_ids

cs_lnum_t* f_ids

face ids on this rank

◆ f_sgn

short int* f_sgn

incidence number between f and c

◆ face

cs_quant_t* face

face quantities (xf, area and unit normal)

◆ flag

cs_flag_t flag

indicate which quantities have to be defined

◆ hfc

double* hfc

height of the pyramid of basis f and apex c

◆ n_ec

short int n_ec

local number of edges in a cell

◆ n_fc

short int n_fc

local number of faces in a cell

◆ n_max_ebyc

short int n_max_ebyc

◆ n_max_fbyc

short int n_max_fbyc

◆ n_max_vbyc

short int n_max_vbyc

◆ n_vc

short int n_vc

local number of vertices in a cell

◆ pfc

double* pfc

volume of the pyramid for each face

◆ sefc

cs_nvec3_t* sefc

portion of dual faces (2 triangles by edge)

◆ tef

double* tef

area of the triangle of base |e| and apex xf

◆ type

type of element related to this cell

◆ v_ids

cs_lnum_t* v_ids

vertex ids on this rank

◆ vol_c

double vol_c

volume of the current cell

◆ wvc

double* wvc

weight |dualvol(v) cap vol_c|/|vol_c|, size: n_vc

◆ xc

coordinates of the cell center

◆ xv

double* xv

local vertex coordinates (copy)


The documentation for this struct was generated from the following file: