|
|
|
spectEddyVisc.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::incompressible::LESModels::spectEddyVisc 00027 00028 Description 00029 The Isochoric spectral Eddy Viscosity Model for incompressible flows. 00030 00031 Algebraic eddy viscosity SGS model founded on the assumption that 00032 local equilibrium prevail and that viscous effects may be of importance. 00033 00034 Thus, 00035 @verbatim 00036 B = 2/3*k*I - 2*nuSgs*dev(D) 00037 Beff = 2/3*k*I - 2*nuEff*dev(D) 00038 00039 where 00040 00041 k = cK1*delta^(2/3)*eps^(2/3)*exp(-cK2*delta^(4/3)*nu*eps^(-1/3)) - 00042 ck3*sqrt(eps*nu)*erfc(ck4*delta^(-2/3)*sqrt(nu)*eps^(-1/6))) 00043 00044 nuEff = nu/(1 - exp(-cB*pow((nu/nuEff), 1.0/3.0)*pow(Re, -2.0/3.0))) 00045 nuSgs = nuEff - nu 00046 00047 Re = delta^2*mag(D)/nu 00048 @endverbatim 00049 00050 SourceFiles 00051 spectEddyVisc.C 00052 00053 \*---------------------------------------------------------------------------*/ 00054 00055 #ifndef spectEddyVisc_H 00056 #define spectEddyVisc_H 00057 00058 #include "GenEddyVisc.H" 00059 00060 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00061 00062 namespace Foam 00063 { 00064 namespace incompressible 00065 { 00066 namespace LESModels 00067 { 00068 00069 /*---------------------------------------------------------------------------*\ 00070 Class spectEddyVisc Declaration 00071 \*---------------------------------------------------------------------------*/ 00072 00073 class spectEddyVisc 00074 : 00075 public GenEddyVisc 00076 { 00077 // Private data 00078 00079 dimensionedScalar cB_; 00080 dimensionedScalar cK1_; 00081 dimensionedScalar cK2_; 00082 dimensionedScalar cK3_; 00083 dimensionedScalar cK4_; 00084 00085 00086 // Private Member Functions 00087 00088 //- Update sub-grid scale fields 00089 void updateSubGridScaleFields(const volTensorField& gradU); 00090 00091 // Disallow default bitwise copy construct and assignment 00092 spectEddyVisc(const spectEddyVisc&); 00093 spectEddyVisc& operator=(const spectEddyVisc&); 00094 00095 00096 public: 00097 00098 //- Runtime type information 00099 TypeName("spectEddyVisc"); 00100 00101 // Constructors 00102 00103 // Construct from components 00104 spectEddyVisc 00105 ( 00106 const volVectorField& U, 00107 const surfaceScalarField& phi, 00108 transportModel& transport 00109 ); 00110 00111 00112 //- Destructor 00113 virtual ~spectEddyVisc() 00114 {} 00115 00116 00117 // Member Functions 00118 00119 //- Return SGS kinetic energy 00120 virtual tmp<volScalarField> k() const; 00121 00122 //- Correct Eddy-Viscosity and related properties 00123 virtual void correct(const tmp<volTensorField>&); 00124 00125 //- Read LESProperties dictionary 00126 virtual bool read(); 00127 }; 00128 00129 00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00131 00132 } // End namespace LESModels 00133 } // End namespace incompressible 00134 } // End namespace Foam 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 #endif 00139 00140 // ************************************************************************* // |