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