FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

kineticTheoryModel.H

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