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