8.0
general documentation
Loading...
Searching...
No Matches
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-2023 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/*----------------------------------------------------------------------------*/
68/*----------------------------------------------------------------------------*/
69
72 cs_lnum_t n_cells);
73
74/*----------------------------------------------------------------------------*/
80/*----------------------------------------------------------------------------*/
81
82void
84
85/*----------------------------------------------------------------------------*/
91/*----------------------------------------------------------------------------*/
92
93void
95
96/*----------------------------------------------------------------------------*/
104/*----------------------------------------------------------------------------*/
105
106void
108 const cs_cdo_connect_t *connect,
109 const cs_cdo_quantities_t *quant);
110
111/*----------------------------------------------------------------------------*/
116/*----------------------------------------------------------------------------*/
117
118void
120
121/*----------------------------------------------------------------------------*/
132/*----------------------------------------------------------------------------*/
133
134void
136 void *context);
137
138/*----------------------------------------------------------------------------*/
153/*----------------------------------------------------------------------------*/
154
155int
157 const cs_equation_param_t *eqp,
158 const cs_cdo_system_helper_t *sh,
159 cs_param_sles_t *slesp,
161
162/*----------------------------------------------------------------------------*/
178/*----------------------------------------------------------------------------*/
179
180int
182 const cs_equation_param_t *eqp,
183 const cs_cdo_system_helper_t *sh,
184 cs_param_sles_t *slesp,
186
187/*----------------------------------------------------------------------------*/
201/*----------------------------------------------------------------------------*/
202
203int
205 const cs_equation_param_t *eqp,
206 const cs_cdo_system_helper_t *sh,
207 cs_param_sles_t *slesp,
209
210/*----------------------------------------------------------------------------*/
227/*----------------------------------------------------------------------------*/
228
229int
231 const cs_equation_param_t *eqp,
232 const cs_cdo_system_helper_t *sh,
233 cs_param_sles_t *slesp,
235
236/*----------------------------------------------------------------------------*/
251/*----------------------------------------------------------------------------*/
252
253int
255 const cs_equation_param_t *eqp,
256 const cs_cdo_system_helper_t *sh,
257 cs_param_sles_t *slesp,
259
260/*----------------------------------------------------------------------------*/
261
263
264#endif /* __CS_CDOFB_MONOLITHIC_SLES_H__ */
Structures and function pointers useful to build and solve the Navier-Stokes equations with face-base...
cs_cdofb_monolithic_sles_t * cs_cdofb_monolithic_sles_create(cs_lnum_t n_faces, cs_lnum_t n_cells)
Create an empty cs_cdofb_monolithic_sles_t structure.
Definition cs_cdofb_monolithic_sles.c:3991
void cs_cdofb_monolithic_sles_clean(cs_cdofb_monolithic_sles_t *msles)
Free a part of the structure.
Definition cs_cdofb_monolithic_sles.c:4023
int cs_cdofb_monolithic_uzawa_cg_solve(const cs_navsto_param_t *nsp, const cs_equation_param_t *eqp, const cs_cdo_system_helper_t *sh, cs_param_sles_t *slesp, cs_cdofb_monolithic_sles_t *msles)
Use the preconditioned Uzawa-CG algorithm to solve the saddle-point problem arising from CDO-Fb schem...
Definition cs_cdofb_monolithic_sles.c:4954
int cs_cdofb_monolithic_solve(const cs_navsto_param_t *nsp, const cs_equation_param_t *eqp, const cs_cdo_system_helper_t *sh, cs_param_sles_t *slesp, cs_cdofb_monolithic_sles_t *msles)
Solve a linear system arising from the discretization of the Navier-Stokes equation with a CDO face-b...
Definition cs_cdofb_monolithic_sles.c:4363
int cs_cdofb_monolithic_uzawa_al_incr_solve(const cs_navsto_param_t *nsp, const cs_equation_param_t *eqp, const cs_cdo_system_helper_t *sh, cs_param_sles_t *slesp, cs_cdofb_monolithic_sles_t *msles)
Use the Uzawa algorithm with an Augmented Lagrangian (ALU) technique in an incremental way to solve t...
Definition cs_cdofb_monolithic_sles.c:5297
void cs_cdofb_monolithic_sles_finalize(void)
Free if needed structure(s) associated CDO face-based schemes with a monolithic velocity-pressure cou...
Definition cs_cdofb_monolithic_sles.c:4088
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...
Definition cs_cdofb_monolithic_sles.c:4108
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:4069
void cs_cdofb_monolithic_sles_free(cs_cdofb_monolithic_sles_t **p_msles)
Free memory related to cs_cdofb_monolithic_sles_t structure.
Definition cs_cdofb_monolithic_sles.c:4041
int cs_cdofb_monolithic_gkb_solve(const cs_navsto_param_t *nsp, const cs_equation_param_t *eqp, const cs_cdo_system_helper_t *sh, cs_param_sles_t *slesp, cs_cdofb_monolithic_sles_t *msles)
Use the GKB algorithm to solve the saddle-point problem arising from CDO-Fb schemes for Stokes and Na...
Definition cs_cdofb_monolithic_sles.c:4783
int cs_cdofb_monolithic_block_krylov(const cs_navsto_param_t *nsp, const cs_equation_param_t *eqp, const cs_cdo_system_helper_t *sh, cs_param_sles_t *slesp, cs_cdofb_monolithic_sles_t *msles)
Solve a linear system arising from the discretization of the Navier-Stokes equation with a CDO face-b...
Definition cs_cdofb_monolithic_sles.c:4572
#define BEGIN_C_DECLS
Definition cs_defs.h:509
#define END_C_DECLS
Definition cs_defs.h:510
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:313
Definition mesh.f90:26
Definition cs_cdo_connect.h:61
Definition cs_cdo_quantities.h:137
Definition cs_cdo_system.h:377
Definition cs_cdofb_monolithic_priv.h:77
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources.
Definition cs_equation_param.h:192
Definition cs_mesh.h:85
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition cs_navsto_param.h:611
Structure storing all metadata related to the resolution of a linear system with an iterative solver.
Definition cs_param_sles.h:91