9.2
general documentation
cs_combustion_lw.h
Go to the documentation of this file.
1#ifndef CS_COMBUSTION_LW_H
2#define CS_COMBUSTION_LW_H
3
4/*============================================================================
5 * Libby-Williams 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/*----------------------------------------------------------------------------*/
61/*
62 * \brief Initialize specific fields for Libby-Williams gas combustion model.
63 */
64/*----------------------------------------------------------------------------*/
65
66void
68
69/*----------------------------------------------------------------------------*/
70/*
71 * \brief Compute physical properties for Libby-Williams combustion model.
72 */
73/*----------------------------------------------------------------------------*/
74
75void
77
78/*----------------------------------------------------------------------------*/
79/*
80 * \brief Compute source terms for premixed flame Libby-Williams
81 * combustion model.
82 *
83 * Define the source terms for a given scalar over one time step.
84 *
85 * The equations read: \f$ rovsdt \delta a = smbrs \f$
86 *
87 * \f$ rovsdt \f$ et \f$ smbrs \f$ may already contain source term
88 * so must not be overwritten, but incremented.
89 *
90 * For stability, only positive terms should be add in \f$ rovsdt \f$.
91 * There is no constraint for \f$ smbrs \f$.
92 * For a source term written \f$ S_{exp} + S_{imp} a \f$, source terms are:
93 * \f$ smbrs = smbrs + S_{exp} + S_{imp} a \f$
94 * \f$ rovsdt = rovsdt + \max(-S_{imp},0) \f$
95 *
96 * Here we set \f$ rovsdt \f$ and \f$ smbrs \f$ containing \f$ \rho \Omega \f$
97 * - \f$ smbrs \f$ in \f$ kg_a.s^{-1} \f$ (ex: for velocity:
98 * \f$ kg.m.s^{-2} \f$, for temperature: \f$ kg.C.s^{-1} \f$,
99 * for enthalpy: \f$ J.s^{-1} \f$)
100 * - \f$ rovsdt \f$ in \f$ kg.s^{-1} \f$
101 *
102 * \param[in] f_sc pointer to scalar field
103 * \param[in,out] smbrs explicit right hand side
104 * \param[in,out] rovsdt implicit terms
105 */
106/*----------------------------------------------------------------------------*/
107
108void
110 cs_real_t smbrs[],
111 cs_real_t rovsdt[]);
112
113/*----------------------------------------------------------------------------*/
114
115#endif /* CS_COMBUSTION_LW_H */
Field descriptor.
Definition: cs_field.h:275
void cs_combustion_lw_source_terms(cs_field_t *f_sc, cs_real_t smbrs[], cs_real_t rovsdt[])
Compute source terms for premixed flame Libby-Williams combustion model.
Definition: cs_combustion_lw.cpp:2127
void cs_combustion_lw_physical_prop(void)
Definition: cs_combustion_lw.cpp:2045
void cs_combustion_lw_fields_init(void)
Initialize specific fields for Libby-Williams gas combustion model.
Definition: cs_combustion_lw.cpp:1993
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332