FreeFOAM The Cross-Platform CFD Toolkit
SpalartAllmarasIDDES.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::LESmodels::SpalartAllmarasIDDES
26 
27 Description
28  SpalartAllmarasIDDES LES turbulence model for incompressible flows
29 
30 SourceFiles
31  SpalartAllmarasIDDES.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef SpalartAllmarasIDDES_H
36 #define SpalartAllmarasIDDES_H
37 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace incompressible
46 {
47 namespace LESModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class SpalartAllmarasIDDES Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public SpalartAllmaras
57 {
58  // Private data
59 
60  // Model constants
61 
62  autoPtr<LESdelta> hmax_;
63  autoPtr<LESdelta> IDDESDelta_;
64  dimensionedScalar fwStar_;
67 
68 
69  // Private member functions
70 
71  tmp<volScalarField> alpha() const;
72  tmp<volScalarField> ft(const volScalarField& S) const;
73  tmp<volScalarField> fl(const volScalarField& S) const;
74 
76  (
77  const volScalarField& visc,
78  const volScalarField& S
79  ) const;
80 
81  //- Delay function
82  tmp<volScalarField> fd(const volScalarField& S) const;
83 
84  // Disallow default bitwise copy construct and assignment
86  SpalartAllmarasIDDES& operator=(const SpalartAllmarasIDDES&);
87 
88 
89 protected:
90 
91  // Protected member functions
92 
93  //- Length scale
94  virtual tmp<volScalarField> dTilda(const volScalarField& S) const;
95 
96 
97 public:
98 
99  //- Runtime type information
100  TypeName("SpalartAllmarasIDDES");
101 
102 
103  // Constructors
104 
105  //- Construct from components
107  (
108  const volVectorField& U,
109  const surfaceScalarField& phi,
111  );
112 
113 
114  //- Destructor
116  {}
117 
118 
119  // Member Functions
120 
121  //- Access function to filter width
122  virtual const volScalarField& delta() const
123  {
124  return IDDESDelta_();
125  }
126 
127  //- Read LESProperties dictionary
128  virtual bool read();
129 };
130 
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 } // End namespace LESModels
135 } // End namespace incompressible
136 } // End namespace Foam
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #endif
141 
142 // ************************ vim: set sw=4 sts=4 et: ************************ //