kOmegaSSTSAS.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) 2015-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::RASModels::kOmegaSSTSAS
26 
27 Description
28  Scale-adaptive URAS model based on the k-omega-SST RAS model.
29 
30  References:
31  \verbatim
32  Egorov, Y., & Menter F.R. (2008).
33  Development and Application of SST-SAS Model in the DESIDER Project.
34  Advances in Hybrid RANS-LES Modelling,
35  Notes on Num. Fluid Mech. And Multidisciplinary Design,
36  Volume 97, 261-270.
37  \endverbatim
38 
39  The model coefficients are
40  \verbatim
41  kOmegaSSTSASCoeffs
42  {
43  // Default SST coefficients
44  alphaK1 0.85;
45  alphaK2 1.0;
46  alphaOmega1 0.5;
47  alphaOmega2 0.856;
48  beta1 0.075;
49  beta2 0.0828;
50  betaStar 0.09;
51  gamma1 5/9;
52  gamma2 0.44;
53  a1 0.31;
54  b1 1.0;
55  c1 10.0;
56  F3 no;
57 
58  // Default SAS coefficients
59  Cs 0.11;
60  kappa 0.41;
61  zeta2 3.51;
62  sigmaPhi 2.0/3.0;
63  C 2;
64 
65  // Delta must be specified for SAS e.g.
66  delta cubeRootVol;
67 
68  cubeRootVolCoeffs
69  {}
70  }
71  \endverbatim
72 
73 SourceFiles
74  kOmegaSSTSAS.C
75 
76 \*---------------------------------------------------------------------------*/
77 
78 #ifndef kOmegaSSTSAS_H
79 #define kOmegaSSTSAS_H
80 
81 #include "kOmegaSST.H"
82 #include "LESdelta.H"
83 
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 
86 namespace Foam
87 {
88 namespace RASModels
89 {
90 
91 /*---------------------------------------------------------------------------*\
92  Class kOmegaSSTSAS Declaration
93 \*---------------------------------------------------------------------------*/
94 
95 template<class BasicMomentumTransportModel>
96 class kOmegaSSTSAS
97 :
98  public kOmegaSST<BasicMomentumTransportModel>
99 {
100 protected:
101 
102  // Protected data
103 
104  // Model constants
105 
111 
112 
113  // Fields
114 
115  //- Run-time selectable delta model
117 
118 
119  // Protected Member Functions
120 
121  //- SAS omega source
122  virtual tmp<fvScalarMatrix> Qsas
123  (
124  const volScalarField::Internal& S2,
127  ) const;
128 
129 
130 public:
131 
132  typedef typename BasicMomentumTransportModel::alphaField alphaField;
133  typedef typename BasicMomentumTransportModel::rhoField rhoField;
134 
135 
136  //- Runtime type information
137  TypeName("kOmegaSSTSAS");
138 
139 
140  // Constructors
141 
142  //- Construct from components
144  (
145  const alphaField& alpha,
146  const rhoField& rho,
147  const volVectorField& U,
148  const surfaceScalarField& alphaRhoPhi,
149  const surfaceScalarField& phi,
150  const viscosity& viscosity,
151  const word& type = typeName
152  );
153 
154  //- Disallow default bitwise copy construction
155  kOmegaSSTSAS(const kOmegaSSTSAS&) = delete;
156 
157 
158  //- Destructor
159  virtual ~kOmegaSSTSAS()
160  {}
161 
162 
163  // Member Functions
164 
165  //- Re-read model coefficients if they have changed
166  virtual bool read();
167 
168  //- Access function to filter width
169  inline const volScalarField& delta() const
170  {
171  return delta_();
172  }
173 
174 
175  // Member Operators
176 
177  //- Disallow default bitwise assignment
178  void operator=(const kOmegaSSTSAS&) = delete;
179 };
180 
181 
182 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 
184 } // End namespace RASModels
185 } // End namespace Foam
186 
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 
189 #ifdef NoRepository
190  #include "kOmegaSSTSAS.C"
191 #endif
192 
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 
195 #endif
196 
197 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
Scale-adaptive URAS model based on the k-omega-SST RAS model.
Definition: kOmegaSSTSAS.H:98
BasicMomentumTransportModel::alphaField alphaField
Definition: kOmegaSSTSAS.H:131
dimensionedScalar sigmaPhi_
Definition: kOmegaSSTSAS.H:108
autoPtr< Foam::LESdelta > delta_
Run-time selectable delta model.
Definition: kOmegaSSTSAS.H:115
TypeName("kOmegaSSTSAS")
Runtime type information.
kOmegaSSTSAS(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.
Definition: kOmegaSSTSAS.C:98
virtual tmp< fvScalarMatrix > Qsas(const volScalarField::Internal &S2, const volScalarField::Internal &gamma, const volScalarField::Internal &beta) const
SAS omega source.
Definition: kOmegaSSTSAS.C:40
void operator=(const kOmegaSSTSAS &)=delete
Disallow default bitwise assignment.
virtual ~kOmegaSSTSAS()
Destructor.
Definition: kOmegaSSTSAS.H:158
const volScalarField & delta() const
Access function to filter width.
Definition: kOmegaSSTSAS.H:168
virtual bool read()
Re-read model coefficients if they have changed.
Definition: kOmegaSSTSAS.C:179
BasicMomentumTransportModel::rhoField rhoField
Definition: kOmegaSSTSAS.H:132
Specialisation for RAS of the generic kOmegaSSTBase base class. For more information,...
Definition: kOmegaSST.H:64
tmp< volScalarField::Internal > gamma(const volScalarField::Internal &F1) const
tmp< volScalarField::Internal > beta(const volScalarField::Internal &F1) const
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
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