initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / turbulenceModels / incompressible / LES / SpalartAllmarasIDDES / IDDESDelta / IDDESDelta.H
blob44cfb918cde75adb50133bd9af4c556df8c7a309
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2008-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::IDDESDelta
28 Description
29     IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model)
30     The min and max delta are calculated using the double distance of the min or
31     max from the face centre to the cell centre.
33 SourceFiles
34     IDDESDelta.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef IDDESDeltaDelta_H
39 #define IDDESDeltaDelta_H
41 #include "LESdelta.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 /*---------------------------------------------------------------------------*\
49                          Class IDDESDelta Declaration
50 \*---------------------------------------------------------------------------*/
52 class IDDESDelta
54     public LESdelta
56     // Private data
58         scalar deltaCoeff_;
59         scalar cw_;
62     // Private Member Functions
64         //- Disallow default bitwise copy construct and assignment
65         IDDESDelta(const IDDESDelta&);
66         void operator=(const IDDESDelta&);
68         //- Calculate the delta values
69         void calcDelta();
72 public:
74     //- Runtime type information
75     TypeName("IDDESDelta");
78     // Constructors
80         //- Construct from name, mesh and IOdictionary
81         IDDESDelta
82         (
83             const word& name,
84             const fvMesh& mesh,
85             const dictionary&
86         );
89     // Destructor
91         ~IDDESDelta()
92         {}
95     // Member Functions
97         //- Read the LESdelta dictionary
98         void read(const dictionary&);
100         // Correct values
101         void correct();
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 } // End namespace Foam
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 #endif
113 // ************************************************************************* //