PaSR.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) 2011-2020 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::PaSR
26 
27 Description
28  Partially stirred reactor turbulent combustion model.
29 
30  This model calculates a finite rate, based on both turbulence and chemistry
31  time scales. Depending on mesh resolution, the Cmix parameter can be used
32  to scale the turbulence mixing time scale.
33 
34 SourceFiles
35  PaSR.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef PaSR_H
40 #define PaSR_H
41 
42 #include "../laminar/laminar.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace combustionModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class PaSR Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 template<class ReactionThermo>
56 class PaSR
57 :
58  public laminar<ReactionThermo>
59 {
60  // Private Data
61 
62  //- Mixing constant
63  scalar Cmix_;
64 
65  //- Mixing parameter
66  volScalarField kappa_;
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("PaSR");
73 
74 
75  // Constructors
76 
77  //- Construct from components
78  PaSR
79  (
80  const word& modelType,
81  const ReactionThermo& thermo,
83  const word& combustionProperties
84  );
85 
86  //- Disallow default bitwise copy construction
87  PaSR(const PaSR&);
88 
89 
90  //- Destructor
91  virtual ~PaSR();
92 
93 
94  // Member Functions
95 
96  //- Correct combustion rate
97  virtual void correct();
98 
99  //- Fuel consumption rate matrix.
100  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
101 
102  //- Heat release rate [kg/m/s^3]
103  virtual tmp<volScalarField> Qdot() const;
104 
105  //- Update properties from given dictionary
106  virtual bool read();
107 
108 
109  // Member Operators
110 
111  //- Disallow default bitwise assignment
112  void operator=(const PaSR&) = delete;
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace combustionModels
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #ifdef NoRepository
124  #include "PaSR.C"
125 #endif
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: PaSR.C:102
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s^3].
Definition: PaSR.C:110
void operator=(const PaSR &)=delete
Disallow default bitwise assignment.
PaSR(const word &modelType, const ReactionThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
Definition: PaSR.C:32
virtual bool read()
Update properties from given dictionary.
Definition: PaSR.C:121
virtual const ReactionThermo & thermo() const
Return const access to the thermo package.
Partially stirred reactor turbulent combustion model.
Definition: PaSR.H:55
Laminar combustion model.
Definition: laminar.H:51
A class for handling words, derived from string.
Definition: word.H:59
virtual void correct()
Correct combustion rate.
Definition: PaSR.C:67
PtrList< volScalarField > & Y
TypeName("PaSR")
Runtime type information.
virtual ~PaSR()
Destructor.
Definition: PaSR.C:60
A class for managing temporary objects.
Definition: PtrList.H:53
Abstract base class for turbulence models (RAS, LES and laminar).
Namespace for OpenFOAM.