SpalartAllmarasFv3.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v4
5 
6 \*---------------------------------------------------------------------------*/
7 
8 #include "SpalartAllmarasFv3.H"
9 #include "fvOptions.H"
10 #include "bound.H"
11 #include "wallDist.H"
12 
13 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
14 
15 namespace Foam
16 {
17 namespace RASModels
18 {
19 
20 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
21 
22 template<class BasicTurbulenceModel>
24 {
25 }
26 
27 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
28 
29 template<class BasicTurbulenceModel>
31  const alphaField& alpha,
32  const rhoField& rho,
33  const volVectorField& U,
34  const surfaceScalarField& alphaRhoPhi,
35  const surfaceScalarField& phi,
36  const transportModel& transport,
37  const word& propertiesName,
38  const word& type)
39  : eddyViscosity<RASModel<BasicTurbulenceModel>>(
40  type,
41  alpha,
42  rho,
43  U,
44  alphaRhoPhi,
45  phi,
46  transport,
47  propertiesName),
48  nuTilda_(
49  IOobject(
50  "nuTilda",
51  this->runTime_.timeName(),
52  this->mesh_,
53  IOobject::MUST_READ,
54  IOobject::AUTO_WRITE),
55  this->mesh_),
56  y_(wallDist::New(this->mesh_).y())
57 {
58 }
59 
60 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61 
62 template<class BasicTurbulenceModel>
64 {
65  return true;
66 }
67 
68 template<class BasicTurbulenceModel>
70 {
71  return this->nut_;
72 }
73 
74 template<class BasicTurbulenceModel>
76 {
77 
78  return this->nut_;
79 }
80 
81 template<class BasicTurbulenceModel>
83 {
84 }
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 } // End namespace RASModels
89 } // End namespace Foam
90 
91 // ************************************************************************* //
U
volVectorField & U
Definition: createRefsPimpleDyM.H:7
SpalartAllmarasFv3.H
Foam::RASModels::SpalartAllmarasFv3::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: SpalartAllmarasFv3.H:58
Foam::RASModels::SpalartAllmarasFv3::epsilon
virtual tmp< volScalarField > epsilon() const
Definition: SpalartAllmarasFv3.C:75
Foam::RASModels::SpalartAllmarasFv3::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: SpalartAllmarasFv3.H:56
Foam::RASModels::SpalartAllmarasFv3::correctNut
virtual void correctNut()
Definition: SpalartAllmarasFv3.C:23
Foam::RASModels::SpalartAllmarasFv3::correct
virtual void correct()
Definition: SpalartAllmarasFv3.C:82
Foam::RASModels::SpalartAllmarasFv3::k
virtual tmp< volScalarField > k() const
Definition: SpalartAllmarasFv3.C:69
phi
surfaceScalarField & phi
Definition: createRefsPimpleDyM.H:8
Foam
Definition: checkGeometry.C:32
rho
volScalarField & rho
Definition: createRefsRhoPimple.H:8
Foam::RASModels::SpalartAllmarasFv3
Definition: SpalartAllmarasFv3.H:32
Foam::RASModels::SpalartAllmarasFv3::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: SpalartAllmarasFv3.H:57
Foam::RASModels::SpalartAllmarasFv3::read
virtual bool read()
Definition: SpalartAllmarasFv3.C:63