8.2
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 
69 void
71  const cs_cdo_connect_t *connect,
72  const cs_cdo_quantities_t *quant);
73 
74 /*----------------------------------------------------------------------------*/
84 /*----------------------------------------------------------------------------*/
85 
86 void
88  const cs_param_saddle_t *saddlep,
90 
91 /*----------------------------------------------------------------------------*/
101 /*----------------------------------------------------------------------------*/
102 
103 void
105  const cs_param_saddle_t *saddlep,
107 
108 /*----------------------------------------------------------------------------*/
119 /*----------------------------------------------------------------------------*/
120 
121 void
123  void *context);
124 
125 /*----------------------------------------------------------------------------*/
139 /*----------------------------------------------------------------------------*/
140 
141 int
143  cs_saddle_solver_t *solver,
144  cs_real_t *u_f,
145  cs_real_t *p_c);
146 
147 /*----------------------------------------------------------------------------*/
162 /*----------------------------------------------------------------------------*/
163 
164 int
166  cs_saddle_solver_t *solver,
167  cs_real_t *u_f,
168  cs_real_t *p_c);
169 
170 /*----------------------------------------------------------------------------*/
186 /*----------------------------------------------------------------------------*/
187 
188 int
190  cs_saddle_solver_t *solver,
191  cs_real_t *u_f,
192  cs_real_t *p_c);
193 
194 /*----------------------------------------------------------------------------*/
208 /*----------------------------------------------------------------------------*/
209 
210 int
212  cs_saddle_solver_t *solver,
213  cs_real_t *u_f,
214  cs_real_t *p_c);
215 
216 /*----------------------------------------------------------------------------*/
232 /*----------------------------------------------------------------------------*/
233 
234 int
236  cs_saddle_solver_t *solver,
237  cs_real_t *u_f,
238  cs_real_t *p_c);
239 
240 /*----------------------------------------------------------------------------*/
254 /*----------------------------------------------------------------------------*/
255 
256 int
258  cs_saddle_solver_t *solver,
259  cs_real_t *u_f,
260  cs_real_t *p_c);
261 
262 /*----------------------------------------------------------------------------*/
263 
265 
266 #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.c:1030
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.c:1407
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.c:1574
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.c:1498
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.c:704
void cs_cdofb_monolithic_set_sles(cs_navsto_param_t *nsp, void *context)
Start setting-up the Navier-Stokes equations when a monolithic algorithm is used to couple the system...
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.c:680
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.c:1118
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.c:1328
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.c:873
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
#define END_C_DECLS
Definition: cs_defs.h:529
Definition: mesh.f90:26
Definition: cs_cdo_connect.h:61
Definition: cs_cdo_quantities.h:137
Definition: cs_mesh.h:85
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:262
Structure storing all metadata related to the resolution of a saddle-point linear system....
Definition: cs_param_saddle.h:272
Definition: cs_saddle_solver.h:88