|
|
|
DeardorffDiffStress.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::compressible::LESModels::DeardorffDiffStress 00027 00028 Description 00029 Differential SGS Stress Equation Model for compressible flows 00030 00031 The DSEM uses a model version of the full balance equation for the SGS 00032 stress tensor to simulate the behaviour of B. 00033 Thus, 00034 @verbatim 00035 d/dt(rho*B) + div(rho*U*B) - div(muSgs*grad(B)) 00036 = 00037 P - c1*rho*epsilon/k*B - 0.667*(1 - c1)*rho*epsilon*I - c2*(P - 0.333*trP*I) 00038 00039 where 00040 00041 k = 0.5*trB, 00042 epsilon = ce*k^3/2/delta, 00043 epsilon/k = ce*k^1/2/delta 00044 P = -rho*(B'L + L'B) 00045 muSgs = ck*rho*sqrt(k)*delta 00046 muEff = muSgs + mu 00047 @endverbatim 00048 00049 SourceFiles 00050 DeardorffDiffStress.C 00051 00052 \*---------------------------------------------------------------------------*/ 00053 00054 #ifndef compressibleDeardorffDiffStress_H 00055 #define compressibleDeardorffDiffStress_H 00056 00057 #include "GenSGSStress.H" 00058 00059 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00060 00061 namespace Foam 00062 { 00063 namespace compressible 00064 { 00065 namespace LESModels 00066 { 00067 00068 /*---------------------------------------------------------------------------*\ 00069 Class DeardorffDiffStress Declaration 00070 \*---------------------------------------------------------------------------*/ 00071 00072 class DeardorffDiffStress 00073 : 00074 public GenSGSStress 00075 { 00076 // Private data 00077 00078 dimensionedScalar ck_; 00079 dimensionedScalar cm_; 00080 00081 00082 // Private Member Functions 00083 00084 //- Update sub-grid scale fields 00085 void updateSubGridScaleFields(const volScalarField& K); 00086 00087 // Disallow default bitwise copy construct and assignment 00088 DeardorffDiffStress(const DeardorffDiffStress&); 00089 DeardorffDiffStress& operator=(const DeardorffDiffStress&); 00090 00091 00092 public: 00093 00094 //- Runtime type information 00095 TypeName("DeardorffDiffStress"); 00096 00097 // Constructors 00098 00099 //- Constructor from components 00100 DeardorffDiffStress 00101 ( 00102 const volScalarField& rho, 00103 const volVectorField& U, 00104 const surfaceScalarField& phi, 00105 const basicThermo& thermoPhysicalModel 00106 ); 00107 00108 00109 //- Destructor 00110 virtual ~DeardorffDiffStress() 00111 {} 00112 00113 00114 // Member Functions 00115 00116 //- Return the effective diffusivity for B 00117 tmp<volScalarField> DBEff() const 00118 { 00119 return tmp<volScalarField> 00120 ( 00121 new volScalarField("DBEff", muSgs_ + mu()) 00122 ); 00123 } 00124 00125 //- Correct Eddy-Viscosity and related properties 00126 virtual void correct(const tmp<volTensorField>& gradU); 00127 00128 //- Read LESProperties dictionary 00129 virtual bool read(); 00130 }; 00131 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 } // End namespace LESModels 00136 } // End namespace compressible 00137 } // End namespace Foam 00138 00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00140 00141 #endif 00142 00143 // ************************************************************************* // |