8.3
general documentation
cs_reco_cw.h File Reference
#include "cs_cdo_local.h"
+ Include dependency graph for cs_reco_cw.h:

Go to the source code of this file.

Functions

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_vertices. More...
 
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. Pointer is already located at the beginning of the cell sequence, i.e. a shift equal to stride*c2v->idx[cm->c_id] has been done. array is assumed to be interlaced. More...
 
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 to a face. More...
 
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. More...
 
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 primal vertices. Algorithm based on the cs_cell_mesh_t structure. More...
 
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 full mesh) More...
 
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. Pointer is already located at the beginning of the cell sequence, i.e. a shift equal to c2v->idx[cm->c_id] has been done. More...
 
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. Pointer is already located at the beginning of the cell sequence, i.e. a shift equal to c2e->idx[cm->c_id] has been done. More...
 

Function Documentation

◆ cs_reco_cw_scalar_ebyc2c()

static cs_real_t cs_reco_cw_scalar_ebyc2c ( const cs_cell_mesh_t cm,
const cs_real_t array 
)
inlinestatic

Reconstruct a scalar value at the cell center. array is scanned thanks to the c2e connectivity. Pointer is already located at the beginning of the cell sequence, i.e. a shift equal to c2e->idx[cm->c_id] has been done.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]arrayarray of values for each couple (v,c)
Returns
the reconstructed value

◆ cs_reco_cw_scalar_v2c()

static cs_real_t cs_reco_cw_scalar_v2c ( const cs_cell_mesh_t cm,
const cs_real_t array 
)
inlinestatic

Reconstruct a scalar value at the cell center from an array of values located at vertices (for the full mesh)

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]arrayarray of values at vertices (size:n_vertices)
Returns
the reconstructed value

◆ cs_reco_cw_scalar_v2c_loc()

static cs_real_t cs_reco_cw_scalar_v2c_loc ( const cs_cell_mesh_t cm,
const cs_real_t p_v 
)
inlinestatic

Reconstruct the value of a scalar potential at the cell center from an array of values defined on primal vertices. Algorithm based on the cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]p_vpointer to the array of values at vertices (size: n_vc)
Returns
the value of the reconstruction at the cell center

◆ cs_reco_cw_scalar_v2f_fw()

static cs_real_t cs_reco_cw_scalar_v2f_fw ( const cs_face_mesh_t fm,
const cs_real_t p_v 
)
inlinestatic

Reconstruct the value at the face center from an array of values defined on primal vertices attached to a face.

Parameters
[in]fmpointer to cs_face_mesh_t structure
[in]p_vpointer to an array of values (local to this face)
Returns
the value of the reconstruction at the face center

◆ cs_reco_cw_scalar_v2f_loc()

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 
)
inlinestatic

Reconstruct the value at the face center from an array of values defined on primal vertices.

Parameters
[in]fid of the face in the cellwise numbering
[in]cmpointer to cs_cell_mesh_t structure
[in]p_vpointer to an array of values (local to the cell)
Returns
the value of the reconstruction at the face center

◆ cs_reco_cw_scalar_vbyc2c()

static cs_real_t cs_reco_cw_scalar_vbyc2c ( const cs_cell_mesh_t cm,
const cs_real_t array 
)
inlinestatic

Reconstruct a scalar value at the cell center. array is scanned thanks to the c2v connectivity. Pointer is already located at the beginning of the cell sequence, i.e. a shift equal to c2v->idx[cm->c_id] has been done.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]arrayarray of values for each couple (v,c)
Returns
the reconstructed value

◆ cs_reco_cw_stride_v2c()

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_vertices.

Parameters
[in]stridenumber of values for each vertex
[in]cmpointer to a cs_cell_mesh_t structure
[in]arrayarray of values
[in,out]recoreconstructed values

◆ cs_reco_cw_stride_vbyc2c()

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. Pointer is already located at the beginning of the cell sequence, i.e. a shift equal to stride*c2v->idx[cm->c_id] has been done. array is assumed to be interlaced.

Parameters
[in]stridenumber of values for each vertex
[in]cmpointer to a cs_cell_mesh_t structure
[in]arrayarray of values for each couple (v,c)
[in,out]recoreconstructed values