9.2
general documentation
cs_combustion_ebu.h
Go to the documentation of this file.
1#ifndef CS_COMBUSTION_EBU_H
2#define CS_COMBUSTION_EBU_H
3
4/*============================================================================
5 * EBU (Eddy Break-Up) gas combustion model.
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 * Standard library headers
32 *----------------------------------------------------------------------------*/
33
34/*----------------------------------------------------------------------------
35 * Local headers
36 *----------------------------------------------------------------------------*/
37
38#include "base/cs_defs.h"
39#include "base/cs_field.h"
41
42/*----------------------------------------------------------------------------*/
43
44/*============================================================================
45 * Macro definitions
46 *============================================================================*/
47
48/*============================================================================
49 * Type definitions
50 *============================================================================*/
51
52/*============================================================================
53 * Global variables
54 *============================================================================*/
55
56/*=============================================================================
57 * Public function prototypes
58 *============================================================================*/
59
60/*----------------------------------------------------------------------------*/
64/*----------------------------------------------------------------------------*/
65
66void
68
69/*----------------------------------------------------------------------------*/
70/*
71 * \brief Compute physical properties for EBU combustion model.
72 *
73 * \param[in, out] mbrom filling indicator of romb
74 */
75/*----------------------------------------------------------------------------*/
76
77void
79
80/*----------------------------------------------------------------------------*/
81/*
82 * \brief Compute source terms for premixed flame EBU combustion model.
83 *
84 * Define the source terms for a given scalar over one time step.
85 *
86 * The equations read: \f$ rovsdt \delta a = smbrs \f$
87 *
88 * \f$ rovsdt \f$ et \f$ smbrs \f$ may already contain source term
89 * so must not be overwritten, but incremented.
90 *
91 * For stability, only positive terms should be add in \f$ rovsdt \f$.
92 * There is no constraint for \f$ smbrs \f$.
93 * For a source term written \f$ S_{exp} + S_{imp} a \f$, source terms are:
94 * \f$ smbrs = smbrs + S_{exp} + S_{imp} a \f$
95 * \f$ rovsdt = rovsdt + \max(-S_{imp},0) \f$
96 *
97 * Here we set \f$ rovsdt \f$ and \f$ smbrs \f$ containing \f$ \rho \Omega \f$
98 * - \f$ smbrs \f$ in \f$ kg_a.s^{-1} \f$ (ex: for velocity:
99 * \f$ kg.m.s^{-2} \f$, for temperature: \f$ kg.C.s^{-1} \f$,
100 * for enthalpy: \f$ J.s^{-1} \f$)
101 * - \f$ rovsdt \f$ in \f$ kg.s^{-1} \f$
102 *
103 * \param[in] f_sc pointer to scalar field
104 * \param[in,out] smbrs explicit right hand side
105 * \param[in,out] rovsdt implicit terms
106 */
107/*----------------------------------------------------------------------------*/
108
109void
111 cs_real_t smbrs[],
112 cs_real_t rovsdt[]);
113
114/*----------------------------------------------------------------------------*/
115
116#endif /* CS_COMBUSTION_EBU_H */
Field descriptor.
Definition: cs_field.h:275
void cs_combustion_ebu_source_terms(cs_field_t *f_sc, cs_real_t smbrs[], cs_real_t rovsdt[])
Compute source terms for premixed flame EBU combustion model.
Definition: cs_combustion_ebu.cpp:423
void cs_combustion_ebu_fields_init(void)
Initialize specific fields for EBU gas combustion model.
Definition: cs_combustion_ebu.cpp:125
void cs_combustion_ebu_physical_prop(int *mbrom)
Definition: cs_combustion_ebu.cpp:176
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332