laminar.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) 2013-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::laminar
28 
29 Group
30  grpCombustionModels
31 
32 Description
33  Laminar combustion model.
34 
35 SourceFiles
36  laminar.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef combustionModels_laminar_H
41 #define combustionModels_laminar_H
42 
43 #include "ChemistryCombustion.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace combustionModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class laminar Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<class ReactionThermo>
57 class laminar
58 :
59  public ChemistryCombustion<ReactionThermo>
60 {
61  // Private data
62 
63  //- Integrate reaction rate over the time-step
64  // using the selected ODE solver
65  bool integrateReactionRate_;
66 
67 protected:
68 
69  // Protected Member Functions
70 
71  //- Return the chemical time scale
72  tmp<volScalarField> tc() const;
73 
74 private:
75 
76  // Private Member Functions
77 
78  //- No copy construct
79  laminar(const laminar&) = delete;
80 
81  //- No copy assignment
82  void operator=(const laminar&) = delete;
83 
84 
85 public:
86 
87  //- Runtime type information
88  TypeName("laminar");
89 
90 
91  // Constructors
92 
93  //- Construct from components
94  laminar
95  (
96  const word& modelType,
97  ReactionThermo& thermo,
99  const word& combustionProperties
100  );
101 
102 
103  //- Destructor
104  virtual ~laminar();
105 
106 
107  // Member Functions
108 
109  //- Correct combustion rate
110  virtual void correct();
111 
112  //- Fuel consumption rate matrix.
113  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
114 
115  //- Heat release rate [kg/m/s3]
116  virtual tmp<volScalarField> Qdot() const;
117 
118  //- Update properties from given dictionary
119  virtual bool read();
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace combustionModels
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #ifdef NoRepository
131  #include "laminar.C"
132 #endif
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
Foam::combustionModels::laminar::tc
tmp< volScalarField > tc() const
Return the chemical time scale.
Definition: laminar.C:78
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::combustionModels::laminar::R
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: laminar.C:124
Foam::combustionModels::laminar::correct
virtual void correct()
Correct combustion rate.
Definition: laminar.C:85
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::combustionModels::laminar
Laminar combustion model.
Definition: laminar.H:56
Foam::combustionModels::laminar::Qdot
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
Definition: laminar.C:144
Foam::combustionModels::laminar::~laminar
virtual ~laminar()
Destructor.
Definition: laminar.C:70
Foam::ChemistryCombustion
Chemistry model wrapper for combustion models.
Definition: ChemistryCombustion.H:53
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Y
PtrList< volScalarField > & Y
Definition: createFieldRefs.H:7
Foam::combustionModels::laminar::read
virtual bool read()
Update properties from given dictionary.
Definition: laminar.C:174
ChemistryCombustion.H
Foam::combustionModels::laminar::TypeName
TypeName("laminar")
Runtime type information.
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