OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

basic.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-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::PDRDragModels::basic
00027 
00028 Description
00029     Basic sub-grid obstacle drag model.
00030     Details supplied by J Puttock 2/7/06.
00031 
00032     <b> Sub-grid drag term </b>
00033 
00034     The resistance term (force per unit of volume) is given by:
00035 
00036     \f[
00037         R = -\frac{1}{2} \rho \vert \dwea{\vec{U}} \vert \dwea{\vec{U}}.D
00038     \f]
00039 
00040     where:
00041 
00042         \f$ D \f$ is the tensor field "CR" in \f$ m^{-1} \f$
00043 
00044         This is term is treated implicitly in UEqn.H
00045 
00046     <b> Sub-grid turbulence generation </b>
00047 
00048     The turbulence source term \f$ G_{R} \f$ occurring in the
00049     \f$ \kappa-\epsilon \f$ equations for the generation of turbulence due
00050     to interaction with unresolved obstacles :
00051 
00052     \f$ G_{R} = C_{s}\beta_{\nu}
00053     \mu_{eff} A_{w}^{2}(\dwea{\vec{U}}-\dwea{\vec{U}_{s}})^2 + \frac{1}{2}
00054     \rho \vert \dwea{\vec{U}} \vert \dwea{\vec{U}}.T.\dwea{\vec{U}} \f$
00055 
00056     where:
00057 
00058         \f$ C_{s} \f$ = 1
00059 
00060         \f$ \beta_{\nu} \f$ is the volume porosity (file "betav").
00061 
00062         \f$ \mu_{eff} \f$ is the effective viscosity.
00063 
00064         \f$ A_{w}^{2}\f$ is the obstacle surface area per unit of volume
00065         (file "Aw").
00066 
00067         \f$ \dwea{\vec{U}_{s}} \f$ is the slip velocity and is considered
00068         \f$ \frac{1}{2}. \dwea{\vec{U}} \f$.
00069 
00070         \f$ T \f$ is a tensor in the file CT.
00071 
00072     The term \f$ G_{R} \f$ is treated explicitly in the \f$ \kappa-\epsilon
00073     \f$ Eqs in the \link PDRkEpsilon.C \endlink file.
00074 
00075 
00076 SourceFiles
00077     basic.C
00078 
00079 \*---------------------------------------------------------------------------*/
00080 
00081 #ifndef basic_H
00082 #define basic_H
00083 
00084 #include "PDRDragModel.H"
00085 #include "XiEqModel.H"
00086 
00087 
00088 namespace Foam
00089 {
00090 namespace PDRDragModels
00091 {
00092 
00093 /*---------------------------------------------------------------------------*\
00094                           Class basic Declaration
00095 \*---------------------------------------------------------------------------*/
00096 
00097 class basic
00098 :
00099     public PDRDragModel
00100 {
00101     // Private data
00102 
00103         dimensionedScalar Csu;
00104         dimensionedScalar Csk;
00105 
00106         volScalarField Aw2_;
00107         volSymmTensorField CR_;
00108         volSymmTensorField CT_;
00109 
00110 
00111     // Private Member Functions
00112 
00113         //- Disallow copy construct
00114         basic(const basic&);
00115 
00116         //- Disallow default bitwise assignment
00117         void operator=(const basic&);
00118 
00119 
00120 public:
00121 
00122     //- Runtime type information
00123     TypeName("basic");
00124 
00125 
00126     // Constructors
00127 
00128         //- Construct from components
00129         basic
00130         (
00131             const dictionary& PDRProperties,
00132             const compressible::RASModel& turbulence,
00133             const volScalarField& rho,
00134             const volVectorField& U,
00135             const surfaceScalarField& phi
00136         );
00137 
00138 
00139     // Destructor
00140 
00141         virtual ~basic();
00142 
00143 
00144     // Member Functions
00145 
00146         //- Return the momentum drag coefficient
00147         virtual tmp<volSymmTensorField> Dcu() const;
00148 
00149         //- Return the momentum drag turbulence generation rate
00150         virtual tmp<volScalarField> Gk() const;
00151 
00152         //- Update properties from given dictionary
00153         virtual bool read(const dictionary& PDRProperties);
00154 };
00155 
00156 
00157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00158 
00159 } // End namespace PDRDragModels
00160 } // End namespace Foam
00161 
00162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00163 
00164 #endif
00165 
00166 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd