8.0
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-2023 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 "cs_mesh.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*============================================================================
41  * Macro definitions
42  *============================================================================*/
43 
56 #define CS_CDO_FIELD_INTERPOLATION_SCALAR_C2V (1 << 0)
57 
63 #define CS_CDO_FIELD_INTERPOLATION_SCALAR_C2F (1 << 1)
64 
67 /*============================================================================
68  * Public function prototypes
69  *============================================================================*/
70 
71 /*----------------------------------------------------------------------------*/
80 /*----------------------------------------------------------------------------*/
81 
82 void
84 
85 /*----------------------------------------------------------------------------*/
94 /*----------------------------------------------------------------------------*/
95 
96 void
98  const cs_real_t *cell_values,
99  cs_real_t *vtx_values);
100 
101 /*----------------------------------------------------------------------------*/
110 /*----------------------------------------------------------------------------*/
111 
112 void
114  const cs_real_t *cell_values,
115  cs_real_t *face_values);
116 
117 /*----------------------------------------------------------------------------*/
118 
120 
121 #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.c:232
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.c:181
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.c:104
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:510
unsigned short int cs_flag_t
Definition: cs_defs.h:321
Definition: mesh.f90:26
Definition: cs_mesh.h:85