8.3
general documentation
cs_wall_condensation_1d_thermal.h
Go to the documentation of this file.
1#ifndef __CS_WALLCONDENSATION_1DTHERMAL_H__
2#define __CS_WALLCONDENSATION_1DTHERMAL_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-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
38
40
41/*============================================================================
42 * Local Macro definitions
43 *============================================================================*/
44
45/*============================================================================
46 * Type definitions
47 *============================================================================*/
48
51typedef struct {
52
55 int nzones;
56
58 int znmurx;
59
63 cs_real_t *ztheta;
64
69 cs_real_t *zdxmin;
70
72 cs_lnum_t *znmur;
73
75 cs_real_t *zepais;
76
78 cs_real_t *ztpar0;
79
81 cs_real_t *zhext;
82
84 cs_real_t *ztext;
85
87 cs_real_t *zrob;
88
90 cs_real_t *zcondb;
91
93 cs_real_t *zcpb;
94
96 cs_real_t *ztpar;
97
99 cs_real_t *zdxp;
100
102 cs_real_t *ztmur;
103
104} cs_wall_cond_1d_thermal_t;
105
106typedef struct {
107
109 cs_lnum_t nvolumes;
111 cs_real_t *volume_thickness;
113 cs_real_2_t *volume_t;
115 cs_real_t *volume_rho;
117 cs_real_t *volume_cp;
119 cs_real_t *volume_lambda;
121 cs_real_t *volume_mass;
123 cs_real_t *volume_surf;
125 cs_real_t *volume_t0;
127 cs_real_t *volume_measure;
128
129} cs_wall_cond_0d_thermal_t;
130
131/*============================================================================
132 * Static global variables
133 *============================================================================*/
134
135/* Pointer to wall condensation descriptor structure */
136
137extern const cs_wall_cond_1d_thermal_t *cs_glob_wall_cond_1d_thermal;
138extern const cs_wall_cond_0d_thermal_t *cs_glob_wall_cond_0d_thermal;
139
142/*=============================================================================
143 * Public function prototypes
144 *============================================================================*/
145
146/*----------------------------------------------------------------------------*/
152/*----------------------------------------------------------------------------*/
153
154void
156
157void
159 int nfbpcd,
160 int nzones);
161
162/*----------------------------------------------------------------------------*/
166/*----------------------------------------------------------------------------*/
167
169
170/*----------------------------------------------------------------------------*/
176/*----------------------------------------------------------------------------*/
177
178cs_wall_cond_1d_thermal_t *
180
181/*----------------------------------------------------------------------------*/
187/*----------------------------------------------------------------------------*/
188
189void
191 cs_lnum_t ncmast);
192
193/*----------------------------------------------------------------------------*/
197/*----------------------------------------------------------------------------*/
198
199void
201
202/*----------------------------------------------------------------------------*/
208/*----------------------------------------------------------------------------*/
209
210cs_wall_cond_0d_thermal_t *
212
213/*----------------------------------------------------------------------------*/
218/*----------------------------------------------------------------------------*/
219
220void
222
223/*----------------------------------------------------------------------------*/
229/*----------------------------------------------------------------------------*/
230
231void
233
234/*----------------------------------------------------------------------------*/
243/*----------------------------------------------------------------------------*/
244
245void
247
248/*----------------------------------------------------------------------------*/
249
251
252#endif /* __CS_WALLCONDENSATION_1DTHERMAL_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:358
#define END_C_DECLS
Definition: cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
const cs_wall_cond_1d_thermal_t * cs_glob_wall_cond_1d_thermal
Definition: cs_wall_condensation_1d_thermal.cpp:129
const cs_wall_cond_0d_thermal_t * cs_glob_wall_cond_0d_thermal
Definition: cs_wall_condensation_1d_thermal.cpp:132
void cs_wall_condensation_0d_thermal_create(cs_lnum_t nvolumes, cs_lnum_t ncmast)
Create the context for 0D wall condensation thermal models.
Definition: cs_wall_condensation_1d_thermal.cpp:291
void cs_wall_condensation_1d_thermal_compute_temperature(void)
The 1D thermal model to compute the temperature to impose at the cold wall. This one is used by the C...
Definition: cs_wall_condensation_1d_thermal.cpp:579
void cs_wall_condensation_0d_thermal_free(void)
Free structures related to 0D wall condensation models.
Definition: cs_wall_condensation_1d_thermal.cpp:324
void cs_wall_condensation_0d_thermal_solve(void)
Use 0-D thermal model to solve the temperature and themal flux at the volume structure walls.
Definition: cs_wall_condensation_1d_thermal.cpp:373
cs_wall_cond_0d_thermal_t * cs_get_glob_wall_cond_0d_thermal(void)
Provide writeable access to cs_wall_cond_0d_thermal_t structure.
Definition: cs_wall_condensation_1d_thermal.cpp:360
cs_wall_cond_1d_thermal_t * cs_get_glob_wall_cond_1d_thermal(void)
Provide writeable access to _wall_cond structure.
Definition: cs_wall_condensation_1d_thermal.cpp:346
void cs_wall_condensation_1d_thermal_create(int nzones)
Create the context for wall condensation thermal models.
Definition: cs_wall_condensation_1d_thermal.cpp:208
void cs_wall_condensation_1d_thermal_mesh_initialize(void)
Used to generate the 1-D mesh and initialize the temperature field of the thermal model coupled with ...
Definition: cs_wall_condensation_1d_thermal.cpp:485
void cs_wall_condensation_1d_thermal_free(void)
Free all structures related to wall condensation models.
Definition: cs_wall_condensation_1d_thermal.cpp:264
void cs_wall_condensation_1d_thermal_mesh_create(int znmurx, int nfbpcd, int nzones)
Definition: cs_wall_condensation_1d_thermal.cpp:240