My Project
programmer's documentation
cs_cdofb_monolithic.h
Go to the documentation of this file.
1 #ifndef __CS_CDOFB_MONOLITHIC_H__
2 #define __CS_CDOFB_MONOLITHIC_H__
3 
4 /*============================================================================
5  * Build an algebraic CDO face-based system for the Navier-Stokes equations
6  * and solved it with a monolithic algorithm
7  *============================================================================*/
8 
9 /*
10  This file is part of Code_Saturne, a general-purpose CFD tool.
11 
12  Copyright (C) 1998-2019 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.h"
45 #include "cs_mesh.h"
46 #include "cs_navsto_param.h"
47 #include "cs_time_step.h"
48 
49 /*----------------------------------------------------------------------------*/
50 
52 
53 /*============================================================================
54  * Macro definitions
55  *============================================================================*/
56 
57 /*============================================================================
58  * Type definitions
59  *============================================================================*/
60 
61 /*============================================================================
62  * Static inline public function prototypes
63  *============================================================================*/
64 
65 /*----------------------------------------------------------------------------*/
73 /*----------------------------------------------------------------------------*/
74 
75 inline static cs_real_t *
77 {
78  CS_UNUSED(scheme_context);
79 
81 }
82 
83 /*============================================================================
84  * Public function prototypes
85  *============================================================================*/
86 
87 /*----------------------------------------------------------------------------*/
96 /*----------------------------------------------------------------------------*/
97 
98 void
100  const cs_cdo_quantities_t *quant,
101  const cs_cdo_connect_t *connect,
102  const cs_time_step_t *time_step);
103 
104 /*----------------------------------------------------------------------------*/
114 /*----------------------------------------------------------------------------*/
115 
116 void *
118  cs_boundary_type_t *fb_type,
119  void *nsc_input);
120 
121 /*----------------------------------------------------------------------------*/
129 /*----------------------------------------------------------------------------*/
130 
131 void *
132 cs_cdofb_monolithic_free_scheme_context(void *scheme_context);
133 
134 /*----------------------------------------------------------------------------*/
143 /*----------------------------------------------------------------------------*/
144 
145 void
147  void *context);
148 
149 /*----------------------------------------------------------------------------*/
158 /*----------------------------------------------------------------------------*/
159 
160 void
162  const cs_navsto_param_t *nsp,
163  void *scheme_context);
164 
165 /*----------------------------------------------------------------------------*/
174 /*----------------------------------------------------------------------------*/
175 
176 void
178  const cs_navsto_param_t *nsp,
179  void *scheme_context);
180 
181 /*----------------------------------------------------------------------------*/
190 /*----------------------------------------------------------------------------*/
191 
192 void
194  const cs_navsto_param_t *nsp,
195  void *scheme_context);
196 
197 /*----------------------------------------------------------------------------*/
198 
200 
201 #endif /* __CS_CDOFB_MONOLITHIC_H__ */
cs_boundary_type_t
cs_boundary_type_t
Definition: cs_boundary.h:51
cs_defs.h
cs_cdofb_monolithic_compute_theta
void cs_cdofb_monolithic_compute_theta(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context)
Solve the unsteady Navier-Stokes system with a CDO face-based scheme using a monolithic approach and ...
Definition: cs_cdofb_monolithic.c:2483
cs_cdofb_monolithic_compute_implicit
void cs_cdofb_monolithic_compute_implicit(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context)
Solve the unsteady Navier-Stokes system with a CDO face-based scheme using a monolithic approach and ...
Definition: cs_cdofb_monolithic.c:2224
cs_navsto_param_t
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:255
cs_cdofb_monolithic_init_scheme_context
void * cs_cdofb_monolithic_init_scheme_context(const cs_navsto_param_t *nsp, cs_boundary_type_t *fb_type, void *nsc_input)
Initialize a cs_cdofb_monolithic_t structure.
Definition: cs_cdofb_monolithic.c:1747
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_cdofb_monolithic_free_scheme_context
void * cs_cdofb_monolithic_free_scheme_context(void *scheme_context)
Destroy a cs_cdofb_monolithic_t structure.
Definition: cs_cdofb_monolithic.c:1839
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_navsto_param.h
cs_cdo_quantities.h
mesh
Definition: mesh.f90:26
cs_mesh.h
cs_cdofb_monolithic_set_sles
void cs_cdofb_monolithic_set_sles(const cs_navsto_param_t *nsp, void *context)
Start setting-up the Navier-Stokes equations when a monolithic algorithm is used to coupled the syste...
Definition: cs_cdofb_monolithic.c:1874
cs_time_step_t
time step descriptor
Definition: cs_time_step.h:51
cs_cdo_quantities_t
Definition: cs_cdo_quantities.h:94
cs_cdo_connect_t
Definition: cs_cdo_connect.h:74
cs_cdo_connect.h
cs_cdofb_monolithic_get_face_velocity
static cs_real_t * cs_cdofb_monolithic_get_face_velocity(void *scheme_context)
Retrieve the values of the velocity on the faces.
Definition: cs_cdofb_monolithic.h:76
cs_time_step.h
CS_UNUSED
#define CS_UNUSED(x)
Definition: cs_defs.h:453
cs_cdofb_monolithic_init_common
void cs_cdofb_monolithic_init_common(const cs_mesh_t *mesh, 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_monolithic.c:1720
cs_equation_get_face_values
cs_real_t * cs_equation_get_face_values(const cs_equation_t *eq)
For a given equation, retrieve an array of values related to each face of the mesh for the unknowns.
Definition: cs_equation.c:2361
cs_equation_by_name
cs_equation_t * cs_equation_by_name(const char *eqname)
Find the cs_equation_t structure with name eqname Return NULL if not find.
Definition: cs_equation.c:350
cs_equation.h
cs_cdofb_monolithic_compute_steady
void cs_cdofb_monolithic_compute_steady(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context)
Solve the steady Navier-Stokes system with a CDO face-based scheme using a monolithic approach.
Definition: cs_cdofb_monolithic.c:1992
cs_mesh_t
Definition: cs_mesh.h:63
cs_base.h