8.0
general documentation
cs_cdo_field_interpolation.h File Reference
#include "cs_mesh.h"
+ Include dependency graph for cs_cdo_field_interpolation.h:

Go to the source code of this file.

Macros

#define CS_CDO_FIELD_INTERPOLATION_SCALAR_C2V   (1 << 0)
 
#define CS_CDO_FIELD_INTERPOLATION_SCALAR_C2F   (1 << 1)
 

Functions

void cs_cdo_field_interpolation_activate (cs_flag_t mode)
 Activate equation(s) used for the field interpolation Two choices are available which can be combined: CS_CDO_FIELD_INTERPOLATION_SCALAR_C2V CS_CDO_FIELD_INTERPOLATION_SCALAR_C2F. More...
 
void cs_cdo_field_interpolation_cell_to_vertices (const cs_mesh_t *mesh, const cs_real_t *cell_values, cs_real_t *vtx_values)
 Interpolate an array defined at vertices from an array defined at cells. More...
 
void cs_cdo_field_interpolation_cell_to_faces (const cs_mesh_t *mesh, const cs_real_t *cell_values, cs_real_t *face_values)
 Interpolate an array defined at faces from an array defined at cells. More...
 

Function Documentation

◆ cs_cdo_field_interpolation_activate()

void cs_cdo_field_interpolation_activate ( cs_flag_t  mode)

Activate equation(s) used for the field interpolation Two choices are available which can be combined: CS_CDO_FIELD_INTERPOLATION_SCALAR_C2V CS_CDO_FIELD_INTERPOLATION_SCALAR_C2F.

Parameters
[in]modekind of interpolation to perform

◆ cs_cdo_field_interpolation_cell_to_faces()

void cs_cdo_field_interpolation_cell_to_faces ( const cs_mesh_t mesh,
const cs_real_t cell_values,
cs_real_t face_values 
)

Interpolate an array defined at faces from an array defined at cells.

Parameters
[in]meshpointer to a mesh structure
[in]cell_valuesvalues at cells
[in,out]face_valuesinterpolated values at faces

◆ cs_cdo_field_interpolation_cell_to_vertices()

void cs_cdo_field_interpolation_cell_to_vertices ( const cs_mesh_t mesh,
const cs_real_t cell_values,
cs_real_t vtx_values 
)

Interpolate an array defined at vertices from an array defined at cells.

Parameters
[in]meshpointer to a mesh structure
[in]cell_valuesvalues at cells
[in,out]vtx_valuesinterpolated values at vertices