1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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
26 Foam::SingleMixtureFraction
29 Templated parcel multi-phase, multi-component class
32 SingleMixtureFraction.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef SingleMixtureFraction_H
37 #define SingleMixtureFraction_H
39 #include "CompositionModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class SingleMixtureFraction Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class CloudType>
51 class SingleMixtureFraction
53 public CompositionModel<CloudType>
57 // Indices of the phases
71 //- Phase component total fractions
72 scalarField YMixture0_;
75 // Private member functions
77 //- Construct the indices and check correct specification of
78 // 1 gas, 1 liquid and 1 solid
84 //- Runtime type information
85 TypeName("SingleMixtureFraction");
90 //- Construct from dictionary
91 SingleMixtureFraction(const dictionary& dict, CloudType& owner);
95 virtual ~SingleMixtureFraction();
104 //- Return the list of gas mass fractions
105 const scalarField& YGas0() const;
107 //- Return the total gas mass fraction
108 scalar YGasTot0() const;
113 //- Return the list of liquid mass fractions
114 const scalarField& YLiquid0() const;
116 //- Return the total liquid mass fraction
117 scalar YLiquidTot0() const;
122 //- Return the list of solid mass fractions
123 const scalarField& YSolid0() const;
125 //- Return the total solid mass fraction
126 scalar YSolidTot0() const;
129 // Mixture properties
131 //- Return the list of mixture mass fractions
132 virtual const scalarField& YMixture0() const;
134 // Indices of gas, liquid and solid phases in phase properties
138 virtual label idGas() const;
141 virtual label idLiquid() const;
144 virtual label idSolid() const;
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 # include "SingleMixtureFraction.C"
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace Foam
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 // ************************************************************************* //