8.2
general documentation
Loading...
Searching...
No Matches
cs_wall_condensation.h
Go to the documentation of this file.
1#ifndef __CS_WALL_CONDENSATION_H__
2#define __CS_WALL_CONDENSATION_H__
3
4/*============================================================================
5 * Base wall condensation model.
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2024 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
50
55
60
61typedef struct {
62
63 int icondb; // Switch used to activate wall condensation (0 : activated)
64 int icondv; /* Switch used to activate wall condensation
65 with metal structures(0 : activated) */
66 int nztag1d; //Indicate if the thermal 1D model of severe accident is used.
67 // 1 a 1D thermal equation is used, 0 user defined dirichlet
68
69 // Model type
73
74 /* Surface wall condensation */
75
76 // Mesh related quantities
90
91 // Zone related quantities
99
100 /* Volume wall condensation */
101
110
112
113/*============================================================================
114 * Static global variables
115 *============================================================================*/
116
117/* Pointer to wall condensation descriptor structure */
119
120/*=============================================================================
121 * Public function prototypes
122 *============================================================================*/
123
124/*----------------------------------------------------------------------------*/
130/*----------------------------------------------------------------------------*/
131
134
135/*----------------------------------------------------------------------------*/
141/*----------------------------------------------------------------------------*/
142
143void
145
146/*----------------------------------------------------------------------------*/
154/*----------------------------------------------------------------------------*/
155
156void
158 int icondv);
159
160/*----------------------------------------------------------------------------*/
170/*----------------------------------------------------------------------------*/
171
172void
174 cs_lnum_t nzones,
175 cs_lnum_t ncmast,
176 cs_lnum_t nvolumes,
177 cs_lnum_t nvar);
178
179/*----------------------------------------------------------------------------*/
183/*----------------------------------------------------------------------------*/
184
185void
187
188/*----------------------------------------------------------------------------*/
192/*----------------------------------------------------------------------------*/
193
194void
196
197/*----------------------------------------------------------------------------*/
201/*----------------------------------------------------------------------------*/
202
203void
205
206/*----------------------------------------------------------------------------*/
207/*
208 * \brief Explicit and implicit sources terms from sources
209 * condensation computation.
210 *
211 * \param[in] f pointer to field structure
212 * \param[in] xcpp array of specific heat (Cp)
213 * \param[in] pvara variable value at time step beginning
214 * \param[in,out] st_exp explicit source term part linear in the variable
215 * \param[in,out] st_imp associated value with \c tsexp
216 * to be stored in the matrix
217 */
218/*----------------------------------------------------------------------------*/
219
220
221void
223 const cs_real_t xcpp[],
224 const cs_real_t pvara[],
225 cs_real_t st_exp[],
226 cs_real_t st_imp[]);
227
228/*----------------------------------------------------------------------------*/
229
231
232#endif /* __CS_WALL_CONDENSATION_H__ */
#define BEGIN_C_DECLS
Definition cs_defs.h:528
double cs_real_t
Floating-point value.
Definition cs_defs.h:332
#define END_C_DECLS
Definition cs_defs.h:529
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:325
const cs_wall_condensation_t * cs_glob_wall_condensation
Definition cs_wall_condensation.c:162
void cs_wall_condensation_create(cs_lnum_t nfbpcd, cs_lnum_t nzones, cs_lnum_t ncmast, cs_lnum_t nvolumes, cs_lnum_t nvar)
Create the context for wall condensation models.
Definition cs_wall_condensation.c:969
cs_wall_condensation_t * cs_get_glob_wall_condensation(void)
Provide writable access to _wall_cond structure.
Definition cs_wall_condensation.c:919
void cs_wall_condensation_free(void)
Free all structures related to wall condensation models.
Definition cs_wall_condensation.c:1105
cs_wall_cond_forced_conv_model_t
Definition cs_wall_condensation.h:51
@ CS_WALL_COND_MODEL_SCHLICHTING
Definition cs_wall_condensation.h:53
@ CS_WALL_COND_MODEL_WALL_LAW
Definition cs_wall_condensation.h:52
void cs_wall_condensation_source_terms(const cs_field_t *f, const cs_real_t xcpp[], const cs_real_t pvara[], cs_real_t st_exp[], cs_real_t st_imp[])
Definition cs_wall_condensation.c:1354
cs_wall_cond_natural_conv_model_t
Definition cs_wall_condensation.h:44
@ CS_WALL_COND_MODEL_COPAIN_BD
Definition cs_wall_condensation.h:46
@ CS_WALL_COND_MODEL_DEHBI
Definition cs_wall_condensation.h:48
@ CS_WALL_COND_MODEL_COPAIN
Definition cs_wall_condensation.h:45
@ CS_WALL_COND_MODEL_UCHIDA
Definition cs_wall_condensation.h:47
cs_wall_cond_mixed_conv_model_t
Definition cs_wall_condensation.h:56
@ CS_WALL_COND_MIXED_INCROPERA
Definition cs_wall_condensation.h:58
@ CS_WALL_COND_MIXED_MAX
Definition cs_wall_condensation.h:57
void cs_wall_condensation_log(void)
Output statistics about wall condensation source terms (for user log)
Definition cs_wall_condensation.c:1243
void cs_wall_condensation_set_onoff_state(int icondb, int icondv)
Set the onoff state of wall condensation modeling.
Definition cs_wall_condensation.c:949
void cs_wall_condensation_compute(cs_real_t total_htc[])
Compute the wall condensation source terms.
Definition cs_wall_condensation.c:1143
void cs_wall_condensation_set_model(cs_wall_cond_natural_conv_model_t model)
Set the wall condensation model.
Definition cs_wall_condensation.c:933
Field descriptor.
Definition cs_field.h:131
Definition cs_wall_condensation.h:61
cs_real_t * ztpar
Definition cs_wall_condensation.h:96
cs_wall_cond_forced_conv_model_t forced_conv_model
Definition cs_wall_condensation.h:71
cs_lnum_t * itagms
Definition cs_wall_condensation.h:109
cs_lnum_t * izzftcd
Definition cs_wall_condensation.h:80
int icondb
Definition cs_wall_condensation.h:63
cs_lnum_t * itypst
Definition cs_wall_condensation.h:105
int nztag1d
Definition cs_wall_condensation.h:66
cs_real_t * hpcond
Definition cs_wall_condensation.h:82
cs_real_t * zprojcond
Definition cs_wall_condensation.h:98
cs_lnum_t * iztag1d
Definition cs_wall_condensation.h:95
int icondv
Definition cs_wall_condensation.h:64
cs_real_t * convective_htc
Definition cs_wall_condensation.h:85
cs_lnum_t nvolumes
Definition cs_wall_condensation.h:103
cs_lnum_t * itypcd
Definition cs_wall_condensation.h:79
cs_lnum_t ncmast
Definition cs_wall_condensation.h:102
cs_lnum_t * izmast
Definition cs_wall_condensation.h:106
cs_wall_cond_mixed_conv_model_t mixed_conv_model
Definition cs_wall_condensation.h:72
cs_real_t * flthr
Definition cs_wall_condensation.h:88
cs_real_t * thermal_condensation_flux
Definition cs_wall_condensation.h:84
cs_wall_cond_natural_conv_model_t natural_conv_model
Definition cs_wall_condensation.h:70
cs_real_t * dflthr
Definition cs_wall_condensation.h:89
cs_lnum_t * izcophc
Definition cs_wall_condensation.h:93
cs_lnum_t * ltmast
Definition cs_wall_condensation.h:104
cs_lnum_t * izcophg
Definition cs_wall_condensation.h:94
cs_real_t * spcond
Definition cs_wall_condensation.h:81
cs_real_t * svcond
Definition cs_wall_condensation.h:107
cs_lnum_t nfbpcd
Definition cs_wall_condensation.h:77
cs_real_t * zxrefcond
Definition cs_wall_condensation.h:97
cs_real_t * total_htc
Definition cs_wall_condensation.h:87
cs_lnum_t nzones
Definition cs_wall_condensation.h:92
cs_lnum_t * ifbpcd
Definition cs_wall_condensation.h:78
cs_real_t * flxmst
Definition cs_wall_condensation.h:108
cs_real_t * condensation_htc
Definition cs_wall_condensation.h:86
cs_real_t * twall_cond
Definition cs_wall_condensation.h:83