8.0
general documentation
cs_gradient_boundary.h
Go to the documentation of this file.
1 #ifndef __CS_GRADIENT_BOUNDARY_H__
2 #define __CS_GRADIENT_BOUNDARY_H__
3 
4 /*============================================================================
5  * Gradient reconstruction at boundaries.
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_base.h"
35 #include "cs_halo.h"
36 #include "cs_internal_coupling.h"
37 #include "cs_mesh.h"
38 #include "cs_mesh_quantities.h"
39 
40 /*----------------------------------------------------------------------------*/
41 
43 
44 /*=============================================================================
45  * Local Macro definitions
46  *============================================================================*/
47 
48 /*============================================================================
49  * Type definition
50  *============================================================================*/
51 
52 /*============================================================================
53  * Global variables
54  *============================================================================*/
55 
56 /*============================================================================
57  * Public function prototypes
58  *============================================================================*/
59 
60 /*----------------------------------------------------------------------------*/
112 /*----------------------------------------------------------------------------*/
113 
114 void
116  const cs_mesh_quantities_t *fvq,
117  const cs_internal_coupling_t *cpl,
118  cs_lnum_t n_faces,
119  const cs_lnum_t *face_ids,
120  cs_halo_type_t halo_type,
121  double clip_coeff,
122  const cs_real_t *bc_coeff_a,
123  const cs_real_t *bc_coeff_b,
124  const cs_real_t c_weight[],
125  const cs_real_t var[],
126  cs_real_t *restrict var_iprime);
127 
128 /*----------------------------------------------------------------------------*/
168 /*----------------------------------------------------------------------------*/
169 
170 void
172  const cs_mesh_quantities_t *fvq,
173  const cs_internal_coupling_t *cpl,
174  cs_lnum_t n_faces,
175  const cs_lnum_t *face_ids,
176  cs_halo_type_t halo_type,
177  double clip_coeff,
178  const cs_real_t *bc_coeff_a[3],
179  const cs_real_t *bc_coeff_b[3][3],
180  const cs_real_t c_weight[],
181  const cs_real_t var[][6],
182  cs_real_t *restrict var_iprime[3]);
183 
184 /*----------------------------------------------------------------------------*/
224 /*----------------------------------------------------------------------------*/
225 
226 void
228  const cs_mesh_quantities_t *fvq,
229  const cs_internal_coupling_t *cpl,
230  cs_lnum_t n_faces,
231  const cs_lnum_t *face_ids,
232  cs_halo_type_t halo_type,
233  double clip_coeff,
234  const cs_real_t *bc_coeff_a[6],
235  const cs_real_t *bc_coeff_b[6][6],
236  const cs_real_t c_weight[],
237  const cs_real_t var[][6],
238  cs_real_t *restrict var_iprime[6]);
239 
240 /*----------------------------------------------------------------------------*/
241 
243 
244 #endif /* __CS_GRADIENT_BOUNDARY__ */
#define restrict
Definition: cs_defs.h:139
#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
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
void cs_gradient_boundary_iprime_lsq_t(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, const cs_internal_coupling_t *cpl, cs_lnum_t n_faces, const cs_lnum_t *face_ids, cs_halo_type_t halo_type, double clip_coeff, const cs_real_t *bc_coeff_a[6], const cs_real_t *bc_coeff_b[6][6], const cs_real_t c_weight[], const cs_real_t var[][6], cs_real_t *restrict var_iprime[6])
Compute the values of a symmetric tensor at boundary face I' positions using least-squares interpolat...
Definition: cs_gradient_boundary.c:1136
void cs_gradient_boundary_iprime_lsq_s(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, const cs_internal_coupling_t *cpl, cs_lnum_t n_faces, const cs_lnum_t *face_ids, cs_halo_type_t halo_type, double clip_coeff, const cs_real_t *bc_coeff_a, const cs_real_t *bc_coeff_b, const cs_real_t c_weight[], const cs_real_t var[], cs_real_t *restrict var_iprime)
Compute the values of a scalar at boundary face I' positions using least-squares interpolation.
Definition: cs_gradient_boundary.c:755
void cs_gradient_boundary_iprime_lsq_v(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, const cs_internal_coupling_t *cpl, cs_lnum_t n_faces, const cs_lnum_t *face_ids, cs_halo_type_t halo_type, double clip_coeff, const cs_real_t *bc_coeff_a[3], const cs_real_t *bc_coeff_b[3][3], const cs_real_t c_weight[], const cs_real_t var[][6], cs_real_t *restrict var_iprime[3])
Compute the values of a vector at boundary face I' positions using least-squares interpolation.
Definition: cs_gradient_boundary.c:1065
cs_halo_type_t
Definition: cs_halo.h:56
Definition: cs_internal_coupling.h:62
Definition: cs_mesh_quantities.h:92
Definition: cs_mesh.h:85