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-2018 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  // Disallow default bitwise copy construct and assignment
74  void operator=(const SpalartAllmarasDDES&);
75 
76 
77 protected:
78 
79  // Protected Member Functions
80 
81  //- Length scale
83  (
84  const volScalarField& chi,
85  const volScalarField& fv1,
86  const volTensorField& gradU
87  ) const;
88 
89 
90 public:
91 
92  typedef typename BasicTurbulenceModel::alphaField alphaField;
93  typedef typename BasicTurbulenceModel::rhoField rhoField;
94  typedef typename BasicTurbulenceModel::transportModel transportModel;
95 
96 
97  //- Runtime type information
98  TypeName("SpalartAllmarasDDES");
99 
100 
101  // Constructors
102 
103  //- Construct from components
105  (
106  const alphaField& alpha,
107  const rhoField& rho,
108  const volVectorField& U,
109  const surfaceScalarField& alphaRhoPhi,
110  const surfaceScalarField& phi,
111  const transportModel& transport,
112  const word& propertiesName = turbulenceModel::propertiesName,
113  const word& type = typeName
114  );
115 
116 
117  //- Destructor
118  virtual ~SpalartAllmarasDDES()
119  {}
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace LESModels
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #ifdef NoRepository
131  #include "SpalartAllmarasDDES.C"
132 #endif
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
surfaceScalarField & phi
BasicTurbulenceModel::transportModel transportModel
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
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:481
U
Definition: pEqn.H:72
A class for managing temporary objects.
Definition: PtrList.H:53
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
tmp< volScalarField > chi() const
Namespace for OpenFOAM.