9.2
general documentation
cs_atmo_source_terms.h
Go to the documentation of this file.
1#ifndef CS_ATMO_SOURCE_TERMS_H
2#define CS_ATMO_SOURCE_TERMS_H
3
4/*============================================================================
5 * Main for atmospheric source terms
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_base.h"
35#include "base/cs_field.h"
36
37/*----------------------------------------------------------------------------*/
38
39/*============================================================================
40 * Local Macro definitions
41 *============================================================================*/
42
43/*============================================================================
44 * Type definitions
45 *============================================================================*/
46
47/*============================================================================
48 * Static global variables
49 *============================================================================*/
50
51/*============================================================================
52 * Public function definitions
53 *============================================================================*/
54
55/*----------------------------------------------------------------------------*/
64/*----------------------------------------------------------------------------*/
65
66void
67cs_atmo_source_term(int f_id,
68 cs_real_t exp_st[],
69 cs_real_t imp_st[]);
70
71/*----------------------------------------------------------------------------*/
72
73/*----------------------------------------------------------------------------*/
83/*----------------------------------------------------------------------------*/
84
85void
87 cs_real_t exp_st[]);
88
89/*----------------------------------------------------------------------------*/
96/*----------------------------------------------------------------------------*/
97
98void
100
101/*----------------------------------------------------------------------------*/
102/*
103 * \brief Compute aerosol cloud droplets nucleation when using the atmospheric
104 * humid model using a microphysical model.
105 *
106 * It is taken into account as an additional step split from advection-diffusion
107 * equation, hence the droplet number is first clipped if necessary.
108 *
109 * \param[out] f_ntdrp droplet number field in 1/cm**3
110 * \param[in] rom density of air in kg/m**3
111 */
112/*----------------------------------------------------------------------------*/
113
114void
116 const cs_real_t *rom);
117
118/*----------------------------------------------------------------------------*/
119
120#endif /* CS_ATMO_SOURCE_TERMS_H */
Field descriptor.
Definition: cs_field.h:275
void cs_atmo_source_term_for_inlet(cs_real_3_t exp_st[])
Additional right-hand side source terms for momentum equation in case of free inlet.
Definition: cs_atmo_source_terms.cpp:921
void cs_atmo_source_term(int f_id, cs_real_t exp_st[], cs_real_t imp_st[])
Phase change source terms - Exchange terms between the injected liquid and the water vapor phase in t...
Definition: cs_atmo_source_terms.cpp:552
void cs_atmo_scalar_source_term(int f_id, cs_real_t exp_st[])
Additional right-hand side source terms for scalar equations taking into account dry and humid atmosp...
Definition: cs_atmo_source_terms.cpp:719
void cs_atmo_aerosol_nuclea(cs_field_t *f_ntdrp, const cs_real_t *rom)
Compute aerosol cloud droplets nucleation when using the atmospheric humid model using a microphysica...
Definition: cs_atmo_source_terms.cpp:1192
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349