9.2
general documentation
cs_cdofb_predco.h
Go to the documentation of this file.
1#ifndef CS_CDOFB_PREDCO_H
2#define CS_CDOFB_PREDCO_H
3
4/*============================================================================
5 * Build an algebraic CDO face-based system for the Navier-Stokes equations
6 * and solved it with a prediction-correction algorithm
7 *============================================================================*/
8
9/*
10 This file is part of code_saturne, a general-purpose CFD tool.
11
12 Copyright (C) 1998-2026 EDF S.A.
13
14 This program is free software; you can redistribute it and/or modify it under
15 the terms of the GNU General Public License as published by the Free Software
16 Foundation; either version 2 of the License, or (at your option) any later
17 version.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
22 details.
23
24 You should have received a copy of the GNU General Public License along with
25 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
26 Street, Fifth Floor, Boston, MA 02110-1301, USA.
27*/
28
29/*----------------------------------------------------------------------------*/
30
31#include "base/cs_defs.h"
32
33/*----------------------------------------------------------------------------
34 * Standard C library headers
35 *----------------------------------------------------------------------------*/
36
37/*----------------------------------------------------------------------------
38 * Local headers
39 *----------------------------------------------------------------------------*/
40
41#include "base/cs_base.h"
42#include "base/cs_time_step.h"
43#include "cdo/cs_cdo_connect.h"
45#include "cdo/cs_equation.h"
48#include "cdo/cs_navsto_param.h"
49#include "cdo/cs_source_term.h"
50#include "mesh/cs_mesh.h"
51
52/*============================================================================
53 * Macro definitions
54 *============================================================================*/
55
56/*============================================================================
57 * Type definitions
58 *============================================================================*/
59
66
67/*============================================================================
68 * Public function prototypes
69 *============================================================================*/
70
71/*----------------------------------------------------------------------------*/
79/*----------------------------------------------------------------------------*/
80
81void
83 const cs_cdo_connect_t *connect,
84 const cs_time_step_t *time_step);
85
86/*----------------------------------------------------------------------------*/
99/*----------------------------------------------------------------------------*/
100
103 cs_adv_field_t *adv_field,
104 cs_real_t *mflux,
105 cs_real_t *mflux_pre,
106 cs_boundary_type_t *fb_type,
107 void *nsc_input);
108
109/*----------------------------------------------------------------------------*/
117/*----------------------------------------------------------------------------*/
118
119void *
121
122/*----------------------------------------------------------------------------*/
131/*----------------------------------------------------------------------------*/
132
133void
135 const cs_navsto_param_t *nsp,
137
138#endif /* CS_CDOFB_PREDCO_H */
time step descriptor
Definition: cs_time_step.h:60
int cs_boundary_type_t
Definition: cs_boundary.h:65
cs::cdo_navsto_ctx_t * cs_cdofb_predco_init_scheme_context(const cs_navsto_param_t *nsp, cs_adv_field_t *adv_field, cs_real_t *mflux, cs_real_t *mflux_pre, cs_boundary_type_t *fb_type, void *nsc_input)
Initialize a cs_cdofb_predco_t structure.
Definition: cs_cdofb_predco.cpp:620
void * cs_cdofb_predco_free_scheme_context(cs_cdofb_predco_t *sc)
Destroy a cs_cdofb_predco_t structure.
Definition: cs_cdofb_predco.cpp:741
void cs_cdofb_predco_init_common(const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, const cs_time_step_t *time_step)
Set shared pointers from the main domain members.
Definition: cs_cdofb_predco.cpp:593
void cs_cdofb_predco_compute_implicit(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, cs_cdofb_predco_t *sc)
Solve the unsteady Navier-Stokes system with a CDO face-based scheme using a Artificial Compressibili...
Definition: cs_cdofb_predco.cpp:772
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
Definition: mesh.f90:26
Context related to CDO face-based discretization when dealing with Navier-Stokes equations and vector...
Definition: cs_navsto_context.h:48
Context related to CDO face-based discretization when dealing with Navier-Stokes equations with a pre...
Definition: cs_navsto_context.h:202
Definition: cs_advection_field.h:151
Definition: cs_cdo_connect.h:57
Definition: cs_cdo_quantities.h:142
Context related to CDO face-based discretization when dealing with Navier-Stokes equations with a pre...
Definition: cs_mesh.h:85
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:296