SpalartAllmarasFv3.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
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 
57  y_(wallDist::New(this->mesh_).y())
58 {
59 }
60 
61 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
62 
63 template<class BasicTurbulenceModel>
65 {
66  return true;
67 }
68 
69 template<class BasicTurbulenceModel>
71 {
72  return this->nut_;
73 }
74 
75 template<class BasicTurbulenceModel>
77 {
78 
79  return this->nut_;
80 }
81 
82 template<class BasicTurbulenceModel>
84 {
85 }
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 } // End namespace RASModels
90 } // End namespace Foam
91 
92 // ************************************************************************* //
U
U
Definition: pEqnPimpleDyM.H:60
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:76
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:83
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
Foam::RASModels::SpalartAllmarasFv3::k
virtual tmp< volScalarField > k() const
Definition: SpalartAllmarasFv3.C:70
Foam
Definition: multiFreqScalarFvPatchField.C:144
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:64
rho
volScalarField & rho
Definition: createRefsRhoSimpleC.H:8