1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::incompressible::LESModels::scaleSimilarity
29 General base class for all scale similarity models
30 for incompressible flows.
32 Since such models do not work without additional eddy viscosity terms,
33 this class must be combined with an eddy viscosity model of some form.
38 \*---------------------------------------------------------------------------*/
40 #ifndef scaleSimilarity_H
41 #define scaleSimilarity_H
44 #include "LESfilter.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 namespace incompressible
55 /*---------------------------------------------------------------------------*\
56 Class scaleSimilarity Declaration
57 \*---------------------------------------------------------------------------*/
61 virtual public LESModel
65 autoPtr<LESfilter> filterPtr_;
69 // Private Member Functions
71 // Disallow default bitwise copy construct and assignment
72 scaleSimilarity(const scaleSimilarity&);
73 scaleSimilarity& operator=(const scaleSimilarity&);
78 //- Runtime type information
79 TypeName("scaleSimilarity");
83 //- Construct from components
86 const volVectorField& U,
87 const surfaceScalarField& phi,
88 transportModel& transport
99 //- Return the SGS turbulent kinetic energy.
100 tmp<volScalarField> k() const;
102 //- Return the SGS turbulent dissipation.
103 tmp<volScalarField> epsilon() const;
105 //- Return the sub-grid stress tensor.
106 tmp<volSymmTensorField> B() const;
108 //- Return the deviatoric part of the effective sub-grid
109 // turbulence stress tensor including the laminar stress
110 tmp<volSymmTensorField> devBeff() const;
112 //- Return the deviatoric part of the divergence of Beff
113 // i.e. the additional term in the filtered NSE.
114 tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const;
116 //- Correct Eddy-Viscosity and related properties
117 void correct(const tmp<volTensorField>&);
119 //- Read turbulenceProperties dictionary
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 } // End namespace LESModels
127 } // End namespace incompressible
128 } // End namespace Foam
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 // ************************************************************************* //