programmer's documentation
cs_cdofb_uzawa.h
Go to the documentation of this file.
1 #ifndef __CS_CDOFB_UZAWA_H__
2 #define __CS_CDOFB_UZAWA_H__
3 
4 /*============================================================================
5  * Build an algebraic CDO face-based system for the Navier-Stokes equations
6  * and solved it with an Augmented Lagrangian-Uzawa algorithm
7  *============================================================================*/
8 
9 /*
10  This file is part of Code_Saturne, a general-purpose CFD tool.
11 
12  Copyright (C) 1998-2018 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 
41 #include "cs_base.h"
42 #include "cs_cdo_connect.h"
43 #include "cs_cdo_quantities.h"
44 #include "cs_equation_common.h"
45 #include "cs_equation_param.h"
46 #include "cs_field.h"
47 #include "cs_matrix.h"
48 #include "cs_mesh.h"
49 #include "cs_navsto_coupling.h"
50 #include "cs_navsto_param.h"
51 #include "cs_source_term.h"
52 #include "cs_time_step.h"
53 
54 /*----------------------------------------------------------------------------*/
55 
57 
58 /*============================================================================
59  * Macro definitions
60  *============================================================================*/
61 
62 /*============================================================================
63  * Type definitions
64  *============================================================================*/
65 
66 /*============================================================================
67  * Public function prototypes
68  *============================================================================*/
69 
70 /*----------------------------------------------------------------------------*/
78 /*----------------------------------------------------------------------------*/
79 
80 void
82  const cs_cdo_connect_t *connect,
83  const cs_time_step_t *time_step);
84 
85 /*----------------------------------------------------------------------------*/
94 /*----------------------------------------------------------------------------*/
95 
96 void *
98  void *nsc_input);
99 
100 /*----------------------------------------------------------------------------*/
108 /*----------------------------------------------------------------------------*/
109 
110 void *
111 cs_cdofb_uzawa_free_scheme_context(void *scheme_context);
112 
113 /*----------------------------------------------------------------------------*/
120 /*----------------------------------------------------------------------------*/
121 
122 void
124  void *scheme_context);
125 
126 /*----------------------------------------------------------------------------*/
133 /*----------------------------------------------------------------------------*/
134 
135 void
137  void *scheme_context);
138 
139 /*----------------------------------------------------------------------------*/
149 /*----------------------------------------------------------------------------*/
150 
151 void
153  const cs_navsto_param_t *nsp,
154  double dt_cur,
155  void *scheme_context);
156 
157 /*----------------------------------------------------------------------------*/
165 /*----------------------------------------------------------------------------*/
166 
167 cs_real_t *
168 cs_cdofb_uzawa_get_face_velocity(void *scheme_context);
169 
170 /*----------------------------------------------------------------------------*/
171 
173 
174 #endif /* __CS_CDOFB_UZAWA_H__ */
void * cs_cdofb_uzawa_free_scheme_context(void *scheme_context)
Destroy a cs_cdofb_uzawa_t structure.
Definition: cs_cdofb_uzawa.c:1033
time step descriptor
Definition: cs_time_step.h:51
#define BEGIN_C_DECLS
Definition: cs_defs.h:462
void cs_cdofb_uzawa_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_uzawa.c:956
Definition: cs_cdo_connect.h:74
void cs_cdofb_uzawa_init_velocity(const cs_navsto_param_t *nsp, void *scheme_context)
Initialize the velocity values.
Definition: cs_cdofb_uzawa.c:1056
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:141
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
Definition: cs_cdo_quantities.h:94
Definition: cs_mesh.h:63
void cs_cdofb_uzawa_init_pressure(const cs_navsto_param_t *nsp, void *scheme_context)
Initialize the pressure values.
Definition: cs_cdofb_uzawa.c:1076
void * cs_cdofb_uzawa_init_scheme_context(const cs_navsto_param_t *nsp, void *nsc_input)
Initialize a cs_cdofb_uzawa_t structure.
Definition: cs_cdofb_uzawa.c:988
cs_real_t * cs_cdofb_uzawa_get_face_velocity(void *scheme_context)
Retrieve the values of the velocity on the faces.
Definition: cs_cdofb_uzawa.c:1424
void cs_cdofb_uzawa_compute(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, double dt_cur, void *scheme_context)
Solve the Navier-Stokes system with a CDO face-based scheme using a Uzawa-Lagrangian Augmented approa...
Definition: cs_cdofb_uzawa.c:1173
#define END_C_DECLS
Definition: cs_defs.h:463
Structure and routines handling the specific settings related to a cs_equation_t structure.
Routines to handle structures used as a context when solving the Navier-Stokes equations. Structures are cast on-the-fly according to the type of coupling. Routines to handle the settings of coupling algorithms.
Definition: mesh.f90:26