8.1
general documentation
cs_vertex_to_cell.h File Reference
#include "cs_base.h"
+ Include dependency graph for cs_vertex_to_cell.h:

Go to the source code of this file.

Enumerations

enum  cs_vertex_to_cell_type_t { CS_VERTEX_TO_CELL_UNWEIGHTED , CS_VERTEX_TO_CELL_SHEPARD , CS_VERTEX_TO_CELL_LR }
 

Functions

void cs_vertex_to_cell_free (void)
 Free cell to vertex interpolation weights. More...
 
void cs_vertex_to_cell (cs_vertex_to_cell_type_t method, int verbosity, cs_lnum_t var_dim, const cs_real_t v_weight[restrict], const cs_real_t v_var[restrict], cs_real_t c_var[restrict])
 Interpolate vertex values to cell values. More...
 

Variables

const char * cs_vertex_to_cell_type_name []
 

Enumeration Type Documentation

◆ cs_vertex_to_cell_type_t

Enumerator
CS_VERTEX_TO_CELL_UNWEIGHTED 

Uniform (constant) weights

CS_VERTEX_TO_CELL_SHEPARD 

Shepard interpolation (weights by inverse distance)

CS_VERTEX_TO_CELL_LR 

Linear regression (least-squares)

Function Documentation

◆ cs_vertex_to_cell()

void cs_vertex_to_cell ( cs_vertex_to_cell_type_t  method,
int  verbosity,
cs_lnum_t  var_dim,
const cs_real_t  v_weight[restrict],
const cs_real_t  v_var[restrict],
cs_real_t  c_var[restrict] 
)

Interpolate vertex values to cell values.

Parameters
[in]methodinterpolation method
[in]verbosityverbosity level
[in]var_dimvariable dimension
[in]v_weightvertex weight, or NULL
[in]v_varbase vertex-based variable
[out]c_varcell-based variable
[in]methodinterpolation method
[in]verbosityverbosity level
[in]var_dimvariable dimension
[in]ignore_rot_perioif true, ignore periodicity of rotation
[in]v_weightvertex weight, or NULL
[in]v_varbase vertex-based variable
[out]c_varcell-based variable

◆ cs_vertex_to_cell_free()

void cs_vertex_to_cell_free ( void  )

Free cell to vertex interpolation weights.

This will force subsequent calls to rebuild those weights if needed.

Variable Documentation

◆ cs_vertex_to_cell_type_name

const char* cs_vertex_to_cell_type_name[]
extern