SpalartAllmarasDDES.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2015 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 Group
28  grpDESTurbulence
29 
30 Description
31  SpalartAllmaras DDES turbulence model for incompressible and compressible
32  flows
33 
34  Reference:
35  \verbatim
36  Spalart, P. R., Deck, S., Shur, M. L., Squires, K. D., Strelets, M. K.,
37  & Travin, A. (2006).
38  A new version of detached-eddy simulation, resistant to ambiguous grid
39  densities.
40  Theoretical and computational fluid dynamics, 20(3), 181-195.
41  \endverbatim
42 
43 SourceFiles
44  SpalartAllmarasDDES.C
45 
46 \*---------------------------------------------------------------------------*/
47 
48 #ifndef SpalartAllmarasDDES_H
49 #define SpalartAllmarasDDES_H
50 
51 #include "SpalartAllmarasDES.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace LESModels
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class SpalartAllmarasDDES Declaration
62 \*---------------------------------------------------------------------------*/
63 
64 template<class BasicTurbulenceModel>
66 :
67  public SpalartAllmarasDES<BasicTurbulenceModel>
68 {
69  // Private Member Functions
70 
71  tmp<volScalarField> fd(const volScalarField& magGradU) const;
72 
73  tmp<volScalarField> rd(const volScalarField& magGradU) const;
74 
75  // Disallow default bitwise copy construct and assignment
78 
79 
80 protected:
81 
82  // Protected data
83 
84  // Model coefficients
85 
88 
89 
90  // Protected Member Functions
91 
92  //- Length scale
94  (
95  const volScalarField& chi,
96  const volScalarField& fv1,
97  const volTensorField& gradU
98  ) const;
99 
100 
101 public:
102 
103  typedef typename BasicTurbulenceModel::alphaField alphaField;
104  typedef typename BasicTurbulenceModel::rhoField rhoField;
105  typedef typename BasicTurbulenceModel::transportModel transportModel;
106 
107 
108  //- Runtime type information
109  TypeName("SpalartAllmarasDDES");
110 
111 
112  // Constructors
113 
114  //- Construct from components
116  (
117  const alphaField& alpha,
118  const rhoField& rho,
119  const volVectorField& U,
120  const surfaceScalarField& alphaRhoPhi,
121  const surfaceScalarField& phi,
122  const transportModel& transport,
123  const word& propertiesName = turbulenceModel::propertiesName,
124  const word& type = typeName
125  );
126 
127 
128  //- Destructor
129  virtual ~SpalartAllmarasDDES()
130  {}
131 
132 
133  // Member Functions
134 
135  //- Read from dictionary
136  virtual bool read();
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace LESModels
143 } // End namespace Foam
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #ifdef NoRepository
148 # include "SpalartAllmarasDDES.C"
149 #endif
150 
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 
153 #endif
154 
155 // ************************************************************************* //
Foam::LESModels::SpalartAllmarasDDES::TypeName
TypeName("SpalartAllmarasDDES")
Runtime type information.
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::LESModels::SpalartAllmarasDDES::rd
tmp< volScalarField > rd(const volScalarField &magGradU) const
Definition: SpalartAllmarasDDES.C:39
Foam::LESModels::SpalartAllmarasDDES::~SpalartAllmarasDDES
virtual ~SpalartAllmarasDDES()
Destructor.
Definition: SpalartAllmarasDDES.H:128
Foam::LESModels::SpalartAllmarasDDES::dTilda
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Length scale.
Definition: SpalartAllmarasDDES.C:79
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:216
Foam::LESModels::SpalartAllmarasDDES::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: SpalartAllmarasDDES.H:103
Foam::LESModels::SpalartAllmarasDDES::read
virtual bool read()
Read from dictionary.
Definition: SpalartAllmarasDDES.C:158
Foam::turbulenceModel::propertiesName
static const word propertiesName
Default name of the turbulence properties dictionary.
Definition: turbulenceModel.H:97
Foam::LESModels::SpalartAllmarasDES
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
Definition: SpalartAllmarasDES.H:72
Foam::LESModels::DESModel::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: DESModel.H:71
U
U
Definition: pEqn.H:46
Foam::LESModels::SpalartAllmarasDES::chi
tmp< volScalarField > chi() const
Definition: SpalartAllmarasDES.C:38
Foam::LESModels::SpalartAllmarasDDES::SpalartAllmarasDDES
SpalartAllmarasDDES(const SpalartAllmarasDDES &)
Foam::LESModels::SpalartAllmarasDDES::Cd2_
dimensionedScalar Cd2_
Definition: SpalartAllmarasDDES.H:86
Foam::dimensioned
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
SpalartAllmarasDES.H
Foam::LESModels::DESModel::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: DESModel.H:72
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
SpalartAllmarasDDES.C
Foam::LESModels::SpalartAllmarasDDES::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: SpalartAllmarasDDES.H:104
rho
rho
Definition: pEqn.H:3
Foam::LESModels::SpalartAllmarasDDES::fd
tmp< volScalarField > fd(const volScalarField &magGradU) const
Definition: SpalartAllmarasDDES.C:67
Foam::LESModels::SpalartAllmarasDDES
SpalartAllmaras DDES turbulence model for incompressible and compressible flows.
Definition: SpalartAllmarasDDES.H:64
Foam::LESModels::SpalartAllmarasDDES::operator=
SpalartAllmarasDDES & operator=(const SpalartAllmarasDDES &)
Foam::LESModels::SpalartAllmarasDDES::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: SpalartAllmarasDDES.H:102
Foam::LESModels::SpalartAllmarasDDES::Cd1_
dimensionedScalar Cd1_
Definition: SpalartAllmarasDDES.H:85
Foam::LESModels::DESModel::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: DESModel.H:70
Foam::type
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:588
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::LESModels::SpalartAllmarasDES::fv1
tmp< volScalarField > fv1(const volScalarField &chi) const
Definition: SpalartAllmarasDES.C:46