kOmegaSSTFIML.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6 \*---------------------------------------------------------------------------*/
7 
8 #include "kOmegaSSTFIML.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  omega_(
49  IOobject(
50  "omega",
51  this->runTime_.timeName(),
52  this->mesh_,
53  IOobject::MUST_READ,
54  IOobject::AUTO_WRITE),
55  this->mesh_),
56  k_(
57  IOobject(
58  "k",
59  this->runTime_.timeName(),
60  this->mesh_,
61  IOobject::MUST_READ,
62  IOobject::AUTO_WRITE),
63  this->mesh_),
64  y_(wallDist::New(this->mesh_).y())
65 
66 {
67 }
68 
69 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
70 
71 template<class BasicTurbulenceModel>
73 {
74 
75  return true;
76 }
77 
78 template<class BasicTurbulenceModel>
79 tmp<volScalarField> kOmegaSSTFIML<BasicTurbulenceModel>::k() const
80 {
81  return this->nut_;
82 }
83 
84 template<class BasicTurbulenceModel>
86 {
87  return this->nut_;
88 }
89 
90 template<class BasicTurbulenceModel>
92 {
93 }
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 } // End namespace RASModels
98 } // End namespace Foam
99 
100 // ************************************************************************* //
Foam::RASModels::kOmegaSSTFIML
Definition: kOmegaSSTFIML.H:30
U
U
Definition: pEqnPimpleDyM.H:60
Foam::RASModels::kOmegaSSTFIML::correct
virtual void correct()
Definition: kOmegaSSTFIML.C:91
Foam::RASModels::kOmegaSSTFIML::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: kOmegaSSTFIML.H:58
Foam::RASModels::kOmegaSSTFIML::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: kOmegaSSTFIML.H:57
kOmegaSSTFIML.H
Foam::RASModels::kOmegaSSTFIML::epsilon
virtual tmp< volScalarField > epsilon() const
Definition: kOmegaSSTFIML.C:85
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
Foam::RASModels::kOmegaSSTFIML::k
virtual tmp< volScalarField > k() const
Definition: kOmegaSSTFIML.C:79
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::RASModels::kOmegaSSTFIML::read
virtual bool read()
Definition: kOmegaSSTFIML.C:72
Foam::RASModels::kOmegaSSTFIML::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: kOmegaSSTFIML.H:59
Foam::RASModels::kOmegaSSTFIML::correctNut
virtual void correctNut()
Definition: kOmegaSSTFIML.C:23
rho
volScalarField & rho
Definition: createRefsRhoSimpleC.H:8