8.2
general documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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-2024 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 "cs_defs.h"
35 
36 /*----------------------------------------------------------------------------*/
37 
39 
40 /*=============================================================================
41  * Type definitions
42  *============================================================================*/
43 
44 /*=============================================================================
45  * Public function prototypes
46  *============================================================================*/
47 
48 /*----------------------------------------------------------------------------*/
49 /*
50  * \brief Compute scalar source terms for pulverized coal flame.
51  *
52  * \warning the treatement is different from that of cs_user_source_terms.
53  *
54  * We solve: \f[ rovsdt D(var) = smbrs \f]
55  *
56  * rovsdt and smbrs already contain eventual user source terms.
57  * So they have to be incremented and not erased.
58  *
59  * For stability reasons, only positive terms can be added in rovsdt.
60  * There is no contraint for smbrs.
61  *
62  * In the case of a source term in \f$ cexp + cimp var \f$, it has to be written:
63  * - \f$ smbrs = smbrs + cexp + cimp var \f$
64  * - \f$ rovsdt = rovsdt + \max(-cimp,0) \f$
65  *
66  * Here are \f$ rovsdt \f$ and \f$ smbrs \f$ (they contain \f$ \rho volume\f$)
67  * smbrs in kg variable/s:
68  * \c i.e.: - for velocity \f$ kg . m . s^{-2} \f$
69  * - for temperature \f$ kg . [degres] . s^{-1} \f$
70  * - for enthalpy \f$ J . s^{-1} \f$
71  * - rovsdt \f$ kg . s^{-1} \f$
72  *
73  * \param[in] fld_id scalar field id
74  * \param[in,out] smbrs explicit second member
75  * \param[in,out] rovsdt implicit diagonal part
76  */
77 /*----------------------------------------------------------------------------*/
78 
79 void
81  cs_real_t smbrs[],
82  cs_real_t rovsdt[]);
83 
84 /*----------------------------------------------------------------------------*/
85 /*
86  * \brief Pulverized coal flame: production and dissipation source terms
87  * for the variance.
88  *
89  * \param[in] iscal scalar id
90  * \param[in,out] smbrs explicit second member
91  * \param[in,out] rovsdt implicit diagonal part
92  */
93 /*----------------------------------------------------------------------------*/
94 
95 void
96 cs_coal_fp2st(int iscal,
97  cs_real_t *smbrs,
98  cs_real_t *rovsdt);
99 
100 /*----------------------------------------------------------------------------*/
124 /*----------------------------------------------------------------------------*/
125 
126 void
127 cs_coal_noxst(const int indpdf[],
128  const cs_real_t pdfm1[],
129  const cs_real_t pdfm2[],
130  const cs_real_t doxyd[],
131  const cs_real_t dfuel[],
132  const cs_real_t hrec[],
133  const cs_real_t f3m[],
134  const cs_real_t f4m[],
135  const cs_real_t f5m[],
136  const cs_real_t f6m[],
137  const cs_real_t f7m[],
138  const cs_real_t f8m[],
139  const cs_real_t f9m[],
140  const cs_real_t fs3no[],
141  const cs_real_t fs4no[],
142  const cs_real_t yfs4no[],
143  const cs_real_t enthox[]);
144 
145 /*----------------------------------------------------------------------------*/
146 
148 
149 #endif /* CS_COAL_SOURCE_TERMS_H */
void cs_coal_source_terms_scalar(int fld_id, cs_real_t smbrs[], cs_real_t rovsdt[])
Compute scalar source terms for pulverized coal flame.
Definition: cs_coal_source_terms.c:391
void cs_coal_fp2st(int iscal, cs_real_t *smbrs, cs_real_t *rovsdt)
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.
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
#define END_C_DECLS
Definition: cs_defs.h:529
@ f4m
Definition: cs_field_pointer.h:145
@ f8m
Definition: cs_field_pointer.h:149
@ f9m
Definition: cs_field_pointer.h:150
@ f7m
Definition: cs_field_pointer.h:148
@ f5m
Definition: cs_field_pointer.h:146
@ f6m
Definition: cs_field_pointer.h:147