laminar.H
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) 2013-2023 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::laminar
26 
27 Description
28  Laminar combustion model.
29 
30 SourceFiles
31  laminar.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef laminar_H
36 #define laminar_H
37 
38 #include "autoPtr.H"
39 #include "combustionModel.H"
40 #include "basicChemistryModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace combustionModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class laminar Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class laminar
54 :
55  public combustionModel
56 {
57  // Private Data
58 
59  //- Integrate reaction rate over the time-step
60  // using the selected ODE solver. Default true.
61  bool integrateReactionRate_;
62 
63  //- Maximum integration time permitted. Default vGreat.
64  scalar maxIntegrationTime_;
65 
66  //- Run chemistry rate calculation on every outer iteration. Default
67  // false. Has no effect if integrating.
68  bool outerCorrect_;
69 
70  //- The time index of the last correction
71  label timeIndex_;
72 
73 protected:
74 
75  // Protected Data
76 
77  //- Pointer to chemistry model
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("laminar");
85 
86 
87  // Constructors
88 
89  //- Construct from components
90  laminar
91  (
92  const word& modelType,
95  const word& combustionProperties
96  );
97 
98  //- Disallow default bitwise copy construction
99  laminar(const laminar&) = delete;
100 
101 
102  //- Destructor
103  virtual ~laminar();
104 
105 
106  // Member Functions
107 
108  //- Correct combustion rate
109  virtual void correct();
110 
111  //- Specie consumption rate field
112  virtual tmp<volScalarField::Internal> R(const label speciei) const;
113 
114  //- Specie consumption rate matrix
115  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
116 
117  //- Heat release rate [kg/m/s^3]
118  virtual tmp<volScalarField> Qdot() const;
119 
120  //- Update properties from given dictionary
121  virtual bool read();
122 
123 
124  // Member Operators
125 
126  //- Disallow default bitwise assignment
127  void operator=(const laminar&) = delete;
128 };
129 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 } // End namespace combustionModels
134 } // End namespace Foam
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Base class for combustion models.
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
Laminar combustion model.
Definition: laminar.H:55
laminar(const word &modelType, const fluidMulticomponentThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
Definition: laminar.C:46
virtual void correct()
Correct combustion rate.
Definition: laminar.C:94
virtual ~laminar()
Destructor.
Definition: laminar.C:88
TypeName("laminar")
Runtime type information.
autoPtr< basicChemistryModel > chemistryPtr_
Pointer to chemistry model.
Definition: laminar.H:77
void operator=(const laminar &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField::Internal > R(const label speciei) const
Specie consumption rate field.
Definition: laminar.C:131
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s^3].
Definition: laminar.C:150
virtual bool read()
Update properties from given dictionary.
Definition: laminar.C:156
Base class for single-phase compressible turbulence models.
Base-class for multi-component fluid thermodynamic properties.
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
PtrList< volScalarField > & Y