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 | Copyright (C) 2011-2016 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 Class
25  Foam::combustionModels::noCombustion
26 
27 Description
28  Dummy combustion model for 'no combustion'
29 
30 SourceFiles
31  noCombustion.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef noCombustion_H
36 #define noCombustion_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 namespace Foam
41 {
42 namespace combustionModels
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class noCombustion Declaration
47 \*---------------------------------------------------------------------------*/
48 
49 template<class CombThermoType>
50 class noCombustion
51 :
52  public CombThermoType
53 {
54 
55  //- Disallow copy construct
56  noCombustion(const noCombustion&);
57 
58  //- Disallow default bitwise assignment
59  void operator=(const noCombustion&);
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("noCombustion");
66 
67 
68  // Constructors
69 
70  //- Construct from components
72  (
73  const word& modelType,
74  const fvMesh& mesh,
75  const word& phaseName
76  );
77 
78 
79  //- Destructor
80  virtual ~noCombustion();
81 
82 
83  // Member Functions
84 
85  // Evolution
86 
87  //- Correct combustion rate
88  virtual void correct();
89 
90  //- Fuel consumption rate matrix
91  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
92 
93  //- Heat release rate calculated from fuel consumption rate matrix
94  virtual tmp<volScalarField> dQ() const;
95 
96  //- Return source for enthalpy equation [kg/m/s3]
97  virtual tmp<volScalarField> Sh() const;
98 
99  // IO
100 
101  //- Update properties from given dictionary
102  virtual bool read();
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace combustionModels
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #ifdef NoRepository
114  #include "noCombustion.C"
115 #endif
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
virtual ~noCombustion()
Destructor.
Definition: noCombustion.C:46
TypeName("noCombustion")
Runtime type information.
virtual bool read()
Update properties from given dictionary.
Definition: noCombustion.C:128
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: noCombustion.C:62
virtual void correct()
Correct combustion rate.
Definition: noCombustion.C:53
Dummy combustion model for &#39;no combustion&#39;.
Definition: noCombustion.H:49
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
PtrList< volScalarField > & Y
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual tmp< volScalarField > Sh() const
Return source for enthalpy equation [kg/m/s3].
Definition: noCombustion.C:103
virtual tmp< volScalarField > dQ() const
Heat release rate calculated from fuel consumption rate matrix.
Definition: noCombustion.C:77
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.