|
|
|
kineticTheoryModel.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::kineticTheoryModel 00027 00028 Description 00029 00030 SourceFiles 00031 kineticTheoryModel.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef kineticTheoryModel_H 00036 #define kineticTheoryModel_H 00037 00038 #include "dragModel.H" 00039 #include "phaseModel.H" 00040 #include "autoPtr.H" 00041 #include "viscosityModel.H" 00042 #include "conductivityModel.H" 00043 #include "radialModel.H" 00044 #include "granularPressureModel.H" 00045 #include "frictionalStressModel.H" 00046 00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00048 00049 namespace Foam 00050 { 00051 00052 /*---------------------------------------------------------------------------*\ 00053 Class kineticTheoryModel Declaration 00054 \*---------------------------------------------------------------------------*/ 00055 00056 class kineticTheoryModel 00057 { 00058 // Private data 00059 00060 const phaseModel& phasea_; 00061 const volVectorField& Ua_; 00062 const volVectorField& Ub_; 00063 const volScalarField& alpha_; 00064 const surfaceScalarField& phia_; 00065 00066 const dragModel& draga_; 00067 00068 const dimensionedScalar& rhoa_; 00069 const dimensionedScalar& da_; 00070 const dimensionedScalar& nua_; 00071 00072 //- dictionary holding the modeling info 00073 IOdictionary kineticTheoryProperties_; 00074 00075 //- use kinetic theory or not. 00076 Switch kineticTheory_; 00077 00078 //- use generation == dissipation 00079 Switch equilibrium_; 00080 00081 autoPtr<kineticTheoryModels::viscosityModel> viscosityModel_; 00082 00083 autoPtr<conductivityModel> conductivityModel_; 00084 00085 autoPtr<radialModel> radialModel_; 00086 00087 autoPtr<granularPressureModel> granularPressureModel_; 00088 00089 autoPtr<frictionalStressModel> frictionalStressModel_; 00090 00091 //- coefficient of restitution 00092 const dimensionedScalar e_; 00093 00094 //- maximum packing 00095 const dimensionedScalar alphaMax_; 00096 00097 //- min value for which the frictional stresses are zero 00098 const dimensionedScalar alphaMinFriction_; 00099 00100 //- material constant for frictional normal stress 00101 const dimensionedScalar Fr_; 00102 00103 //- material constant for frictional normal stress 00104 const dimensionedScalar eta_; 00105 00106 //- material constant for frictional normal stress 00107 const dimensionedScalar p_; 00108 00109 //- angle of internal friction 00110 const dimensionedScalar phi_; 00111 00112 //- The granular energy/temperature 00113 volScalarField Theta_; 00114 00115 //- The granular viscosity 00116 volScalarField mua_; 00117 00118 //- The granular bulk viscosity 00119 volScalarField lambda_; 00120 00121 //- The granular pressure 00122 volScalarField pa_; 00123 00124 //- The granular temperature conductivity 00125 volScalarField kappa_; 00126 00127 //- The radial distribution function 00128 volScalarField gs0_; 00129 00130 00131 // Private Member Functions 00132 00133 //- Disallow default bitwise copy construct 00134 kineticTheoryModel(const kineticTheoryModel&); 00135 00136 //- Disallow default bitwise assignment 00137 void operator=(const kineticTheoryModel&); 00138 00139 00140 public: 00141 00142 // Constructors 00143 00144 //- Construct from components 00145 kineticTheoryModel 00146 ( 00147 const phaseModel& phasea, 00148 const volVectorField& Ub, 00149 const volScalarField& alpha, 00150 const dragModel& draga 00151 ); 00152 00153 00154 //- Destructor 00155 virtual ~kineticTheoryModel(); 00156 00157 00158 // Member Functions 00159 00160 void solve(); 00161 00162 bool on() const 00163 { 00164 return kineticTheory_; 00165 } 00166 00167 const volScalarField& mua() const 00168 { 00169 return mua_; 00170 } 00171 00172 const volScalarField& pa() const 00173 { 00174 return pa_; 00175 } 00176 00177 const volScalarField& lambda() const 00178 { 00179 return lambda_; 00180 } 00181 00182 const volScalarField& kappa() const 00183 { 00184 return kappa_; 00185 } 00186 }; 00187 00188 00189 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00190 00191 } // End namespace Foam 00192 00193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00194 00195 #endif 00196 00197 // ************************************************************************* // |