9.1
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-2025 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
45
46/*============================================================================
47 * Macro definitions
48 *============================================================================*/
49
50/*============================================================================
51 * Type definitions
52 *============================================================================*/
53
54/*============================================================================
55 * Global variables
56 *============================================================================*/
57
58/*=============================================================================
59 * Public function prototypes
60 *============================================================================*/
61
62/*----------------------------------------------------------------------------*/
66/*----------------------------------------------------------------------------*/
67
68void
70
71/*----------------------------------------------------------------------------*/
72/*
73 * \brief Compute physical properties for EBU combustion model.
74 *
75 * \param[in, out] mbrom filling indicator of romb
76 */
77/*----------------------------------------------------------------------------*/
78
79void
81
82/*----------------------------------------------------------------------------*/
83/*
84 * \brief Compute source terms for premixed flame EBU combustion model.
85 *
86 * Define the source terms for a given scalar over one time step.
87 *
88 * The equations read: \f$ rovsdt \delta a = smbrs \f$
89 *
90 * \f$ rovsdt \f$ et \f$ smbrs \f$ may already contain source term
91 * so must not be overwritten, but incremented.
92 *
93 * For stability, only positive terms should be add in \f$ rovsdt \f$.
94 * There is no constraint for \f$ smbrs \f$.
95 * For a source term written \f$ S_{exp} + S_{imp} a \f$, source terms are:
96 * \f$ smbrs = smbrs + S_{exp} + S_{imp} a \f$
97 * \f$ rovsdt = rovsdt + \max(-S_{imp},0) \f$
98 *
99 * Here we set \f$ rovsdt \f$ and \f$ smbrs \f$ containing \f$ \rho \Omega \f$
100 * - \f$ smbrs \f$ in \f$ kg_a.s^{-1} \f$ (ex: for velocity:
101 * \f$ kg.m.s^{-2} \f$, for temperature: \f$ kg.C.s^{-1} \f$,
102 * for enthalpy: \f$ J.s^{-1} \f$)
103 * - \f$ rovsdt \f$ in \f$ kg.s^{-1} \f$
104 *
105 * \param[in] f_sc pointer to scalar field
106 * \param[in,out] smbrs explicit right hand side
107 * \param[in,out] rovsdt implicit terms
108 */
109/*----------------------------------------------------------------------------*/
110
111void
113 cs_real_t smbrs[],
114 cs_real_t rovsdt[]);
115
116/*----------------------------------------------------------------------------*/
117
119
120#endif /* CS_COMBUSTION_EBU_H */
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:432
void cs_combustion_ebu_fields_init(void)
Initialize specific fields for EBU gas combustion model.
Definition: cs_combustion_ebu.cpp:134
void cs_combustion_ebu_physical_prop(int *mbrom)
Definition: cs_combustion_ebu.cpp:185
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
double cs_real_t
Floating-point value.
Definition: cs_defs.h:357
#define END_C_DECLS
Definition: cs_defs.h:555
Field descriptor.
Definition: cs_field.h:156