CombustionModel.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "CombustionModel.H"
27 
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29 
30 template<class ReactionThermo>
32 (
33  const word& modelType,
34  ReactionThermo& thermo,
35  const compressibleTurbulenceModel& turb,
36  const word& combustionProperties
37 )
38 :
39  combustionModel(modelType, thermo, turb, combustionProperties)
40 {}
41 
42 
43 // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
44 
45 template<class ReactionThermo>
48 (
49  ReactionThermo& thermo,
50  const compressibleTurbulenceModel& turb,
51  const word& combustionProperties
52 )
53 {
54  return
55  combustionModel::New<CombustionModel<ReactionThermo>>
56  (
57  thermo,
58  turb,
59  combustionProperties
60  );
61 }
62 
63 
64 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
65 
66 template<class ReactionThermo>
68 {}
69 
70 
71 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
72 
73 template<class ReactionThermo>
75 {
77  {
78  return true;
79  }
80  else
81  {
82  return false;
83  }
84 }
85 
86 
87 // ************************************************************************* //
CombustionModel(const word &modelType, ReactionThermo &thermo, const compressibleTurbulenceModel &turb, const word &combustionProperties)
Construct from components.
static autoPtr< CombustionModel > New(ReactionThermo &thermo, const compressibleTurbulenceModel &turb, const word &combustionProperties=combustionPropertiesName)
Selector.
virtual ~CombustionModel()
Destructor.
void read(Istream &, label &, const dictionary &)
In-place read with dictionary lookup.
rhoReactionThermo & thermo
Definition: createFields.H:28
A class for handling words, derived from string.
Definition: word.H:59
virtual bool read()
Update properties from given dictionary.
Abstract base class for turbulence models (RAS, LES and laminar).
Base class for combustion models.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52