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-2021 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 
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 viscosity& viscosity,
115  const word& type = typeName
116  );
117 
118  //- Disallow default bitwise copy construction
119  SpalartAllmarasDDES(const SpalartAllmarasDDES&) = delete;
120 
121 
122  //- Destructor
123  virtual ~SpalartAllmarasDDES()
124  {}
125 
126 
127  // Member Operators
128 
129  //- Disallow default bitwise assignment
130  void operator=(const SpalartAllmarasDDES&) = delete;
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace LESModels
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #ifdef NoRepository
142  #include "SpalartAllmarasDDES.C"
143 #endif
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
virtual tmp< volScalarField::Internal > dTilda(const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volTensorField::Internal &gradU) const
Length scale.
U
Definition: pEqn.H:72
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 viscosity &viscosity, 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
Abstract base class for all fluid physical properties.
Definition: viscosity.H:49
BasicMomentumTransportModel::rhoField rhoField
void operator=(const SpalartAllmarasDDES &)=delete
Disallow default bitwise assignment.
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.