9.2
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-2026 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 "base/cs_defs.h"
35
36/*============================================================================
37 * Local Macro definitions
38 *============================================================================*/
39
40/*============================================================================
41 * Type definitions
42 *============================================================================*/
43
46typedef struct {
47
50 int nzones;
51
53 int znmurx;
54
58 cs_real_t *ztheta;
59
64 cs_real_t *zdxmin;
65
67 cs_lnum_t *znmur;
68
70 cs_real_t *zepais;
71
73 cs_real_t *ztpar0;
74
76 cs_real_t *zhext;
77
79 cs_real_t *ztext;
80
82 cs_real_t *zrob;
83
85 cs_real_t *zcondb;
86
88 cs_real_t *zcpb;
89
91 cs_real_t *ztpar;
92
94 cs_real_t *zdxp;
95
97 cs_real_t *ztmur;
98
99} cs_wall_cond_1d_thermal_t;
100
101typedef struct {
102
104 cs_lnum_t nvolumes;
106 cs_real_t *volume_thickness;
108 cs_real_2_t *volume_t;
110 cs_real_t *volume_rho;
112 cs_real_t *volume_cp;
114 cs_real_t *volume_lambda;
116 cs_real_t *volume_mass;
118 cs_real_t *volume_surf;
120 cs_real_t *volume_t0;
122 cs_real_t *volume_measure;
123
124} cs_wall_cond_0d_thermal_t;
125
126/*============================================================================
127 * Static global variables
128 *============================================================================*/
129
130/* Pointer to wall condensation descriptor structure */
131
132extern const cs_wall_cond_1d_thermal_t *cs_glob_wall_cond_1d_thermal;
133extern const cs_wall_cond_0d_thermal_t *cs_glob_wall_cond_0d_thermal;
134
137/*=============================================================================
138 * Public function prototypes
139 *============================================================================*/
140
141/*----------------------------------------------------------------------------*/
147/*----------------------------------------------------------------------------*/
148
149void
151
152void
154 int nfbpcd,
155 int nzones);
156
157/*----------------------------------------------------------------------------*/
161/*----------------------------------------------------------------------------*/
162
164
165/*----------------------------------------------------------------------------*/
171/*----------------------------------------------------------------------------*/
172
173cs_wall_cond_1d_thermal_t *
175
176/*----------------------------------------------------------------------------*/
182/*----------------------------------------------------------------------------*/
183
184void
186 cs_lnum_t ncmast);
187
188/*----------------------------------------------------------------------------*/
192/*----------------------------------------------------------------------------*/
193
194void
196
197/*----------------------------------------------------------------------------*/
203/*----------------------------------------------------------------------------*/
204
205cs_wall_cond_0d_thermal_t *
207
208/*----------------------------------------------------------------------------*/
213/*----------------------------------------------------------------------------*/
214
215void
217
218/*----------------------------------------------------------------------------*/
224/*----------------------------------------------------------------------------*/
225
226void
228
229/*----------------------------------------------------------------------------*/
238/*----------------------------------------------------------------------------*/
239
240void
242
243/*----------------------------------------------------------------------------*/
244
245#endif /* CS_WALLCONDENSATION_1DTHERMAL_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:348
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
const cs_wall_cond_1d_thermal_t * cs_glob_wall_cond_1d_thermal
Definition: cs_wall_condensation_1d_thermal.cpp:128
const cs_wall_cond_0d_thermal_t * cs_glob_wall_cond_0d_thermal
Definition: cs_wall_condensation_1d_thermal.cpp:131
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:290
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:578
void cs_wall_condensation_0d_thermal_free(void)
Free structures related to 0D wall condensation models.
Definition: cs_wall_condensation_1d_thermal.cpp:323
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:372
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:359
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:345
void cs_wall_condensation_1d_thermal_create(int nzones)
Create the context for wall condensation thermal models.
Definition: cs_wall_condensation_1d_thermal.cpp:207
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:484
void cs_wall_condensation_1d_thermal_free(void)
Free all structures related to wall condensation models.
Definition: cs_wall_condensation_1d_thermal.cpp:263
void cs_wall_condensation_1d_thermal_mesh_create(int znmurx, int nfbpcd, int nzones)
Definition: cs_wall_condensation_1d_thermal.cpp:239