|
|
|
SingleMixtureFraction.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::SingleMixtureFraction 00027 00028 Description 00029 Templated parcel multi-phase, multi-component class 00030 00031 SourceFiles 00032 SingleMixtureFraction.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef SingleMixtureFraction_H 00037 #define SingleMixtureFraction_H 00038 00039 #include "CompositionModel.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 /*---------------------------------------------------------------------------*\ 00047 Class SingleMixtureFraction Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 template<class CloudType> 00051 class SingleMixtureFraction 00052 : 00053 public CompositionModel<CloudType> 00054 { 00055 // Private data 00056 00057 // Indices of the phases 00058 00059 //- Gas 00060 label idGas_; 00061 00062 //- Liquid 00063 label idLiquid_; 00064 00065 //- Solid 00066 label idSolid_; 00067 00068 00069 // Mixture properties 00070 00071 //- Phase component total fractions 00072 scalarField YMixture0_; 00073 00074 00075 // Private member functions 00076 00077 //- Construct the indices and check correct specification of 00078 // 1 gas, 1 liquid and 1 solid 00079 void constructIds(); 00080 00081 00082 public: 00083 00084 //- Runtime type information 00085 TypeName("SingleMixtureFraction"); 00086 00087 00088 // Constructors 00089 00090 //- Construct from dictionary 00091 SingleMixtureFraction(const dictionary& dict, CloudType& owner); 00092 00093 00094 //- Destructor 00095 virtual ~SingleMixtureFraction(); 00096 00097 00098 // Member Functions 00099 00100 // Access 00101 00102 // Gas properties 00103 00104 //- Return the list of gas mass fractions 00105 const scalarField& YGas0() const; 00106 00107 //- Return the total gas mass fraction 00108 scalar YGasTot0() const; 00109 00110 00111 // Liquid properties 00112 00113 //- Return the list of liquid mass fractions 00114 const scalarField& YLiquid0() const; 00115 00116 //- Return the total liquid mass fraction 00117 scalar YLiquidTot0() const; 00118 00119 00120 // Solid properties 00121 00122 //- Return the list of solid mass fractions 00123 const scalarField& YSolid0() const; 00124 00125 //- Return the total solid mass fraction 00126 scalar YSolidTot0() const; 00127 00128 00129 // Mixture properties 00130 00131 //- Return the list of mixture mass fractions 00132 virtual const scalarField& YMixture0() const; 00133 00134 // Indices of gas, liquid and solid phases in phase properties 00135 // list 00136 00137 //- Gas id 00138 virtual label idGas() const; 00139 00140 //- Liquid id 00141 virtual label idLiquid() const; 00142 00143 //- Solid id 00144 virtual label idSolid() const; 00145 }; 00146 00147 00148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00149 00150 #ifdef NoRepository 00151 # include "SingleMixtureFraction.C" 00152 #endif 00153 00154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00155 00156 } // End namespace Foam 00157 00158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00159 00160 #endif 00161 00162 // ************************************************************************* // |