1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::incompressible::LESModels::scaleSimilarity
28 General base class for all scale similarity models
29 for incompressible flows.
31 Since such models do not work without additional eddy viscosity terms,
32 this class must be combined with an eddy viscosity model of some form.
37 \*---------------------------------------------------------------------------*/
39 #ifndef scaleSimilarity_H
40 #define scaleSimilarity_H
43 #include "LESfilter.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 namespace incompressible
54 /*---------------------------------------------------------------------------*\
55 Class scaleSimilarity Declaration
56 \*---------------------------------------------------------------------------*/
60 virtual public LESModel
64 autoPtr<LESfilter> filterPtr_;
68 // Private Member Functions
70 // Disallow default bitwise copy construct and assignment
71 scaleSimilarity(const scaleSimilarity&);
72 scaleSimilarity& operator=(const scaleSimilarity&);
77 //- Runtime type information
78 TypeName("scaleSimilarity");
82 //- Construct from components
85 const volVectorField& U,
86 const surfaceScalarField& phi,
87 transportModel& transport,
88 const word& turbulenceModelName = turbulenceModel::typeName,
89 const word& modelName = typeName
94 virtual ~scaleSimilarity()
100 //- Return the SGS turbulent kinetic energy.
101 virtual tmp<volScalarField> k() const;
103 //- Return the SGS turbulent dissipation.
104 virtual tmp<volScalarField> epsilon() const;
106 //- Return the sub-grid stress tensor.
107 virtual tmp<volSymmTensorField> B() const;
109 //- Return the deviatoric part of the effective sub-grid
110 // turbulence stress tensor including the laminar stress
111 virtual tmp<volSymmTensorField> devBeff() const;
113 //- Return the deviatoric part of the divergence of Beff
114 // i.e. the additional term in the filtered NSE.
115 virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const;
117 //- Correct Eddy-Viscosity and related properties
118 virtual void correct(const tmp<volTensorField>&);
120 //- Read LESProperties dictionary
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 } // End namespace LESModels
128 } // End namespace incompressible
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 // ************************************************************************* //