|
|
|
basicPsiThermo.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::basicPsiThermo 00027 00028 Description 00029 Basic thermodynamic properties based on compressibility 00030 00031 SourceFiles 00032 basicPsiThermo.C 00033 newBasicPsiThermo.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef basicPsiThermo_H 00038 #define basicPsiThermo_H 00039 00040 #include "basicThermo.H" 00041 #include "runTimeSelectionTables.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class basicPsiThermo Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class basicPsiThermo 00053 : 00054 public basicThermo 00055 { 00056 00057 protected: 00058 00059 // Protected member functions 00060 00061 //- Construct as copy (not implemented) 00062 basicPsiThermo(const basicPsiThermo&); 00063 00064 00065 public: 00066 00067 //- Runtime type information 00068 TypeName("basicPsiThermo"); 00069 00070 00071 //- Declare run-time constructor selection table 00072 declareRunTimeSelectionTable 00073 ( 00074 autoPtr, 00075 basicPsiThermo, 00076 fvMesh, 00077 (const fvMesh& mesh), 00078 (mesh) 00079 ); 00080 00081 // Constructors 00082 00083 //- Construct from mesh 00084 basicPsiThermo(const fvMesh&); 00085 00086 00087 //- Selector 00088 static autoPtr<basicPsiThermo> New(const fvMesh&); 00089 00090 //- Destructor 00091 virtual ~basicPsiThermo(); 00092 00093 00094 // Member functions 00095 00096 // Fields derived from thermodynamic state variables 00097 00098 //- Density [kg/m^3] - uses current value of pressure 00099 virtual tmp<volScalarField> rho() const 00100 { 00101 return p_*psi(); 00102 } 00103 }; 00104 00105 00106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00107 00108 } // End namespace Foam 00109 00110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00111 00112 #endif 00113 00114 // ************************************************************************* // |