00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::DispersionRASModel 00026 00027 Description 00028 00029 \*---------------------------------------------------------------------------*/ 00030 00031 #ifndef DispersionRASModel_H 00032 #define DispersionRASModel_H 00033 00034 #include <lagrangianIntermediate/DispersionModel.H> 00035 #include <compressibleRASModels/RASModel.H> 00036 00037 00038 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00039 00040 namespace Foam 00041 { 00042 00043 /*---------------------------------------------------------------------------*\ 00044 Class DispersionRASModel Declaration 00045 \*---------------------------------------------------------------------------*/ 00046 00047 template<class CloudType> 00048 class DispersionRASModel 00049 : 00050 public DispersionModel<CloudType> 00051 { 00052 protected: 00053 00054 // Protected data 00055 00056 //- Reference to the compressible turbulence model 00057 const compressible::RASModel& turbulence_; 00058 00059 // Locally cached turbulence fields 00060 00061 //- Turbulence k 00062 const volScalarField* kPtr_; 00063 00064 //- Take ownership of the k field 00065 bool ownK_; 00066 00067 //- Turbulence epsilon 00068 const volScalarField* epsilonPtr_; 00069 00070 //- Take ownership of the epsilon field 00071 bool ownEpsilon_; 00072 00073 00074 public: 00075 00076 //- Runtime type information 00077 TypeName("DispersionRASModel"); 00078 00079 00080 // Constructors 00081 00082 //- Construct from components 00083 DispersionRASModel 00084 ( 00085 const dictionary& dict, 00086 CloudType& owner 00087 ); 00088 00089 00090 //- Destructor 00091 virtual ~DispersionRASModel(); 00092 00093 00094 // Member Functions 00095 00096 //- Cache carrier fields 00097 virtual void cacheFields(const bool store); 00098 00099 //- Return const access to the turbulence model 00100 const compressible::RASModel& turbulence() const 00101 { 00102 return turbulence_; 00103 } 00104 }; 00105 00106 00107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00108 00109 } // End namespace Foam 00110 00111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00112 00113 #ifdef NoRepository 00114 # include <lagrangianIntermediate/DispersionRASModel.C> 00115 #endif 00116 00117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00118 00119 #endif 00120 00121 // ************************ vim: set sw=4 sts=4 et: ************************ //