SpalartAllmarasDDES.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) 2011-2016 OpenFOAM Foundation
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::SpalartAllmarasDDES
26 
27 Group
28  grpDESTurbulence
29 
30 Description
31  SpalartAllmaras DDES turbulence model for incompressible and compressible
32  flows
33 
34  Reference:
35  \verbatim
36  Spalart, P. R., Deck, S., Shur, M. L., Squires, K. D., Strelets, M. K.,
37  & Travin, A. (2006).
38  A new version of detached-eddy simulation, resistant to ambiguous grid
39  densities.
40  Theoretical and computational fluid dynamics, 20(3), 181-195.
41  \endverbatim
42 
43 SourceFiles
44  SpalartAllmarasDDES.C
45 
46 \*---------------------------------------------------------------------------*/
47 
48 #ifndef SpalartAllmarasDDES_H
49 #define SpalartAllmarasDDES_H
50 
51 #include "SpalartAllmarasDES.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace LESModels
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class SpalartAllmarasDDES Declaration
62 \*---------------------------------------------------------------------------*/
63 
64 template<class BasicTurbulenceModel>
66 :
67  public SpalartAllmarasDES<BasicTurbulenceModel>
68 {
69  // Private Member Functions
70 
71  tmp<volScalarField> fd(const volScalarField& magGradU) const;
72 
73  tmp<volScalarField> rd(const volScalarField& magGradU) const;
74 
75  // Disallow default bitwise copy construct and assignment
77  void operator=(const SpalartAllmarasDDES&);
78 
79 
80 protected:
81 
82  // Protected Member Functions
83 
84  //- Length scale
86  (
87  const volScalarField& chi,
88  const volScalarField& fv1,
89  const volTensorField& gradU
90  ) const;
91 
92 
93 public:
94 
95  typedef typename BasicTurbulenceModel::alphaField alphaField;
96  typedef typename BasicTurbulenceModel::rhoField rhoField;
97  typedef typename BasicTurbulenceModel::transportModel transportModel;
98 
99 
100  //- Runtime type information
101  TypeName("SpalartAllmarasDDES");
102 
103 
104  // Constructors
105 
106  //- Construct from components
108  (
109  const alphaField& alpha,
110  const rhoField& rho,
111  const volVectorField& U,
112  const surfaceScalarField& alphaRhoPhi,
113  const surfaceScalarField& phi,
114  const transportModel& transport,
115  const word& propertiesName = turbulenceModel::propertiesName,
116  const word& type = typeName
117  );
118 
119 
120  //- Destructor
121  virtual ~SpalartAllmarasDDES()
122  {}
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace LESModels
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #ifdef NoRepository
134  #include "SpalartAllmarasDDES.C"
135 #endif
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
surfaceScalarField & phi
U
Definition: pEqn.H:83
BasicTurbulenceModel::transportModel transportModel
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
tmp< volScalarField > fv1(const volScalarField &chi) const
tmp< volScalarField > chi() const
BasicTurbulenceModel::alphaField alphaField
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
Definition: word.H:59
SpalartAllmaras DDES turbulence model for incompressible and compressible flows.
TypeName("SpalartAllmarasDDES")
Runtime type information.
BasicTurbulenceModel::rhoField rhoField
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:461
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Length scale.
A class for managing temporary objects.
Definition: PtrList.H:54
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Namespace for OpenFOAM.