FreeFOAM The Cross-Platform CFD Toolkit
infinitelyFastChemistry.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) 1991-2010 OpenCFD Ltd.
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::infinitelyFastChemistry
26 
27 Description
28  Simple infinitely fast chemistry combustion model based on the principle
29  mixed is burnt. Additional parameter C is used to distribute the heat
30  release rate.in time
31 
32 SourceFiles
33  infinitelyFastChemistry.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef infinitelyFastChemistry_H
38 #define infinitelyFastChemistry_H
39 
40 #include <finiteVolume/fvc.H>
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace combustionModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class infinitelyFastChemistry Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public combustionModel
57 {
58  // Private data
59 
60  //- Model constant
61  scalar C_;
62 
63  // Private Member Functions
64 
65  //- Disallow copy construct
67 
68  //- Disallow default bitwise assignment
69  void operator=(const infinitelyFastChemistry&);
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("infinitelyFastChemistry");
76 
77 
78  // Constructors
79 
80  //- Construct from components
82  (
85  const compressible::turbulenceModel& turbulence,
86  const surfaceScalarField& phi,
87  const volScalarField& rho
88  );
89 
90 
91  // Destructor
92 
93  virtual ~infinitelyFastChemistry();
94 
95 
96  // Member Functions
97 
98  //- Update properties from given dictionary
99  virtual bool read(const dictionary& combustionProperties);
100 
101  //- Correct combustion rate
102  virtual void correct();
103 
104  //- Return normalised consumption rate of (fu - fres)
105  virtual tmp<volScalarField> wFuelNorm() const;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace combustionModels
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #endif
117 
118 // ************************************************************************* //