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-2022 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  //- Length scale
85  (
88  const volTensorField::Internal& gradU
89  ) const;
90 
91 
92 public:
93 
94  typedef typename BasicMomentumTransportModel::alphaField alphaField;
95  typedef typename BasicMomentumTransportModel::rhoField rhoField;
96 
97 
98  //- Runtime type information
99  TypeName("SpalartAllmarasDDES");
100 
101 
102  // Constructors
103 
104  //- Construct from components
106  (
107  const alphaField& alpha,
108  const rhoField& rho,
109  const volVectorField& U,
110  const surfaceScalarField& alphaRhoPhi,
111  const surfaceScalarField& phi,
112  const viscosity& viscosity,
113  const word& type = typeName
114  );
115 
116  //- Disallow default bitwise copy construction
117  SpalartAllmarasDDES(const SpalartAllmarasDDES&) = delete;
118 
119 
120  //- Destructor
121  virtual ~SpalartAllmarasDDES()
122  {}
123 
124 
125  // Member Operators
126 
127  //- Disallow default bitwise assignment
128  void operator=(const SpalartAllmarasDDES&) = delete;
129 };
130 
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 } // End namespace LESModels
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #ifdef NoRepository
140  #include "SpalartAllmarasDDES.C"
141 #endif
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
SpalartAllmaras DDES turbulence model for incompressible and compressible flows.
BasicMomentumTransportModel::alphaField alphaField
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.
void operator=(const SpalartAllmarasDDES &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField::Internal > dTilda(const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volTensorField::Internal &gradU) const
Length scale.
TypeName("SpalartAllmarasDDES")
Runtime type information.
BasicMomentumTransportModel::rhoField rhoField
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
tmp< volScalarField > chi() const
tmp< volScalarField > fv1(const volScalarField &chi) const
A class for managing temporary objects.
Definition: tmp.H:55
Abstract base class for all fluid physical properties.
Definition: viscosity.H:50
A class for handling words, derived from string.
Definition: word.H:62
U
Definition: pEqn.H:72
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Namespace for OpenFOAM.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488