dummyTurbulenceModel.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6 \*---------------------------------------------------------------------------*/
7 
8 #include "dummyTurbulenceModel.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 {
49  // set turbulence variable to zero
50  forAll(this->nut_, idxI) this->nut_[idxI] = 0.0;
51  forAll(this->nut_.boundaryField(), patchI)
52  {
53  forAll(this->nut_.boundaryField()[patchI], faceI)
54  {
55  this->nut_.boundaryFieldRef()[patchI][faceI] = 0.0;
56  }
57  }
58 }
59 
60 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61 
62 template<class BasicTurbulenceModel>
64 {
65 
66  return true;
67 }
68 
69 template<class BasicTurbulenceModel>
71 {
72  return this->nut_;
73 }
74 
75 template<class BasicTurbulenceModel>
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
U
Definition: pEqnPimpleDyM.H:60
forAll
forAll(pseudoP.boundaryField(), patchI)
Definition: solvePseudoPEqn.H:10
dummyTurbulenceModel.H
Foam::RASModels::dummyTurbulenceModel::correct
virtual void correct()
Definition: dummyTurbulenceModel.C:82
Foam::RASModels::dummyTurbulenceModel
Definition: dummyTurbulenceModel.H:29
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
Foam::RASModels::dummyTurbulenceModel::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: dummyTurbulenceModel.H:43
Foam::RASModels::dummyTurbulenceModel::k
virtual tmp< volScalarField > k() const
Definition: dummyTurbulenceModel.C:70
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::RASModels::dummyTurbulenceModel::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: dummyTurbulenceModel.H:44
Foam::RASModels::dummyTurbulenceModel::correctNut
virtual void correctNut()
Definition: dummyTurbulenceModel.C:23
Foam::RASModels::dummyTurbulenceModel::epsilon
virtual tmp< volScalarField > epsilon() const
Definition: dummyTurbulenceModel.C:76
Foam::RASModels::dummyTurbulenceModel::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: dummyTurbulenceModel.H:42
Foam::RASModels::dummyTurbulenceModel::read
virtual bool read()
Definition: dummyTurbulenceModel.C:63
rho
volScalarField & rho
Definition: createRefsRhoSimpleC.H:8