1 #ifndef __CS_RECO_CW_H__
2 #define __CS_RECO_CW_H__
119 for (
short int e = 0; e <
fm->n_ef; e++)
120 p_f += (p_v[
fm->e2v_ids[2*e]] + p_v[
fm->e2v_ids[2*e+1]]) *
fm->tef[e];
121 p_f *= 0.5 / pfq.
meas;
153 for (
int ie = cm->
f2e_idx[f]; ie < cm->f2e_idx[f+1]; ie++) {
155 p_f += (p_v[
v[0]] + p_v[
v[1]]) * cm->
tef[ie];
181 if (p_v == NULL || cm == NULL)
188 for (
short int v = 0;
v < cm->
n_vc;
v++)
189 p_c += cm->
wvc[
v] * p_v[
v];
217 for (
short int v = 0;
v < cm->
n_vc;
v++)
248 for (
short int v = 0;
v < cm->
n_vc;
v++)
249 val_c += cm->
wvc[
v] * array[
v];
279 for (
short int e = 0; e < cm->
n_ec; e++)
280 val_c += cm->
pvol_e[e] * array[e];
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:515
@ fm
Definition: cs_field_pointer.h:127
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:369
@ 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:269
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:207
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:140
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:109
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.c:80
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:238
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.c:121
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:176
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114
Set of local quantities and connectivities related to a mesh cell.
Definition: cs_cdo_local.h:203
short int * e2v_ids
Definition: cs_cdo_local.h:250
short int n_vc
Definition: cs_cdo_local.h:223
double * wvc
Definition: cs_cdo_local.h:226
short int n_ec
Definition: cs_cdo_local.h:230
short int * f2e_idx
Definition: cs_cdo_local.h:259
cs_eflag_t flag
Definition: cs_cdo_local.h:205
short int * f2e_ids
Definition: cs_cdo_local.h:260
double * tef
Definition: cs_cdo_local.h:262
double vol_c
Definition: cs_cdo_local.h:218
cs_lnum_t * v_ids
Definition: cs_cdo_local.h:224
cs_real_t * pvol_e
Definition: cs_cdo_local.h:234
cs_quant_t * face
Definition: cs_cdo_local.h:244
Set of local quantities and connectivities related to a mesh face Structure used to get a better memo...
Definition: cs_cdo_local.h:279
Definition: cs_cdo_quantities.h:129
double meas
Definition: cs_cdo_quantities.h:131