noCombustion.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::combustionModels::noCombustion
28 
29 Group
30  grpCombustionModels
31 
32 Description
33  Dummy combustion model for 'no combustion'
34 
35 SourceFiles
36  noCombustion.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef noCombustion_H
41 #define noCombustion_H
42 
43 #include "ThermoCombustion.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace combustionModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class noCombustion Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<class ReactionThermo>
57 class noCombustion
58 :
59  public ThermoCombustion<ReactionThermo>
60 {
61 
62  //- No copy construct
63  noCombustion(const noCombustion&) = delete;
64 
65  //- No copy assignment
66  void operator=(const noCombustion&) = delete;
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("none");
73 
74 
75  // Constructors
76 
77  //- Construct from components
79  (
80  const word& modelType,
81  ReactionThermo& thermo,
83  const word& combustionProperties
84  );
85 
86 
87  //- Destructor
88  virtual ~noCombustion();
89 
90 
91  // Member Functions
92 
93  //- Correct combustion rate
94  virtual void correct();
95 
96  //- Fuel consumption rate matrix
97  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
98 
99  //- Heat release rate [kg/m/s3]
100  virtual tmp<volScalarField> Qdot() const;
101 
102  //- Update properties from given dictionary
103  virtual bool read();
104 };
105 
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 } // End namespace combustionModels
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #ifdef NoRepository
115  #include "noCombustion.C"
116 #endif
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
Foam::combustionModels::noCombustion::correct
virtual void correct()
Correct combustion rate.
Definition: noCombustion.C:57
noCombustion.C
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::combustionModels::noCombustion::TypeName
TypeName("none")
Runtime type information.
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::ThermoCombustion
Thermo model wrapper for combustion models.
Definition: ThermoCombustion.H:52
Foam::combustionModels::noCombustion::R
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: noCombustion.C:64
Foam::combustionModels::noCombustion::Qdot
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
Definition: noCombustion.C:79
ThermoCombustion.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Y
PtrList< volScalarField > & Y
Definition: createFieldRefs.H:7
Foam::combustionModels::noCombustion::~noCombustion
virtual ~noCombustion()
Destructor.
Definition: noCombustion.C:50
Foam::combustionModels::noCombustion
Dummy combustion model for 'no combustion'.
Definition: noCombustion.H:56
Foam::combustionModels::noCombustion::read
virtual bool read()
Update properties from given dictionary.
Definition: noCombustion.C:99
Foam::GeometricField< scalar, fvPatchField, volMesh >
turb
compressible::turbulenceModel & turb
Definition: setRegionFluidFields.H:10
Foam::compressibleTurbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: compressibleTurbulenceModel.H:54