7.2
general documentation
cs_wall_condensation.h
Go to the documentation of this file.
1 #ifndef __CS_WALLCONDENSATION_MODEL_H__
2 #define __CS_WALLCONDENSATION_MODEL_H__
3 
4 /*============================================================================
5  * Base wall condensation model data.
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 enum {
50 
51 typedef enum {
55 
56 typedef enum {
60 
61 typedef struct {
62  int icondb; // Switch used to activate wall condensation (0 : activated)
63  // Model type
67 
68  // Mesh-related information
82 
83  // Zone related quantities
92 
93 /*============================================================================
94  * Static global variables
95  *============================================================================*/
96 
97 /* Pointer to wall condensation descriptor structure */
98 extern const cs_wall_cond_t *cs_glob_wall_cond;
99 
100 /*=============================================================================
101  * Public function prototypes
102  *============================================================================*/
103 
104 /*----------------------------------------------------------------------------*/
110 /*----------------------------------------------------------------------------*/
112 
113 /*----------------------------------------------------------------------------*/
119 /*----------------------------------------------------------------------------*/
121 
122 /*----------------------------------------------------------------------------*/
130 /*----------------------------------------------------------------------------*/
131 void
133 
134 /*----------------------------------------------------------------------------*/
138 /*----------------------------------------------------------------------------*/
139 void cs_wall_condensation_free(void);
140 
141 /*----------------------------------------------------------------------------*/
147 /*----------------------------------------------------------------------------*/
148 void cs_wall_condensation_compute(cs_real_t total_htc[]);
149 
150 /*----------------------------------------------------------------------------*/
156 /*----------------------------------------------------------------------------*/
157 void cs_wall_condensation_log(void);
158 
159 /*----------------------------------------------------------------------------*/
165 /*----------------------------------------------------------------------------*/
166 
168 
169 /*----------------------------------------------------------------------------*/
170 
172 
173 #endif /* __CS_WALLCONDESATION_MODEL_H__ */
void cs_wall_condensation_set_onoff_state(int icondb)
Set the onoff state of wall condensation modeling.
cs_lnum_t * ifbpcd
Definition: cs_wall_condensation.h:70
cs_wall_cond_forced_conv_model_t
Definition: cs_wall_condensation.h:51
cs_wall_cond_mixed_conv_model_t mixed_conv_model
Definition: cs_wall_condensation.h:66
cs_real_t * spcond
Definition: cs_wall_condensation.h:73
Definition: cs_wall_condensation.h:53
cs_lnum_t nzones
Definition: cs_wall_condensation.h:84
cs_wall_cond_t * cs_get_glob_wall_cond(void)
Provide writable access to _wall_cond structure.
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
int icondb
Definition: cs_wall_condensation.h:62
cs_lnum_t * izcophc
Definition: cs_wall_condensation.h:85
Definition: cs_wall_condensation.h:48
cs_real_t * condensation_htc
Definition: cs_wall_condensation.h:78
cs_real_t * total_htc
Definition: cs_wall_condensation.h:79
cs_real_t * zprojcond
Definition: cs_wall_condensation.h:90
Definition: cs_wall_condensation.h:58
cs_real_t * thermal_condensation_flux
Definition: cs_wall_condensation.h:76
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
cs_real_t * convective_htc
Definition: cs_wall_condensation.h:77
cs_lnum_t * iztag1d
Definition: cs_wall_condensation.h:87
cs_lnum_t nfbpcd
Definition: cs_wall_condensation.h:69
cs_wall_cond_natural_conv_model_t
Definition: cs_wall_condensation.h:44
cs_real_t * dflthr
Definition: cs_wall_condensation.h:81
cs_real_t * ztpar
Definition: cs_wall_condensation.h:88
cs_real_t * hpcond
Definition: cs_wall_condensation.h:74
Definition: cs_wall_condensation.h:45
cs_real_t * zxrefcond
Definition: cs_wall_condensation.h:89
integer(c_int), pointer, save icondb
Specific condensation modelling if = -1 module not activated if = 0 condensation source terms activat...
Definition: ppincl.f90:285
cs_wall_cond_mixed_conv_model_t
Definition: cs_wall_condensation.h:56
Definition: cs_wall_condensation.h:52
void cs_wall_condensation_create(cs_lnum_t nfbpcd, cs_lnum_t nzones, cs_lnum_t nvar)
Create the context for wall condensation models.
integer, save nvar
number of solved variables (must be lower than nvarmx)
Definition: dimens.f90:42
Definition: cs_wall_condensation.h:57
integer(c_int), pointer, save nfbpcd
Definition: cs_nz_condensation.f90:55
Definition: cs_wall_condensation.h:47
integer(c_int), pointer, save nzones
Definition: cs_nz_condensation.f90:102
cs_real_t * twall_cond
Definition: cs_wall_condensation.h:75
cs_lnum_t * izcophg
Definition: cs_wall_condensation.h:86
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
void cs_wall_condensation_compute(cs_real_t total_htc[])
Compute the wall condensation source terms.
const cs_wall_cond_t * cs_glob_wall_cond
Definition: cs_wall_condensation.c:143
void cs_wall_condensation_set_model(cs_wall_cond_natural_conv_model_t model)
Set the wall condensation model.
#define END_C_DECLS
Definition: cs_defs.h:511
cs_lnum_t * itypcd
Definition: cs_wall_condensation.h:71
cs_wall_cond_natural_conv_model_t natural_conv_model
Definition: cs_wall_condensation.h:64
Definition: cs_wall_condensation.h:61
void cs_wall_condensation_free(void)
Free all structures related to wall condensation models.
void cs_wall_condensation_log(void)
Output statistics about wall condensation source terms (for user log)
cs_wall_cond_forced_conv_model_t forced_conv_model
Definition: cs_wall_condensation.h:65
cs_real_t * flthr
Definition: cs_wall_condensation.h:80
Definition: cs_wall_condensation.h:46
cs_lnum_t * izzftcd
Definition: cs_wall_condensation.h:72