9.2
general documentation
cs_solve_navier_stokes.h
Go to the documentation of this file.
1#ifndef CS_SOLVE_NAVIER_STOKES_H
2#define CS_SOLVE_NAVIER_STOKES_H
3
4/*============================================================================
5 * Solve the Navier-Stokes equations.
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 * Standard C library headers
32 *----------------------------------------------------------------------------*/
33
34/*----------------------------------------------------------------------------
35 * Local headers
36 *----------------------------------------------------------------------------*/
37
38#include "base/cs_defs.h"
39
40/*============================================================================
41 * Macro definitions
42 *============================================================================*/
43
44/*============================================================================
45 * Local type definitions
46 *============================================================================*/
47
48/*=============================================================================
49 * Global variables
50 *============================================================================*/
51
52/*============================================================================
53 * Public function prototypes
54 *============================================================================*/
55
56/*----------------------------------------------------------------------------*/
57/*
58 * \brief Update total pressure (defined as a post-processed property).
59 *
60 * For the compressible module, the solved pressure is already
61 * the total pressure.
62 *
63 * Note: for Eddy Viscosity Models, the TKE may be included in the
64 * solved pressure.
65 *
66 * \param[in] m pointer to mesh structure
67 * \param[in] mq pointer to mesh quantities structure
68 * \param[in] fp pointer to fluid properties structure
69 * \param[in] gxyz_h gravity (on host)
70 */
71/*----------------------------------------------------------------------------*/
72
73void
75 (const cs_mesh_t *m,
76 const cs_mesh_quantities_t *mq,
77 const cs_fluid_properties_t *fp,
78 const cs_real_t gxyz_h[3]);
79
80/*----------------------------------------------------------------------------*/
81/*
82 * \brief Solve Navier-Stokes equations for incompressible or slightly
83 * compressible flows for one time step. Both convection-diffusion
84 * and continuity steps are performed.
85 *
86 * \param[in] iterns index of the iteration on Navier-Stokes
87 * \param[in] icvrge convergence indicator
88 * \param[in] itrale number of the current ALE iteration
89 * \param[in] isostd indicator of standard outlet
90 * \param[in] ckupdc head loss coefficients, if present
91 * \param[in, out] trava working array for velocity-pressure coupling
92 */
93/*----------------------------------------------------------------------------*/
94
95void
96cs_solve_navier_stokes(const int iterns,
97 int *icvrge,
98 const int itrale,
99 const int isostd[],
100 const cs_real_t ckupdc[][6],
101 cs_real_3_t *trava);
102
103/*----------------------------------------------------------------------------*/
104
105#endif /* CS_SOLVE_NAVIER_STOKES_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349
void cs_solve_navier_stokes_update_total_pressure(const cs_mesh_t *m, const cs_mesh_quantities_t *mq, const cs_fluid_properties_t *fp, const cs_real_t gxyz_h[3])
Update total pressure (defined as a post-processed property).
Definition: cs_solve_navier_stokes.cpp:3589
void cs_solve_navier_stokes(const int iterns, int *icvrge, const int itrale, const int isostd[], const cs_real_t ckupdc[][6], cs_real_3_t *trava)
Solve Navier-Stokes equations for incompressible or slightly compressible flows for one time step....
Definition: cs_solve_navier_stokes.cpp:3682
Fluid properties descriptor.
Definition: cs_physical_constants.h:61
Definition: cs_mesh_quantities.h:88
Definition: cs_mesh.h:85