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