1 #ifndef __CS_CDO_SCHEME_GEOMETRY_H__ 2 #define __CS_CDO_SCHEME_GEOMETRY_H__ 69 cs_compute_grdfc_cw(
short int f,
117 cs_compute_wef(
short int f,
124 const short int *f2e_idx = cm->
f2e_idx + f;
125 const double *tef_vals = cm->
tef + f2e_idx[0];
126 const double inv_f = 1./cm->
face[f].
meas;
129 for (
short int e = 0; e < f2e_idx[1] - f2e_idx[0]; e++)
130 wef[e] = tef_vals[e] * inv_f;
145 cs_compute_pefc(
short int f,
150 assert(cs_eflag_test(cm->
flag,
153 const short int *f2e_idx = cm->
f2e_idx + f;
154 const double *tef_vals = cm->
tef + f2e_idx[0];
158 for (
short int e = 0; e < f2e_idx[1] - f2e_idx[0]; e++)
159 pefc[e] = tef_vals[e] * f_coef;
176 cs_compute_wvf(
short int f,
181 assert(cs_eflag_test(cm->
flag,
187 const short int *f2e_idx = cm->
f2e_idx + f;
188 const short int *f2e_ids = cm->
f2e_ids + f2e_idx[0];
189 const double *tef_vals = cm->
tef + f2e_idx[0];
190 const double inv_f = 1./cm->
face[f].
meas;
193 for (
short int e = 0; e < f2e_idx[1] - f2e_idx[0]; e++) {
195 const short int *
v = cm->
e2v_ids + 2*f2e_ids[e];
196 const double w = 0.5*tef_vals[e] * inv_f;
double * tef
Definition: cs_cdo_local.h:254
Definition: cs_flag.h:205
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
double meas
Definition: cs_cdo_quantities.h:123
double * hfc
Definition: cs_cdo_local.h:237
Set of local quantities and connectivities related to a mesh cell.
Definition: cs_cdo_local.h:202
Definition: cs_flag.h:238
Definition: cs_flag.h:211
short int * f2e_ids
Definition: cs_cdo_local.h:252
void cs_compute_wef_wvf(short int f, const cs_cell_mesh_t *cm, cs_real_t *wvf, cs_real_t *wef)
Compute for a face the weight related to each vertex w_{v,f} and the weight related to each edge w_{v...
Definition: cs_scheme_geometry.c:502
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_defs.h:368
short int * f_sgn
Definition: cs_cdo_local.h:235
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114
Definition: cs_field_pointer.h:128
void cs_compute_face_covariance_tensor(const cs_cell_mesh_t *cm, short int f, const cs_nvec3_t ax, const cs_nvec3_t ay, const cs_real_t center[3], cs_real_t cov[3])
Compute the inertial matrix of a cell with respect to the point called "center". This computation is ...
Definition: cs_scheme_geometry.c:278
cs_eflag_t flag
Definition: cs_cdo_local.h:204
short int f_sgn
Definition: cs_cdo_local.h:279
double hfc
Definition: cs_cdo_local.h:283
Definition: cs_flag.h:231
void cs_compute_inertia_tensor(const cs_cell_mesh_t *cm, const cs_real_t center[3], cs_real_t inertia[3][3])
Compute the inertial matrix of a cell with respect to the point called "center". This computation is ...
Definition: cs_scheme_geometry.c:350
cs_quant_t * face
Definition: cs_cdo_local.h:238
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:335
cs_quant_t face
Definition: cs_cdo_local.h:280
short int n_vc
Definition: cs_cdo_local.h:219
double unitv[3]
Definition: cs_cdo_quantities.h:124
void cs_compute_grd_ve(const short int v1, const short int v2, const cs_nvec3_t deq, const cs_real_3_t uvc[], const cs_real_t lvc[], cs_real_t *grd_v1, cs_real_t *grd_v2)
Compute the gradient of a Lagrange function related to primal vertices in a p_{ef,c} subvolume of a cell c where e is an edge belonging to the face f with vertices v1 and v2.
Definition: cs_scheme_geometry.c:454
#define END_C_DECLS
Definition: cs_defs.h:511
short int * e2v_ids
Definition: cs_cdo_local.h:243
Set of local quantities and connectivities related to a mesh face Structure used to get a better memo...
Definition: cs_cdo_local.h:270
short int * f2e_idx
Definition: cs_cdo_local.h:251
Definition: cs_flag.h:217
cs_real_t * pvol_f
Definition: cs_cdo_local.h:240