7.2
general documentation
cs_pressure_correction.h
Go to the documentation of this file.
1 #ifndef __CS_PRESSURE_CORRECTION_H__
2 #define __CS_PRESSURE_CORRECTION_H__
3 
4 /*============================================================================
5  * Pressure correction.
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2022 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 /*----------------------------------------------------------------------------
31  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_defs.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*============================================================================
41  * Type definitions
42  *============================================================================*/
43 
44 typedef struct {
45 
50 
56 
61 
67 
72 
77 
83 
85 
87 
88 /*============================================================================
89  * Public function definitions
90  *============================================================================*/
91 
92 /*----------------------------------------------------------------------------*/
96 /*----------------------------------------------------------------------------*/
97 
98 void
100 
101 /*----------------------------------------------------------------------------*/
105 /*----------------------------------------------------------------------------*/
106 
107 void
109 
110 
111 /*----------------------------------------------------------------------------*/
115 /*----------------------------------------------------------------------------*/
116 
117 void
119 
120 /*----------------------------------------------------------------------------*/
124 /*----------------------------------------------------------------------------*/
125 
126 void
128 
129 /*----------------------------------------------------------------------------*/
135 /*----------------------------------------------------------------------------*/
136 
137 bool
139 
140 /*----------------------------------------------------------------------------*/
146 /*----------------------------------------------------------------------------*/
147 
148 void
150 
151 /*----------------------------------------------------------------------------*/
158 /*----------------------------------------------------------------------------*/
159 
160 void
162 
163 /*----------------------------------------------------------------------------*/
205 /*----------------------------------------------------------------------------*/
206 
207 void
208 cs_pressure_correction(int iterns,
211  cs_lnum_t ifbpcd[nfbpcd],
212  cs_lnum_t ltmast[],
213  int isostd[],
214  cs_real_t vel[restrict][3],
215  cs_real_t da_uu[restrict][6],
216  cs_real_t coefav[restrict][3],
217  cs_real_t coefbv[restrict][3][3],
218  cs_real_t coefa_dp[restrict],
219  cs_real_t coefb_dp[restrict],
220  cs_real_t spcond[restrict],
221  cs_real_t svcond[restrict],
222  cs_real_t frcxt[restrict][3],
223  cs_real_t dfrcxt[restrict][3],
224  cs_real_t i_visc[restrict],
225  cs_real_t b_visc[restrict]);
226 
227 /*----------------------------------------------------------------------------*/
228 
230 
231 #endif /* __CS_PRESSURE_CORRECTION_H__ */
#define restrict
Definition: cs_defs.h:142
bool cs_pressure_correction_cdo_is_activated(void)
Test if pressure solving with CDO is activated.
Definition: cs_pressure_correction.c:3048
cs_real_t * inner_potential_flux
Definition: cs_pressure_correction.h:71
void cs_pressure_correction_cdo_finalize_setup(const cs_domain_t *domain)
Finalize setting-up the pressure increment equation At this stage, numerical settings should be compl...
Definition: cs_pressure_correction.c:3134
cs_field_t * pressure_incr_gradient
Definition: cs_pressure_correction.h:55
Field descriptor.
Definition: cs_field.h:125
void cs_pressure_correction_cdo_init_setup(void)
Start setting-up the pressure increment equation At this stage, numerical settings should be complete...
Definition: cs_pressure_correction.c:3065
integer, save ncmast
number of the ncmast cells in which a condensation source terms is imposed. See lstmast list and the ...
Definition: pointe.f90:210
cs_equation_t * pressure_incr
Definition: cs_pressure_correction.h:49
void cs_pressure_correction(int iterns, cs_lnum_t nfbpcd, cs_lnum_t ncmast, cs_lnum_t ifbpcd[nfbpcd], cs_lnum_t ltmast[], int isostd[], cs_real_t vel[restrict][3], cs_real_t da_uu[restrict][6], cs_real_t coefav[restrict][3], cs_real_t coefbv[restrict][3][3], cs_real_t coefa_dp[restrict], cs_real_t coefb_dp[restrict], cs_real_t spcond[restrict], cs_real_t svcond[restrict], cs_real_t frcxt[restrict][3], cs_real_t dfrcxt[restrict][3], cs_real_t i_visc[restrict], cs_real_t b_visc[restrict])
Perform the pressure correction step of the Navier-Stokes equations for incompressible or slightly co...
Definition: cs_pressure_correction.c:3283
integer, dimension(:), pointer, save ifbpcd
list on the nfbpcd faces in which a condensation source terms is imposed. See ifbpcd and the user sub...
Definition: cs_nz_condensation.f90:95
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
void cs_pressure_correction_cdo_activate(void)
Activate the pressure increment solving with CDO.
Definition: cs_pressure_correction.c:2973
integer, dimension(:), allocatable ltmast
list on the ncmast cells in which a condensation source terms is imposed. See the user subroutine cs_...
Definition: pointe.f90:214
Definition: cs_pressure_correction.h:44
void cs_pressure_correction_cdo_destroy_all(void)
Free the main structure related to the pressure correction.
Definition: cs_pressure_correction.c:3209
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_field_pointer.h:68
cs_field_t * pressure_gradient
Definition: cs_pressure_correction.h:60
double precision, dimension(:,:), allocatable svcond
value of the condensation source terms for pressure associated to the metal structures modelling...
Definition: pointe.f90:230
void cs_pressure_correction_model_activate(void)
Activate the pressure increment, either FV or CDO.
Definition: cs_pressure_correction.c:3028
Structure storing the main features of the computational domain and pointers to the main geometrical ...
Definition: cs_domain.h:140
integer(c_int), pointer, save nfbpcd
Definition: cs_nz_condensation.f90:55
cs_real_t * bdy_potential_flux
Definition: cs_pressure_correction.h:76
cs_real_t * bdy_pressure_incr
Definition: cs_pressure_correction.h:82
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
#define END_C_DECLS
Definition: cs_defs.h:511
unsigned short int cs_flag_t
Definition: cs_defs.h:324
double precision, dimension(:,:), pointer, save spcond
Definition: cs_nz_condensation.f90:83
cs_flag_t post_flag
Definition: cs_pressure_correction.h:84
void cs_pressure_correction_fv_activate(void)
Activate the pressure increment solving with Legacy FV.
Definition: cs_pressure_correction.c:2947
Main structure to handle the discretization and the resolution of an equation.
cs_real_t * div_st
Definition: cs_pressure_correction.h:66