115 for (
short int e = 0; e <
fm->n_ef; e++)
116 p_f += (p_v[
fm->e2v_ids[2*e]] + p_v[
fm->e2v_ids[2*e+1]]) *
fm->tef[e];
117 p_f *= 0.5 / pfq.
meas;
149 for (
int ie = cm->
f2e_idx[f]; ie < cm->f2e_idx[f+1]; ie++) {
151 p_f += (p_v[v[0]] + p_v[v[1]]) * cm->
tef[ie];
177 if (p_v == NULL || cm == NULL)
184 for (
short int v = 0; v < cm->
n_vc; v++)
185 p_c += cm->
wvc[v] * p_v[v];
213 for (
short int v = 0; v < cm->
n_vc; v++)
214 val_c += cm->
wvc[v] * array[cm->
v_ids[v]];
244 for (
short int v = 0; v < cm->
n_vc; v++)
245 val_c += cm->
wvc[v] * array[v];
275 for (
short int e = 0; e < cm->
n_ec; e++)
276 val_c += cm->
pvol_e[e] * array[e];
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
@ fm
Definition: cs_field_pointer.h:126
static bool cs_eflag_test(cs_eflag_t flag_to_check, cs_eflag_t reference)
Check if a two compute flag share the same pattern Return true if the computed flag to check has at l...
Definition: cs_flag.h:381
@ CS_FLAG_COMP_PVQ
Definition: cs_flag.h:213
@ CS_FLAG_COMP_FEQ
Definition: cs_flag.h:249
@ CS_FLAG_COMP_PEC
Definition: cs_flag.h:280
@ CS_FLAG_COMP_PFQ
Definition: cs_flag.h:233
@ CS_FLAG_COMP_EV
Definition: cs_flag.h:241
@ CS_FLAG_COMP_FE
Definition: cs_flag.h:245
static cs_real_t cs_reco_cw_scalar_ebyc2c(const cs_cell_mesh_t *cm, const cs_real_t *array)
Reconstruct a scalar value at the cell center. array is scanned thanks to the c2e connectivity....
Definition: cs_reco_cw.h:265
static cs_real_t cs_reco_cw_scalar_v2c(const cs_cell_mesh_t *cm, const cs_real_t *array)
Reconstruct a scalar value at the cell center from an array of values located at vertices (for the fu...
Definition: cs_reco_cw.h:203
static cs_real_t cs_reco_cw_scalar_v2f_loc(const short int f, const cs_cell_mesh_t *cm, const cs_real_t *p_v)
Reconstruct the value at the face center from an array of values defined on primal vertices.
Definition: cs_reco_cw.h:136
static cs_real_t cs_reco_cw_scalar_v2f_fw(const cs_face_mesh_t *fm, const cs_real_t *p_v)
Reconstruct the value at the face center from an array of values defined on primal vertices attached ...
Definition: cs_reco_cw.h:105
void cs_reco_cw_stride_v2c(int stride, const cs_cell_mesh_t *cm, const cs_real_t *array, cs_real_t *reco)
Reconstruct a scalar value at the cell center. array is assumed to be interlaced and of size stride*n...
Definition: cs_reco_cw.cpp:74
static cs_real_t cs_reco_cw_scalar_vbyc2c(const cs_cell_mesh_t *cm, const cs_real_t *array)
Reconstruct a scalar value at the cell center. array is scanned thanks to the c2v connectivity....
Definition: cs_reco_cw.h:234
void cs_reco_cw_stride_vbyc2c(int stride, const cs_cell_mesh_t *cm, const cs_real_t *array, cs_real_t *reco)
Reconstruct a scalar value at the cell center. array is scanned thanks to the c2v connectivity....
Definition: cs_reco_cw.cpp:115
static cs_real_t cs_reco_cw_scalar_v2c_loc(const cs_cell_mesh_t *cm, const cs_real_t *p_v)
Reconstruct the value of a scalar potential at the cell center from an array of values defined on pri...
Definition: cs_reco_cw.h:172
Set of local quantities and connectivities related to a mesh cell.
Definition: cs_cdo_local.h:242
short int * e2v_ids
Definition: cs_cdo_local.h:290
short int n_vc
Definition: cs_cdo_local.h:262
double * wvc
Definition: cs_cdo_local.h:265
short int n_ec
Definition: cs_cdo_local.h:269
short int * f2e_idx
Definition: cs_cdo_local.h:299
cs_eflag_t flag
Definition: cs_cdo_local.h:244
short int * f2e_ids
Definition: cs_cdo_local.h:300
double * tef
Definition: cs_cdo_local.h:302
double vol_c
Definition: cs_cdo_local.h:257
cs_lnum_t * v_ids
Definition: cs_cdo_local.h:263
cs_real_t * pvol_e
Definition: cs_cdo_local.h:273
cs_quant_t * face
Definition: cs_cdo_local.h:284
Set of local quantities and connectivities related to a mesh face Structure used to get a better memo...
Definition: cs_cdo_local.h:432
Definition: cs_cdo_quantities.h:134
double meas
Definition: cs_cdo_quantities.h:136