|
|
|
hPsiMixtureThermo.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) 1991-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::hPsiMixtureThermo 00027 00028 Description 00029 Foam::hPsiMixtureThermo 00030 00031 SourceFiles 00032 hPsiMixtureThermo.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef hPsiMixtureThermo_H 00037 #define hPsiMixtureThermo_H 00038 00039 #include "hCombustionThermo.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 /*---------------------------------------------------------------------------*\ 00047 Class hPsiMixtureThermo Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 template<class MixtureType> 00051 class hPsiMixtureThermo 00052 : 00053 public hCombustionThermo, 00054 public MixtureType 00055 { 00056 // Private member functions 00057 00058 void calculate(); 00059 00060 //- Construct as copy (not implemented) 00061 hPsiMixtureThermo(const hPsiMixtureThermo<MixtureType>&); 00062 00063 00064 public: 00065 00066 //- Runtime type information 00067 TypeName("hPsiMixtureThermo"); 00068 00069 00070 // Constructors 00071 00072 //- Construct from mesh 00073 hPsiMixtureThermo(const fvMesh&); 00074 00075 00076 //- Destructor 00077 virtual ~hPsiMixtureThermo(); 00078 00079 00080 // Member functions 00081 00082 //- Return the compostion of the multi-component mixture 00083 virtual basicMultiComponentMixture& composition() 00084 { 00085 return *this; 00086 } 00087 00088 //- Return the compostion of the multi-component mixture 00089 virtual const basicMultiComponentMixture& composition() const 00090 { 00091 return *this; 00092 } 00093 00094 //- Update properties 00095 virtual void correct(); 00096 00097 //- Sensible enthalpy [J/kg] 00098 virtual tmp<volScalarField> hs() const; 00099 00100 //- Chemical enthalpy [J/kg] 00101 virtual tmp<volScalarField> hc() const; 00102 00103 00104 // Fields derived from thermodynamic state variables 00105 00106 //- Enthalpy for cell-set [J/kg] 00107 virtual tmp<scalarField> h 00108 ( 00109 const scalarField& T, 00110 const labelList& cells 00111 ) const; 00112 00113 //- Enthalpy for patch [J/kg] 00114 virtual tmp<scalarField> h 00115 ( 00116 const scalarField& T, 00117 const label patchi 00118 ) const; 00119 00120 //- Heat capacity at constant pressure for patch [J/kg/K] 00121 virtual tmp<scalarField> Cp 00122 ( 00123 const scalarField& T, 00124 const label patchi 00125 ) const; 00126 00127 //- Heat capacity at constant pressure [J/kg/K] 00128 virtual tmp<volScalarField> Cp() const; 00129 00130 00131 //- Read thermophysicalProperties dictionary 00132 virtual bool read(); 00133 }; 00134 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 } // End namespace Foam 00139 00140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00141 00142 #ifdef NoRepository 00143 # include "hPsiMixtureThermo.C" 00144 #endif 00145 00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00147 00148 #endif 00149 00150 // ************************************************************************* // |