8.3
general documentation
cs_ht_convert.h
Go to the documentation of this file.
1#ifndef __CS_HT_CONVERT_H__
2#define __CS_HT_CONVERT_H__
3
4/*============================================================================
5 * Enthaly to and from temperature conversion.
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#include "cs_zone.h"
36
37/*----------------------------------------------------------------------------*/
38
40
41/*=============================================================================
42 * Type definitions
43 *============================================================================*/
44
45/*=============================================================================
46 * Public function prototypes
47 *============================================================================*/
48
49/*----------------------------------------------------------------------------*/
59/*----------------------------------------------------------------------------*/
60
61void
63 cs_real_t t[]);
64
65/*----------------------------------------------------------------------------*/
72/*----------------------------------------------------------------------------*/
73
74void
76
77/*----------------------------------------------------------------------------*/
87/*----------------------------------------------------------------------------*/
88
89void
91 cs_real_t t[]);
92
93/*----------------------------------------------------------------------------*/
105/*----------------------------------------------------------------------------*/
106
107void
109 const cs_lnum_t face_ids[],
110 const cs_real_t t[],
111 cs_real_t h[]);
112
113/*----------------------------------------------------------------------------*/
125/*----------------------------------------------------------------------------*/
126
127void
129 const cs_real_t t[],
130 cs_real_t h[]);
131
132/*----------------------------------------------------------------------------*/
133
135
136#endif /* __CS_HT_CONVERT_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
#define END_C_DECLS
Definition: cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
@ t
Definition: cs_field_pointer.h:94
@ h
Definition: cs_field_pointer.h:93
void cs_ht_convert_h_to_t_cells(const cs_real_t h[], cs_real_t t[])
Convert enthalpy to temperature at all cells.
Definition: cs_ht_convert.cpp:136
void cs_ht_convert_t_to_h_faces_z(const cs_zone_t *z, const cs_real_t t[], cs_real_t h[])
Convert temperature to enthalpy for a given boundary zone, using dense storage for temperature and en...
Definition: cs_ht_convert.cpp:536
void cs_ht_convert_t_to_h_faces_l(cs_lnum_t n_faces, const cs_lnum_t face_ids[], const cs_real_t t[], cs_real_t h[])
Convert temperature to enthalpy at selected boundary faces.
Definition: cs_ht_convert.cpp:410
void cs_ht_convert_h_to_t_cells_solid(void)
Convert enthalpy to temperature at solid cells only.
Definition: cs_ht_convert.cpp:246
void cs_ht_convert_h_to_t_faces(const cs_real_t h[], cs_real_t t[])
Convert enthalpy to temperature at all boundary faces.
Definition: cs_ht_convert.cpp:302
Definition: cs_zone.h:55