programmer's documentation
Functions
cs_reco.h File Reference
#include "cs_cdo_connect.h"
#include "cs_cdo_local.h"
#include "cs_cdo_quantities.h"
Include dependency graph for cs_reco.h:

Go to the source code of this file.

Functions

void cs_reco_conf_vtx_dofs (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const double *dof, double *p_crec[], double *p_frec[])
 Reconstruct at cell centers and face centers a vertex-based field Linear interpolation. If p_crec and/or p_frec are not allocated, this done in this subroutine. More...
 
void cs_reco_pv_at_cell_center (cs_lnum_t c_id, const cs_connect_index_t *c2v, const cs_cdo_quantities_t *quant, const double *array, cs_real_t *val_xc)
 Reconstruct the value at the cell center from an array of values defined on primal vertices. More...
 
static void cs_reco_pv_at_face_center (const cs_face_mesh_t *fm, const double *p_v, double *p_f)
 Reconstruct the value at the face center from an array of values defined on primal vertices. More...
 
void cs_reco_pf_from_pv (cs_lnum_t f_id, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const double *pdi, cs_real_t *pdi_f)
 Reconstruct the value at the face center from an array of values defined on primal vertices. More...
 
void cs_reco_dfbyc_at_cell_center (cs_lnum_t c_id, const cs_connect_index_t *c2e, const cs_cdo_quantities_t *quant, const double *array, cs_real_3_t val_xc)
 Reconstruct a constant vector at the cell center from an array of values defined on dual faces lying inside each cell. This array is scanned thanks to the c2e connectivity. More...
 
void cs_reco_dfbyc_in_pec (cs_lnum_t c_id, cs_lnum_t e_id, const cs_connect_index_t *c2e, const cs_cdo_quantities_t *quant, const double *array, cs_real_3_t val_pec)
 Reconstruct a constant vector inside pec which is a volume surrounding the edge e inside the cell c. array is scanned thanks to the c2e connectivity. Reconstruction used is based on DGA (stabilization = 1/d where d is the space dimension) More...
 
void cs_reco_cost_edge_dof (cs_lnum_t cid, cs_lnum_t e1_id, const cs_connect_index_t *c2e, const cs_cdo_quantities_t *quant, const double *dof, double reco[])
 Reconstruct by a constant vector a field of edge-based DoFs in a volume surrounding an edge. More...
 
void cs_reco_grd_cell_from_pv (cs_lnum_t c_id, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const double *pdi, cs_real_t val_xc[])
 Reconstruct the value at the cell center of the gradient of a field defined on primal vertices. More...
 
void cs_reco_ccen_edge_dof (cs_lnum_t cid, const cs_connect_index_t *c2e, const cs_cdo_quantities_t *quant, const double *dof, double reco[])
 Reconstruct at the cell center a field of edge-based DoFs. More...
 
void cs_reco_ccen_edge_dofs (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const double *dof, double *p_ccrec[])
 Reconstruct at each cell center a field of edge-based DoFs. More...
 

Function Documentation

§ cs_reco_ccen_edge_dof()

void cs_reco_ccen_edge_dof ( cs_lnum_t  cid,
const cs_connect_index_t c2e,
const cs_cdo_quantities_t quant,
const double *  dof,
double  reco[] 
)

Reconstruct at the cell center a field of edge-based DoFs.

Parameters
[in]cidcell id
[in]c2ecell -> edges connectivity
[in]quantpointer to the additional quantities struct.
[in]dofpointer to the field of edge-based DoFs
[in,out]recovalue of the reconstructed field at cell center

§ cs_reco_ccen_edge_dofs()

void cs_reco_ccen_edge_dofs ( const cs_cdo_connect_t connect,
const cs_cdo_quantities_t quant,
const double *  dof,
double *  p_ccrec[] 
)

Reconstruct at each cell center a field of edge-based DoFs.

Parameters
[in]connectpointer to the connectivity struct.
[in]quantpointer to the additional quantities struct.
[in]dofpointer to the field of edge-based DoFs
[in,out]p_ccrecpointer to the reconstructed values

§ cs_reco_conf_vtx_dofs()

void cs_reco_conf_vtx_dofs ( const cs_cdo_connect_t connect,
const cs_cdo_quantities_t quant,
const double *  dof,
double *  p_crec[],
double *  p_frec[] 
)

Reconstruct at cell centers and face centers a vertex-based field Linear interpolation. If p_crec and/or p_frec are not allocated, this done in this subroutine.

Parameters
[in]connectpointer to the connectivity struct.
[in]quantpointer to the additional quantities struct.
[in]dofpointer to the field of vtx-based DoFs
[in,out]p_crecreconstructed values at cell centers
[in,out]p_frecreconstructed values at face centers

§ cs_reco_cost_edge_dof()

void cs_reco_cost_edge_dof ( cs_lnum_t  cid,
cs_lnum_t  e1_id,
const cs_connect_index_t c2e,
const cs_cdo_quantities_t quant,
const double *  dof,
double  reco[] 
)

Reconstruct by a constant vector a field of edge-based DoFs in a volume surrounding an edge.

Parameters
[in]cidcell id
[in]e1_idsub-volume related to this edge id
[in]c2ecell -> edges connectivity
[in]quantpointer to the additional quantities struct.
[in]dofpointer to the field of edge-based DoFs
[in,out]recovalue of the reconstructed field in this sub-volume

§ cs_reco_dfbyc_at_cell_center()

void cs_reco_dfbyc_at_cell_center ( cs_lnum_t  c_id,
const cs_connect_index_t c2e,
const cs_cdo_quantities_t quant,
const double *  array,
cs_real_3_t  val_xc 
)

Reconstruct a constant vector at the cell center from an array of values defined on dual faces lying inside each cell. This array is scanned thanks to the c2e connectivity.

Parameters
[in]c_idcell id
[in]c2ecell -> edges connectivity
[in]quantpointer to the additional quantities struct.
[in]arraypointer to the array of values
[in,out]val_xcvalue of the reconstruction at the cell center

§ cs_reco_dfbyc_in_pec()

void cs_reco_dfbyc_in_pec ( cs_lnum_t  c_id,
cs_lnum_t  e_id,
const cs_connect_index_t c2e,
const cs_cdo_quantities_t quant,
const double *  array,
cs_real_3_t  val_pec 
)

Reconstruct a constant vector inside pec which is a volume surrounding the edge e inside the cell c. array is scanned thanks to the c2e connectivity. Reconstruction used is based on DGA (stabilization = 1/d where d is the space dimension)

Parameters
[in]c_idcell id
[in]e_idedge id
[in]c2ecell -> edges connectivity
[in]quantpointer to the additional quantities struct.
[in]arraypointer to the array of values
[in,out]val_pecvalue of the reconstruction in pec

§ cs_reco_grd_cell_from_pv()

void cs_reco_grd_cell_from_pv ( cs_lnum_t  c_id,
const cs_cdo_connect_t connect,
const cs_cdo_quantities_t quant,
const double *  pdi,
cs_real_t  val_xc[] 
)

Reconstruct the value at the cell center of the gradient of a field defined on primal vertices.

Parameters
[in]c_idcell id
[in]connectpointer to a cs_cdo_connect_t structure
[in]quantpointer to the additional quantities struct.
[in]pdipointer to the array of values
[in,out]val_xcvalue of the reconstructed graident at cell center

§ cs_reco_pf_from_pv()

void cs_reco_pf_from_pv ( cs_lnum_t  f_id,
const cs_cdo_connect_t connect,
const cs_cdo_quantities_t quant,
const double *  pdi,
cs_real_t pdi_f 
)

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

Parameters
[in]f_idface id (interior and border faces)
[in]connectpointer to a cs_cdo_connect_t structure
[in]quantpointer to the additional quantities struct.
[in]pdipointer to the array of values
[in,out]pdi_fvalue of the reconstruction at the face center

§ cs_reco_pv_at_cell_center()

void cs_reco_pv_at_cell_center ( cs_lnum_t  c_id,
const cs_connect_index_t c2v,
const cs_cdo_quantities_t quant,
const double *  array,
cs_real_t val_xc 
)

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

Parameters
[in]c_idcell id
[in]c2vcell -> vertices connectivity
[in]quantpointer to the additional quantities struct.
[in]arraypointer to the array of values
[in,out]val_xcvalue of the reconstruction at the cell center

§ cs_reco_pv_at_face_center()

static void cs_reco_pv_at_face_center ( const cs_face_mesh_t fm,
const double *  p_v,
double *  p_f 
)
inlinestatic

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

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