8.3
general documentation
cs_face_viscosity.h
Go to the documentation of this file.
1#ifndef __CS_FACE_VISCOSITY_H__
2#define __CS_FACE_VISCOSITY_H__
3
4/*============================================================================
5 * Face viscosity
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2024 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_mesh.h"
37#include "cs_mesh_quantities.h"
38
39/*----------------------------------------------------------------------------*/
40
42
43/*=============================================================================
44 * Local Macro definitions
45 *============================================================================*/
46
47/*============================================================================
48 * Type definition
49 *============================================================================*/
50
51/*============================================================================
52 * Global variables
53 *============================================================================*/
54
55/*============================================================================
56 * Public function prototypes
57 *============================================================================*/
58
59/*----------------------------------------------------------------------------*/
88/*----------------------------------------------------------------------------*/
89
90void
92 cs_real_t secvib[]);
93
94/*----------------------------------------------------------------------------*/
114/*----------------------------------------------------------------------------*/
115
116void
118 const cs_mesh_quantities_t *fvq,
119 const int visc_mean_type,
120 cs_real_t *c_visc,
121 cs_real_t *i_visc,
122 cs_real_t *b_visc);
123
124/*----------------------------------------------------------------------------*/
140/*----------------------------------------------------------------------------*/
141
142void
144 const cs_mesh_quantities_t *fvq,
145 const int visc_mean_type,
146 cs_real_6_t *c_visc,
147 cs_real_33_t *i_visc,
148 cs_real_t *b_visc);
149
150/*----------------------------------------------------------------------------*/
173/*----------------------------------------------------------------------------*/
174
175void
177 const cs_mesh_quantities_t *fvq,
178 cs_real_6_t *c_visc,
179 const int iwarnp,
180 cs_real_2_t *weighf,
181 cs_real_t *weighb,
182 cs_real_t *i_visc,
183 cs_real_t *b_visc);
184
185/*----------------------------------------------------------------------------*/
186
188
189#endif /* __CS_FACE_VISCOSITY_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:358
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:361
#define END_C_DECLS
Definition: cs_defs.h:543
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:368
void cs_face_anisotropic_viscosity_scalar(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, cs_real_6_t *c_visc, const int iwarnp, cs_real_2_t *weighf, cs_real_t *weighb, cs_real_t *i_visc, cs_real_t *b_visc)
Compute the equivalent viscosity at faces for a 3x3 symetric tensor, always using a harmonic mean.
void cs_face_viscosity_secondary(cs_real_t secvif[], cs_real_t secvib[])
Computes the secondary viscosity contribution in order to compute:
Definition: cs_face_viscosity.cpp:141
void cs_face_viscosity(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, const int visc_mean_type, cs_real_t *c_visc, cs_real_t *i_visc, cs_real_t *b_visc)
Compute the diffusion velocity at faces. i_visc,b_visc = viscosity*surface/distance,...
void cs_face_anisotropic_viscosity_vector(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, const int visc_mean_type, cs_real_6_t *c_visc, cs_real_33_t *i_visc, cs_real_t *b_visc)
Compute the equivalent tensor viscosity at faces for a 3x3 symetric tensor.
Definition: cs_mesh_quantities.h:92
Definition: cs_mesh.h:85