9.2
general documentation
cs_navsto_context.h
Go to the documentation of this file.
1#ifndef CS_NAVSTO_CONTEXT_H
2#define CS_NAVSTO_CONTEXT_H
3
4/*============================================================================
5 * Functions to handle cs_navsto_system_t structure
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 * Local headers
30 *----------------------------------------------------------------------------*/
31
32#include "base/cs_field.h"
33#include "cdo/cs_equation_bc.h"
34#include "cdo/cs_iter_algo.h"
36
37namespace cs {
38
39/*=============================================================================
40 * Structure definitions
41 *============================================================================*/
42
60
67
74
86
92
98
111
120
142
156
159 /*----------------------------------------------------------------------------*/
168 /*----------------------------------------------------------------------------*/
169
170 cs_real_t *
171 get_mass_flux(bool previous) const
172 {
173 cs_real_t *mass_flux = mass_flux_array;
174 if (previous)
175 mass_flux = mass_flux_array_pre;
176
177 return mass_flux;
178 }
179};
180
195};
196
211
223
225};
226
241
255
269
271};
272
273/*============================================================================
274 * Public function prototypes
275 *============================================================================*/
276
277} // end namespace cs
278
279#endif /* CS_NAVSTO_CONTEXT_H */
Field descriptor.
Definition: cs_field.h:275
int cs_boundary_type_t
Definition: cs_boundary.h:65
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
void() cs_cdo_apply_boundary_t(short int f, const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *pty, cs_cell_builder_t *cb, cs_cell_sys_t *csys)
Apply a boundary condition for a given face (inlet, outlet, wall, sliding wall, symmetry....
Definition: cs_equation_bc.h:65
Definition: cs_algorithm.h:51
Definition: cs_navsto_context.h:233
bool is_zeta_uniform
Definition: cs_navsto_context.h:254
cs_navsto_ac_t * coupling_context
Definition: cs_navsto_context.h:240
cs_iter_algo_t * nl_algo
Definition: cs_navsto_context.h:268
Context related to CDO face-based discretization when dealing with Navier-Stokes equations and vector...
Definition: cs_navsto_context.h:48
cs_cdo_apply_boundary_t * apply_symmetry
Definition: cs_navsto_context.h:141
cs_real_t * mass_flux_array
Definition: cs_navsto_context.h:91
cs_real_t * get_mass_flux(bool previous) const
Retrieve the mass flux array related to the Navier-Stokes system.
Definition: cs_navsto_context.h:171
cs_field_t * pressure
Definition: cs_navsto_context.h:66
cs_adv_field_t * adv_field
Definition: cs_navsto_context.h:85
cs_cdo_apply_boundary_t * apply_sliding_wall
Definition: cs_navsto_context.h:139
cs_cdo_bc_face_t * pressure_bc
Definition: cs_navsto_context.h:118
cs_cdo_apply_boundary_t * apply_fixed_wall
Definition: cs_navsto_context.h:138
cs_timer_counter_t timer
Definition: cs_navsto_context.h:155
cs_real_t * mass_flux_array_pre
Definition: cs_navsto_context.h:97
int pressure_rescaling
Definition: cs_navsto_context.h:119
const cs_boundary_type_t * bf_type
Definition: cs_navsto_context.h:110
cs_field_t * velocity
Definition: cs_navsto_context.h:59
cs_cdo_apply_boundary_t * apply_velocity_inlet
Definition: cs_navsto_context.h:140
cs_field_t * divergence
Definition: cs_navsto_context.h:73
Context related to CDO face-based discretization when dealing with Navier-Stokes equations and vector...
Definition: cs_navsto_context.h:187
cs_navsto_monolithic_t * coupling_context
Definition: cs_navsto_context.h:194
Context related to CDO face-based discretization when dealing with Navier-Stokes equations with a pre...
Definition: cs_navsto_context.h:202
cs_navsto_projection_t * coupling_context
Definition: cs_navsto_context.h:210
cs_real_t * predicted_velocity_f
Definition: cs_navsto_context.h:222
Definition: cs_advection_field.h:151
Definition: cs_cdo_bc.h:105
Structure to handle the convergence of an iterative algorithm.
Definition: cs_iter_algo.h:285
Set of parameters specific for solving the Navier-Stokes system with the "artificial compressibility"...
Definition: cs_navsto_coupling.h:58
Set of parameters specific for solving the Navier-Stokes system with a fully coupled monolithic algor...
Definition: cs_navsto_coupling.h:77
Set of parameters specific for solving the Navier-Stokes system with an incremental projection algori...
Definition: cs_navsto_coupling.h:91
Definition: cs_timer.h:51