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& combustionProperties,
76  const word& phaseName
77  );
78 
79 
80  //- Destructor
81  virtual ~noCombustion();
82 
83 
84  // Member Functions
85 
86  //- Correct combustion rate
87  virtual void correct();
88 
89  //- Fuel consumption rate matrix
90  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
91 
92  //- Heat release rate [kg/m/s3]
93  virtual tmp<volScalarField> Qdot() const;
94 
95  //- Update properties from given dictionary
96  virtual bool read();
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace combustionModels
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #ifdef NoRepository
108  #include "noCombustion.C"
109 #endif
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #endif
114 
115 // ************************************************************************* //
virtual ~noCombustion()
Destructor.
Definition: noCombustion.C:47
TypeName("noCombustion")
Runtime type information.
virtual bool read()
Update properties from given dictionary.
Definition: noCombustion.C:101
virtual void correct()
Correct combustion rate.
Definition: noCombustion.C:54
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
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: noCombustion.C:61
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
Definition: noCombustion.C:76