All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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-2020 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 BasicMomentumTransportModel>
63 :
64  public SpalartAllmarasDES<BasicMomentumTransportModel>
65 {
66  // Private Member Functions
67 
69  (
70  const volScalarField::Internal& magGradU
71  ) const;
72 
74  (
75  const volScalarField::Internal& magGradU
76  ) const;
77 
78 
79 protected:
80 
81  // Protected Member Functions
82 
83  using IOobject::modelName;
84 
85  //- Length scale
87  (
90  const volTensorField::Internal& gradU
91  ) const;
92 
93 
94 public:
95 
96  typedef typename BasicMomentumTransportModel::alphaField alphaField;
97  typedef typename BasicMomentumTransportModel::rhoField rhoField;
98  typedef typename BasicMomentumTransportModel::transportModel transportModel;
99 
100 
101  //- Runtime type information
102  TypeName("SpalartAllmarasDDES");
103 
104 
105  // Constructors
106 
107  //- Construct from components
109  (
110  const alphaField& alpha,
111  const rhoField& rho,
112  const volVectorField& U,
113  const surfaceScalarField& alphaRhoPhi,
114  const surfaceScalarField& phi,
115  const transportModel& transport,
116  const word& type = typeName
117  );
118 
119  //- Disallow default bitwise copy construction
120  SpalartAllmarasDDES(const SpalartAllmarasDDES&) = delete;
121 
122 
123  //- Destructor
124  virtual ~SpalartAllmarasDDES()
125  {}
126 
127 
128  // Member Operators
129 
130  //- Disallow default bitwise assignment
131  void operator=(const SpalartAllmarasDDES&) = delete;
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace LESModels
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #ifdef NoRepository
143  #include "SpalartAllmarasDDES.C"
144 #endif
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 #endif
149 
150 // ************************************************************************* //
BasicMomentumTransportModel::transportModel transportModel
virtual tmp< volScalarField::Internal > dTilda(const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volTensorField::Internal &gradU) const
Length scale.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
SpalartAllmarasDDES(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
A class for handling words, derived from string.
Definition: word.H:59
phi
Definition: correctPhi.H:3
SpalartAllmaras DDES turbulence model for incompressible and compressible flows.
TypeName("SpalartAllmarasDDES")
Runtime type information.
tmp< volScalarField > fv1(const volScalarField &chi) const
BasicMomentumTransportModel::rhoField rhoField
void operator=(const SpalartAllmarasDDES &)=delete
Disallow default bitwise assignment.
U
Definition: pEqn.H:72
BasicMomentumTransportModel::alphaField alphaField
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
static word modelName(Name name, const word &model)
Return the name of the object within the given model.
A class for managing temporary objects.
Definition: PtrList.H:53
tmp< volScalarField > chi() const
Namespace for OpenFOAM.