|
My Project
programmer's documentation
|
Go to the documentation of this file. 1 #ifndef __CS_CDO_QUANTITIES_H__
2 #define __CS_CDO_QUANTITIES_H__
50 #define CS_CDO_ORTHO (1 << 0) // Orthogonality condition is checked
196 const double xab[3] = {xb[0] - qa.
center[0],
199 const double cp[3] = {qa.
unitv[1]*xab[2] - qa.
unitv[2]*xab[1],
382 if (f_id < cdoq->n_i_faces)
403 if (f_id < cdoq->n_i_faces)
cs_lnum_t n_cells
Definition: cs_cdo_quantities.h:102
void const int * f_id
Definition: cs_gui.h:292
void cs_cdo_quantities_set_algo_ccenter(cs_cdo_quantities_algo_ccenter_t algo)
Set the type of algorithm to use for computing the cell center.
Definition: cs_cdo_quantities.c:894
static cs_real_t cs_math_3_norm(const cs_real_t v[3])
Compute the euclidean norm of a vector of dimension 3.
Definition: cs_math.h:372
cs_quant_info_t edge_info
Definition: cs_cdo_quantities.h:158
double meas_max
Definition: cs_cdo_quantities.h:79
cs_nvec3_t cs_quant_set_face_nvec(cs_lnum_t f_id, const cs_cdo_quantities_t *cdoq)
Retrieve the face surface and its unit normal vector for a primal face (interior or border)
Definition: cs_cdo_quantities.c:1558
Definition: cs_cdo_quantities.h:66
void cs_cdo_quantities_compute_dual_volumes(const cs_cdo_quantities_t *cdoq, const cs_adjacency_t *c2v, cs_real_t *dual_vol)
Compute the dual volume surrounding each vertex.
Definition: cs_cdo_quantities.c:1296
cs_real_t * dedge_vector
Definition: cs_cdo_quantities.h:131
const cs_real_t * b_face_center
Definition: cs_cdo_quantities.h:122
cs_lnum_t n_edges
Definition: cs_cdo_quantities.h:143
const cs_real_t * i_face_normal
Definition: cs_cdo_quantities.h:116
Definition: cs_cdo_quantities.h:68
Definition: cs_cdo_quantities.h:74
double center[3]
Definition: cs_cdo_quantities.h:90
cs_real_t * dcell_vol
Definition: cs_cdo_quantities.h:166
cs_cdo_quantities_t * cs_cdo_quantities_build(const cs_mesh_t *m, const cs_mesh_quantities_t *mq, const cs_cdo_connect_t *topo)
Build a cs_cdo_quantities_t structure.
Definition: cs_cdo_quantities.c:912
#define END_C_DECLS
Definition: cs_defs.h:468
cs_cdo_quantities_t * cs_cdo_quantities_free(cs_cdo_quantities_t *q)
Destroy a cs_cdo_quantities_t structure.
Definition: cs_cdo_quantities.c:1122
cs_real_t * cell_centers
Definition: cs_cdo_quantities.h:104
double meas
Definition: cs_cdo_quantities.h:88
static const cs_real_t * cs_quant_get_face_center(cs_lnum_t f_id, const cs_cdo_quantities_t *cdoq)
Retrieve the face center for a primal face (interior or border)
Definition: cs_cdo_quantities.h:400
void cs_quant_dump(FILE *f, cs_lnum_t num, const cs_quant_t q)
Dump a cs_quant_t structure.
Definition: cs_cdo_quantities.c:1624
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
Definition: cs_cdo_quantities.h:63
Definition: cs_mesh_quantities.h:90
static double cs_compute_area_from_quant(const cs_quant_t qa, const cs_real_t *xb)
Compute the area of the triangle of base given by q (related to a segment) with apex located at xa.
Definition: cs_cdo_quantities.h:193
double vol_tot
Definition: cs_cdo_quantities.h:97
double h_max
Definition: cs_cdo_quantities.h:81
void cs_cdo_quantities_compute_b_wvf(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_lnum_t bf_id, cs_real_t wvf[])
Compute the weight related to each vertex of a face. This weight ensures a 2nd order approximation if...
Definition: cs_cdo_quantities.c:1460
const cs_real_t * i_face_center
Definition: cs_cdo_quantities.h:117
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:286
double unitv[3]
Definition: cs_cdo_quantities.h:89
void cs_cdo_quantities_compute_i_wvf(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_lnum_t f_id, cs_real_t wvf[])
Compute the weight related to each vertex of a face. This weight ensures a 2nd order approximation if...
Definition: cs_cdo_quantities.c:1411
cs_lnum_t n_faces
Definition: cs_cdo_quantities.h:125
Definition: cs_cdo_quantities.h:94
void cs_cdo_quantities_summary(const cs_cdo_quantities_t *quant)
Summarize generic information about the cdo mesh quantities.
Definition: cs_cdo_quantities.c:1158
cs_real_t * edge_vector
Definition: cs_cdo_quantities.h:146
static const cs_real_t * cs_quant_get_face_vector_area(cs_lnum_t f_id, const cs_cdo_quantities_t *cdoq)
Retrieve the face vector which the face_area * face_normal for a primal face (interior or border)
Definition: cs_cdo_quantities.h:379
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
Definition: cs_cdo_connect.h:74
const cs_real_t * i_face_surf
Definition: cs_cdo_quantities.h:118
cs_quant_t cs_quant_set_face(cs_lnum_t f_id, const cs_cdo_quantities_t *cdoq)
Define a cs_quant_t structure for a primal face (interior or border)
Definition: cs_cdo_quantities.c:1506
cs_quant_info_t face_info
Definition: cs_cdo_quantities.h:138
Definition: cs_mesh_adjacencies.h:90
cs_nvec3_t cs_quant_set_dedge_nvec(cs_lnum_t f_shift, const cs_cdo_quantities_t *cdoq)
Get the two normalized vector associated to a dual edge.
Definition: cs_cdo_quantities.c:1604
cs_nvec3_t cs_quant_set_edge_nvec(cs_lnum_t e_id, const cs_cdo_quantities_t *cdoq)
Get the normalized vector associated to a primal edge.
Definition: cs_cdo_quantities.c:1583
cs_real_t * cell_vol
Definition: cs_cdo_quantities.h:105
cs_gnum_t n_g_faces
Definition: cs_cdo_quantities.h:126
cs_gnum_t n_g_edges
Definition: cs_cdo_quantities.h:144
void cs_cdo_quantities_dump(const cs_cdo_quantities_t *cdoq)
Dump a cs_cdo_quantities_t structure.
Definition: cs_cdo_quantities.c:1218
const cs_real_t * vtx_coord
Definition: cs_cdo_quantities.h:168
void cs_cdo_quantities_compute_b_tef(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_lnum_t bf_id, cs_real_t tef[])
Compute the area of the triangles with basis each edge of the face and apex the face center....
Definition: cs_cdo_quantities.c:1369
cs_quant_info_t cell_info
Definition: cs_cdo_quantities.h:110
cs_cdo_quantities_algo_ccenter_t
Definition: cs_cdo_quantities.h:57
cs_lnum_t n_i_faces
Definition: cs_cdo_quantities.h:115
const cs_real_t * b_face_normal
Definition: cs_cdo_quantities.h:121
cs_lnum_t n_b_faces
Definition: cs_cdo_quantities.h:120
Definition: cs_field_pointer.h:106
cs_lnum_t n_vertices
Definition: cs_cdo_quantities.h:163
unsigned short int cs_flag_t
Definition: cs_defs.h:304
Definition: cs_cdo_quantities.h:86
void cs_cdo_quantities_compute_i_tef(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_lnum_t f_id, cs_real_t tef[])
Compute the area of the triangles with basis each edge of the face and apex the face center....
Definition: cs_cdo_quantities.c:1327
double h_min
Definition: cs_cdo_quantities.h:80
cs_real_t * sface_normal
Definition: cs_cdo_quantities.h:155
Definition: cs_defs.h:343
const cs_real_t * b_face_surf
Definition: cs_cdo_quantities.h:123
Definition: cs_cdo_quantities.h:60
double meas_min
Definition: cs_cdo_quantities.h:78
cs_gnum_t n_g_vertices
Definition: cs_cdo_quantities.h:164
cs_flag_t * cell_flag
Definition: cs_cdo_quantities.h:106
cs_gnum_t n_g_cells
Definition: cs_cdo_quantities.h:103