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