SpalartAllmarasDDES.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 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 Description
28  SpalartAllmaras DDES turbulence model for incompressible and compressible
29  flows
30 
31  Reference:
32  \verbatim
33  Spalart, P. R., Deck, S., Shur, M. L., Squires, K. D., Strelets, M. K.,
34  & Travin, A. (2006).
35  A new version of detached-eddy simulation, resistant to ambiguous grid
36  densities.
37  Theoretical and computational fluid dynamics, 20(3), 181-195.
38  \endverbatim
39 
40 SourceFiles
41  SpalartAllmarasDDES.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef SpalartAllmarasDDES_H
46 #define SpalartAllmarasDDES_H
47 
48 #include "SpalartAllmarasDES.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 namespace LESModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class SpalartAllmarasDDES Declaration
59 \*---------------------------------------------------------------------------*/
60 
61 template<class BasicTurbulenceModel>
63 :
64  public SpalartAllmarasDES<BasicTurbulenceModel>
65 {
66  // Private Member Functions
67 
68  tmp<volScalarField> fd(const volScalarField& magGradU) const;
69 
70  tmp<volScalarField> rd(const volScalarField& magGradU) const;
71 
72 
73 protected:
74 
75  // Protected Member Functions
76 
77  //- Length scale
79  (
80  const volScalarField& chi,
81  const volScalarField& fv1,
82  const volTensorField& gradU
83  ) const;
84 
85 
86 public:
87 
88  typedef typename BasicTurbulenceModel::alphaField alphaField;
89  typedef typename BasicTurbulenceModel::rhoField rhoField;
90  typedef typename BasicTurbulenceModel::transportModel transportModel;
91 
92 
93  //- Runtime type information
94  TypeName("SpalartAllmarasDDES");
95 
96 
97  // Constructors
98 
99  //- Construct from components
101  (
102  const alphaField& alpha,
103  const rhoField& rho,
104  const volVectorField& U,
105  const surfaceScalarField& alphaRhoPhi,
106  const surfaceScalarField& phi,
107  const transportModel& transport,
108  const word& propertiesName = turbulenceModel::propertiesName,
109  const word& type = typeName
110  );
111 
112  //- Disallow default bitwise copy construction
113  SpalartAllmarasDDES(const SpalartAllmarasDDES&) = delete;
114 
115 
116  //- Destructor
117  virtual ~SpalartAllmarasDDES()
118  {}
119 
120 
121  // Member Operators
122 
123  //- Disallow default bitwise assignment
124  void operator=(const SpalartAllmarasDDES&) = delete;
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace LESModels
131 } // End namespace Foam
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 #ifdef NoRepository
136  #include "SpalartAllmarasDDES.C"
137 #endif
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
surfaceScalarField & phi
BasicTurbulenceModel::transportModel transportModel
SpalartAllmarasDDES(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
Construct from components.
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
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
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Length scale.
SpalartAllmaras DDES turbulence model for incompressible and compressible flows.
TypeName("SpalartAllmarasDDES")
Runtime type information.
BasicTurbulenceModel::rhoField rhoField
tmp< volScalarField > fv1(const volScalarField &chi) const
void operator=(const SpalartAllmarasDDES &)=delete
Disallow default bitwise assignment.
U
Definition: pEqn.H:72
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
Definition: PtrList.H:53
tmp< volScalarField > chi() const
Namespace for OpenFOAM.