8.3
general documentation
cs_cdofb_monolithic_sles.h
Go to the documentation of this file.
1#ifndef __CS_CDOFB_MONOLITHIC_SLES_H__
2#define __CS_CDOFB_MONOLITHIC_SLES_H__
3
4/*============================================================================
5 * Functions dedicated to the linear algebra settings and operations in case
6 * of CDO face-based schemes with a monolithic velocity-pressure coupling
7 *============================================================================*/
8
9/*
10 This file is part of code_saturne, a general-purpose CFD tool.
11
12 Copyright (C) 1998-2024 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 "cs_defs.h"
32
33/*----------------------------------------------------------------------------
34 * Standard C library headers
35 *----------------------------------------------------------------------------*/
36
37/*----------------------------------------------------------------------------
38 * Local headers
39 *----------------------------------------------------------------------------*/
40
42
43/*----------------------------------------------------------------------------*/
44
46
47/*============================================================================
48 * Macro definitions
49 *============================================================================*/
50
51/*============================================================================
52 * Type definitions
53 *============================================================================*/
54
55/*============================================================================
56 * Public function prototypes
57 *============================================================================*/
58
59/*----------------------------------------------------------------------------*/
67/*----------------------------------------------------------------------------*/
68
69void
71 const cs_cdo_connect_t *connect,
72 const cs_cdo_quantities_t *quant);
73
74/*----------------------------------------------------------------------------*/
84/*----------------------------------------------------------------------------*/
85
86void
88 const cs_param_saddle_t *saddlep,
90
91/*----------------------------------------------------------------------------*/
101/*----------------------------------------------------------------------------*/
102
103void
105 const cs_param_saddle_t *saddlep,
107
108/*----------------------------------------------------------------------------*/
122/*----------------------------------------------------------------------------*/
123
124int
126 cs_saddle_solver_t *solver,
127 cs_real_t *u_f,
128 cs_real_t *p_c);
129
130/*----------------------------------------------------------------------------*/
145/*----------------------------------------------------------------------------*/
146
147int
149 cs_saddle_solver_t *solver,
150 cs_real_t *u_f,
151 cs_real_t *p_c);
152
153/*----------------------------------------------------------------------------*/
169/*----------------------------------------------------------------------------*/
170
171int
173 cs_saddle_solver_t *solver,
174 cs_real_t *u_f,
175 cs_real_t *p_c);
176
177/*----------------------------------------------------------------------------*/
191/*----------------------------------------------------------------------------*/
192
193int
195 cs_saddle_solver_t *solver,
196 cs_real_t *u_f,
197 cs_real_t *p_c);
198
199/*----------------------------------------------------------------------------*/
215/*----------------------------------------------------------------------------*/
216
217int
219 cs_saddle_solver_t *solver,
220 cs_real_t *u_f,
221 cs_real_t *p_c);
222
223/*----------------------------------------------------------------------------*/
237/*----------------------------------------------------------------------------*/
238
239int
241 cs_saddle_solver_t *solver,
242 cs_real_t *u_f,
243 cs_real_t *p_c);
244
245/*----------------------------------------------------------------------------*/
259/*----------------------------------------------------------------------------*/
260
261int
263 cs_saddle_solver_t *solver,
264 cs_real_t *u_f,
265 cs_real_t *p_c);
266
267/*----------------------------------------------------------------------------*/
268
270
271#endif /* __CS_CDOFB_MONOLITHIC_SLES_H__ */
Structures and function pointers useful to build and solve the Navier-Stokes equations with face-base...
struct _cdofb_monolithic_t cs_cdofb_monolithic_t
Definition: cs_cdofb_monolithic_priv.h:76
int cs_cdofb_monolithic_sles_alu(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation using a monolithi...
Definition: cs_cdofb_monolithic_sles.cpp:1102
int cs_cdofb_monolithic_sles_gkb_inhouse(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation using a monolithi...
Definition: cs_cdofb_monolithic_sles.cpp:1519
int cs_cdofb_monolithic_sles_uzawa_cg(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation using a monolithi...
Definition: cs_cdofb_monolithic_sles.cpp:1693
int cs_cdofb_monolithic_sles_notay(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation using a monolithi...
Definition: cs_cdofb_monolithic_sles.cpp:1616
void cs_cdofb_monolithic_sles_init_system_helper(const cs_navsto_param_t *nsp, const cs_param_saddle_t *saddlep, cs_cdofb_monolithic_t *sc)
Define the system helper for a CDO-Fb scheme solving the Navier-Stokes equation using a monolithic ap...
Definition: cs_cdofb_monolithic_sles.cpp:747
void cs_cdofb_monolithic_sles_init_sharing(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Set pointers to shared structures.
Definition: cs_cdofb_monolithic_sles.cpp:723
int cs_cdofb_monolithic_sles_block_krylov(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation with a CDO face-b...
Definition: cs_cdofb_monolithic_sles.cpp:1192
int cs_cdofb_monolithic_sles_simple(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation using a monolithi...
Definition: cs_cdofb_monolithic_sles.cpp:1884
int cs_cdofb_monolithic_sles_full_system(const cs_navsto_param_t *nsp, cs_saddle_solver_t *solver, cs_real_t *u_f, cs_real_t *p_c)
Solve a linear system arising from the discretization of the Navier-Stokes equation with a CDO face-b...
Definition: cs_cdofb_monolithic_sles.cpp:1439
void cs_cdofb_monolithic_sles_init_solver(const cs_navsto_param_t *nsp, const cs_param_saddle_t *saddlep, cs_cdofb_monolithic_t *sc)
Define the saddle solver and its context for a CDO-Fb scheme solving the Navier-Stokes equation using...
Definition: cs_cdofb_monolithic_sles.cpp:920
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
#define END_C_DECLS
Definition: cs_defs.h:543
Definition: mesh.f90:26
Definition: cs_cdo_connect.h:61
Definition: cs_cdo_quantities.h:139
Definition: cs_mesh.h:85
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:263
Structure storing all metadata related to the resolution of a saddle-point linear system....
Definition: cs_param_saddle.h:273
Definition: cs_saddle_solver.h:88