9.0
general documentation
Loading...
Searching...
No Matches
cs_coal_source_terms.h
Go to the documentation of this file.
1#ifndef CS_COAL_SOURCE_TERMS_H
2#define CS_COAL_SOURCE_TERMS_H
3
4/*============================================================================
5 * Coal combustion model: source term computation
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 * Local headers
32 *----------------------------------------------------------------------------*/
33
34#include "base/cs_defs.h"
35#include "base/cs_field.h"
36
37/*----------------------------------------------------------------------------*/
38
40
41/*=============================================================================
42 * Type definitions
43 *============================================================================*/
44
45/*=============================================================================
46 * Public function prototypes
47 *============================================================================*/
48
49/*----------------------------------------------------------------------------*/
50/*
51 * \brief Compute scalar source terms for pulverized coal flame.
52 *
53 * \warning the treatement is different from that of cs_user_source_terms.
54 *
55 * We solve: \f[ rovsdt D(var) = smbrs \f]
56 *
57 * rovsdt and smbrs already contain eventual user source terms.
58 * So they have to be incremented and not erased.
59 *
60 * For stability reasons, only positive terms can be added in rovsdt.
61 * There is no contraint for smbrs.
62 *
63 * In the case of a source term in \f$ cexp + cimp var \f$, it has to be written:
64 * - \f$ smbrs = smbrs + cexp + cimp var \f$
65 * - \f$ rovsdt = rovsdt + \max(-cimp,0) \f$
66 *
67 * Here are \f$ rovsdt \f$ and \f$ smbrs \f$ (they contain \f$ \rho volume\f$)
68 * smbrs in kg variable/s:
69 * \c i.e.: - for velocity \f$ kg . m . s^{-2} \f$
70 * - for temperature \f$ kg . [degres] . s^{-1} \f$
71 * - for enthalpy \f$ J . s^{-1} \f$
72 * - rovsdt \f$ kg . s^{-1} \f$
73 *
74 * \param[in] fld_scal pointer to scalar field
75 * \param[in,out] smbrs explicit second member
76 * \param[in,out] rovsdt implicit diagonal part
77 */
78/*----------------------------------------------------------------------------*/
79
80void
82 cs_real_t smbrs[],
83 cs_real_t rovsdt[]);
84
85/*----------------------------------------------------------------------------*/
109/*----------------------------------------------------------------------------*/
110
111void
112cs_coal_noxst(const int indpdf[],
113 const cs_real_t pdfm1[],
114 const cs_real_t pdfm2[],
115 const cs_real_t doxyd[],
116 const cs_real_t dfuel[],
117 const cs_real_t hrec[],
118 const cs_real_t f3m[],
119 const cs_real_t f4m[],
120 const cs_real_t f5m[],
121 const cs_real_t f6m[],
122 const cs_real_t f7m[],
123 const cs_real_t f8m[],
124 const cs_real_t f9m[],
125 const cs_real_t fs3no[],
126 const cs_real_t fs4no[],
127 const cs_real_t yfs4no[],
128 const cs_real_t enthox[]);
129
130/*----------------------------------------------------------------------------*/
131
133
134#endif /* CS_COAL_SOURCE_TERMS_H */
void cs_coal_source_terms_scalar(cs_field_t *fld_scal, cs_real_t smbrs[], cs_real_t rovsdt[])
Compute scalar source terms for pulverized coal flame.
Definition cs_coal_source_terms.cpp:391
void cs_coal_noxst(const int indpdf[], const cs_real_t pdfm1[], const cs_real_t pdfm2[], const cs_real_t doxyd[], const cs_real_t dfuel[], const cs_real_t hrec[], const cs_real_t f3m[], const cs_real_t f4m[], const cs_real_t f5m[], const cs_real_t f6m[], const cs_real_t f7m[], const cs_real_t f8m[], const cs_real_t f9m[], const cs_real_t fs3no[], const cs_real_t fs4no[], const cs_real_t yfs4no[], const cs_real_t enthox[])
Compute NOx source terms for pulverized coal flame.
Definition cs_coal_noxst.cpp:121
#define BEGIN_C_DECLS
Definition cs_defs.h:542
double cs_real_t
Floating-point value.
Definition cs_defs.h:342
#define END_C_DECLS
Definition cs_defs.h:543
Field descriptor.
Definition cs_field.h:158