|
|
|
ReactingMultiphaseCloud.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) 2008-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::ReactingMultiphaseCloud 00027 00028 Description 00029 Templated base class for multiphase reacting cloud 00030 00031 - Adds to reacting cloud 00032 - multiphase composition 00033 - devolatilisatsion 00034 - surface reactions 00035 00036 SourceFiles 00037 ReactingMultiphaseCloudI.H 00038 ReactingMultiphaseCloud.C 00039 00040 \*---------------------------------------------------------------------------*/ 00041 00042 #ifndef ReactingMultiphaseCloud_H 00043 #define ReactingMultiphaseCloud_H 00044 00045 #include "ReactingCloud.H" 00046 #include "reactingMultiphaseCloud.H" 00047 00048 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00049 00050 namespace Foam 00051 { 00052 00053 // Forward declaration of classes 00054 00055 template<class CloudType> 00056 class DevolatilisationModel; 00057 00058 template<class CloudType> 00059 class SurfaceReactionModel; 00060 00061 /*---------------------------------------------------------------------------*\ 00062 Class ReactingMultiphaseCloud Declaration 00063 \*---------------------------------------------------------------------------*/ 00064 00065 template<class ParcelType> 00066 class ReactingMultiphaseCloud 00067 : 00068 public ReactingCloud<ParcelType>, 00069 public reactingMultiphaseCloud 00070 { 00071 // Private member functions 00072 00073 //- Disallow default bitwise copy construct 00074 ReactingMultiphaseCloud(const ReactingMultiphaseCloud&); 00075 00076 //- Disallow default bitwise assignment 00077 void operator=(const ReactingMultiphaseCloud&); 00078 00079 00080 protected: 00081 00082 // Protected data 00083 00084 //- Parcel constant properties 00085 typename ParcelType::constantProperties constProps_; 00086 00087 00088 // References to the cloud sub-models 00089 00090 //- Devolatilisation model 00091 autoPtr 00092 < 00093 DevolatilisationModel<ReactingMultiphaseCloud<ParcelType> > 00094 > 00095 devolatilisationModel_; 00096 00097 //- Surface reaction model 00098 autoPtr 00099 < 00100 SurfaceReactionModel<ReactingMultiphaseCloud<ParcelType> > 00101 > 00102 surfaceReactionModel_; 00103 00104 00105 // Check 00106 00107 //- Total mass transferred to continuous phase via devolatilisation 00108 scalar dMassDevolatilisation_; 00109 00110 //- Total mass transferred to continuous phase via surface 00111 // reactions 00112 scalar dMassSurfaceReaction_; 00113 00114 00115 // Protected member functions 00116 00117 // Cloud evolution functions 00118 00119 //- Pre-evolve 00120 void preEvolve(); 00121 00122 //- Post-evolve 00123 void postEvolve(); 00124 00125 00126 public: 00127 00128 // Constructors 00129 00130 //- Construct given carrier gas fields 00131 ReactingMultiphaseCloud 00132 ( 00133 const word& cloudName, 00134 const volScalarField& rho, 00135 const volVectorField& U, 00136 const dimensionedVector& g, 00137 basicThermo& thermo 00138 ); 00139 00140 00141 //- Destructor 00142 virtual ~ReactingMultiphaseCloud(); 00143 00144 00145 //- Type of parcel the cloud was instantiated for 00146 typedef ParcelType parcelType; 00147 00148 00149 // Member Functions 00150 00151 // Access 00152 00153 //- Return the constant properties 00154 inline const typename ParcelType::constantProperties& 00155 constProps() const; 00156 00157 00158 // Sub-models 00159 00160 //- Return reference to devolatilisation model 00161 inline const DevolatilisationModel 00162 < 00163 ReactingMultiphaseCloud<ParcelType> 00164 >& 00165 devolatilisation() const; 00166 00167 //- Return reference to reacting surface reaction model 00168 inline const SurfaceReactionModel 00169 < 00170 ReactingMultiphaseCloud<ParcelType> 00171 >& 00172 surfaceReaction() const; 00173 00174 00175 // Check 00176 00177 //- Print cloud information 00178 void info() const; 00179 00180 //- Add to cumulative volatilisation mass transfer 00181 void addToMassDevolatilisation(const scalar dMass); 00182 00183 //- Add to cumulative surface reaction transfer 00184 void addToMassSurfaceReaction(const scalar dMass); 00185 00186 00187 // Cloud evolution functions 00188 00189 //- Check parcel properties 00190 void checkParcelProperties 00191 ( 00192 ParcelType& parcel, 00193 const scalar lagrangianDt, 00194 const bool fullyDescribed 00195 ); 00196 00197 //- Reset the spray source terms 00198 void resetSourceTerms(); 00199 00200 //- Evolve the spray (inject, move) 00201 void evolve(); 00202 }; 00203 00204 00205 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00206 00207 } // End namespace Foam 00208 00209 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00210 00211 #include "ReactingMultiphaseCloudI.H" 00212 00213 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00214 00215 #ifdef NoRepository 00216 # include "ReactingMultiphaseCloud.C" 00217 #endif 00218 00219 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00220 00221 #endif 00222 00223 // ************************************************************************* // |