|
|
|
basicThermoParcel.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::basicThermoParcel 00027 00028 Description 00029 00030 00031 SourceFiles 00032 basicThermoParcel.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef basicThermoParcel_H 00037 #define basicThermoParcel_H 00038 00039 #include "ThermoParcel.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 /*---------------------------------------------------------------------------*\ 00047 Class basicThermoParcel Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 class basicThermoParcel 00051 : 00052 public ThermoParcel<basicThermoParcel> 00053 { 00054 00055 public: 00056 00057 //- Runtime type information 00058 TypeName("basicThermoParcel"); 00059 00060 // Constructors 00061 00062 //- Construct from owner, position, and cloud owner 00063 // Other properties initialised as null 00064 basicThermoParcel 00065 ( 00066 ThermoCloud<basicThermoParcel>& owner, 00067 const vector position, 00068 const label cellI 00069 ); 00070 00071 //- Construct from components 00072 basicThermoParcel 00073 ( 00074 ThermoCloud<basicThermoParcel>& owner, 00075 const vector position, 00076 const label cellI, 00077 const label typeId, 00078 const scalar nParticle0, 00079 const scalar d0, 00080 const vector U0, 00081 const constantProperties& constProps 00082 ); 00083 00084 //- Construct from Istream 00085 basicThermoParcel 00086 ( 00087 const Cloud<basicThermoParcel>& c, 00088 Istream& is, 00089 bool readFields = true 00090 ); 00091 00092 //- Construct as a copy 00093 basicThermoParcel(const basicThermoParcel& p); 00094 00095 //- Construct and return a clone 00096 autoPtr<basicThermoParcel> clone() const 00097 { 00098 return 00099 autoPtr<basicThermoParcel> 00100 ( 00101 new basicThermoParcel(*this) 00102 ); 00103 } 00104 00105 00106 //- Destructor 00107 virtual ~basicThermoParcel(); 00108 }; 00109 00110 00111 template<> 00112 inline bool contiguous<basicThermoParcel>() 00113 { 00114 return true; 00115 } 00116 00117 00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00119 00120 } // End namespace Foam 00121 00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00123 00124 #endif 00125 00126 // ************************************************************************* // |