1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 \*---------------------------------------------------------------------------*/
39 #include "basicMultiComponentMixture.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class egrMixture Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class ThermoType>
53 public basicMultiComponentMixture
57 static const int nSpecies_ = 3;
58 static const char* specieNames_[3];
60 dimensionedScalar stoicRatio_;
66 mutable ThermoType mixture_;
77 //- Construct as copy (not implemented)
78 egrMixture(const egrMixture<ThermoType>&);
83 //- The type of thermodynamics this mixture is instantiated for
84 typedef ThermoType thermoType;
89 //- Construct from dictionary and mesh
90 egrMixture(const dictionary&, const fvMesh&);
100 const dimensionedScalar& stoicRatio() const
105 const ThermoType& mixture
112 const ThermoType& cellMixture(const label celli) const
114 return mixture(ft_[celli], b_[celli], egr_[celli]);
117 const ThermoType& patchFaceMixture
125 ft_.boundaryField()[patchi][facei],
126 b_.boundaryField()[patchi][facei],
127 egr_.boundaryField()[patchi][facei]
131 const ThermoType& cellReactants(const label celli) const
133 return mixture(ft_[celli], 1, egr_[celli]);
136 const ThermoType& patchFaceReactants
144 ft_.boundaryField()[patchi][facei],
146 egr_.boundaryField()[patchi][facei]
150 const ThermoType& cellProducts(const label celli) const
152 return mixture(ft_[celli], 0, 0);
155 const ThermoType& patchFaceProducts
163 ft_.boundaryField()[patchi][facei],
170 void read(const dictionary&);
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 } // End namespace Foam
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
181 # include "egrMixture.C"
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 // ************************************************************************* //