9.2
general documentation
cs_cdo_field_interpolation.h
Go to the documentation of this file.
1#ifndef CS_CDO_FIELD_INTERPOLATION_H
2#define CS_CDO_FIELD_INTERPOLATION_H
3
4/*============================================================================
5 * Functions to handle field interpolation with CDO schemes
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2026 EDF S.A.
12
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License as published by the Free Software
15 Foundation; either version 2 of the License, or (at your option) any later
16 version.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21 details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25 Street, Fifth Floor, Boston, MA 02110-1301, USA.
26*/
27
28/*----------------------------------------------------------------------------*/
29
30/*----------------------------------------------------------------------------
31 * Local headers
32 *----------------------------------------------------------------------------*/
33
34#include "mesh/cs_mesh.h"
35
36/*============================================================================
37 * Macro definitions
38 *============================================================================*/
39
52#define CS_CDO_FIELD_INTERPOLATION_SCALAR_C2V (1 << 0)
53
59#define CS_CDO_FIELD_INTERPOLATION_SCALAR_C2F (1 << 1)
60
63/*============================================================================
64 * Public function prototypes
65 *============================================================================*/
66
67/*----------------------------------------------------------------------------*/
76/*----------------------------------------------------------------------------*/
77
78void
80
81/*----------------------------------------------------------------------------*/
90/*----------------------------------------------------------------------------*/
91
92void
94 const cs_real_t *cell_values,
95 cs_real_t *vtx_values);
96
97/*----------------------------------------------------------------------------*/
106/*----------------------------------------------------------------------------*/
107
108void
110 const cs_real_t *cell_values,
111 cs_real_t *face_values);
112
113#endif /* CS_CDO_FIELD_INTERPOLATION_H */
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.
Definition: cs_cdo_field_interpolation.cpp:228
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.
Definition: cs_cdo_field_interpolation.cpp:177
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...
Definition: cs_cdo_field_interpolation.cpp:100
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
unsigned short int cs_flag_t
Definition: cs_defs.h:334
Definition: mesh.f90:26
Definition: cs_mesh.h:85