kOmegaSSTFIML.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  Description:
7  kOmegaSST turbulence model with a multiplicative betaFieldInversion
8  field.
9 
10 \*---------------------------------------------------------------------------*/
11 
12 #ifndef kOmegaSSTFIML_H
13 #define kOmegaSSTFIML_H
14 
15 #include "RASModel.H"
16 #include "eddyViscosity.H"
17 
18 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19 
20 namespace Foam
21 {
22 namespace RASModels
23 {
24 
25 /*---------------------------------------------------------------------------*\
26  Class kOmegaSSTFIML Declaration
27 \*---------------------------------------------------------------------------*/
28 
29 template<class BasicTurbulenceModel>
31  : public eddyViscosity<RASModel<BasicTurbulenceModel>>
32 {
33  // Private Member Functions
34 
35  // Disallow default bitwise copy construct and assignment
37  void operator=(const kOmegaSSTFIML&);
38 
39 protected:
40  // Protected data
41 
42  // Fields
43 
45  volScalarField omega_;
46 
47  volScalarField k_;
48 
49  //- Wall distance
50  // Note: different to wall distance in parent RASModel
51  // which is for near-wall cells only
52  const volScalarField& y_;
53 
54  virtual void correctNut();
55 
56 public:
57  typedef typename BasicTurbulenceModel::alphaField alphaField;
58  typedef typename BasicTurbulenceModel::rhoField rhoField;
59  typedef typename BasicTurbulenceModel::transportModel transportModel;
60 
61  //- Runtime type information
62  TypeName("kOmegaSSTFIML");
63 
64  // Constructors
65 
66  //- Construct from components
68  const alphaField& alpha,
69  const rhoField& rho,
70  const volVectorField& U,
71  const surfaceScalarField& alphaRhoPhi,
72  const surfaceScalarField& phi,
73  const transportModel& transport,
74  const word& propertiesName = turbulenceModel::propertiesName,
75  const word& type = typeName);
76 
77  //- Destructor
78  virtual ~kOmegaSSTFIML()
79  {
80  }
81 
82  // Member Functions
83 
84  //- Re-read model coefficients if they have changed
85  virtual bool read();
86 
87  //- Return the turbulence kinetic energy
88  virtual tmp<volScalarField> k() const;
89 
90  //- Return the turbulence kinetic energy dissipation rate
91  virtual tmp<volScalarField> epsilon() const;
92 
93  //- Solve the turbulence equations and correct the turbulence viscosity
94  virtual void correct();
95 };
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace RASModels
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #ifdef NoRepository
105 #include "kOmegaSSTFIML.C"
106 #endif
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
Foam::RASModels::kOmegaSSTFIML
Definition: kOmegaSSTFIML.H:30
kOmegaSSTFIML.C
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
Foam::RASModels::kOmegaSSTFIML::omega_
volScalarField omega_
turbulence variables for k-omega SST
Definition: kOmegaSSTFIML.H:45
Foam::RASModels::kOmegaSSTFIML::epsilon
virtual tmp< volScalarField > epsilon() const
Definition: kOmegaSSTFIML.C:85
Foam::RASModels::kOmegaSSTFIML::TypeName
TypeName("kOmegaSSTFIML")
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
Foam::RASModels::kOmegaSSTFIML::k
virtual tmp< volScalarField > k() const
Definition: kOmegaSSTFIML.C:79
Foam::RASModels::kOmegaSSTFIML::y_
const volScalarField & y_
Definition: kOmegaSSTFIML.H:52
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::RASModels::kOmegaSSTFIML::~kOmegaSSTFIML
virtual ~kOmegaSSTFIML()
Definition: kOmegaSSTFIML.H:78
Foam::RASModels::kOmegaSSTFIML::read
virtual bool read()
Definition: kOmegaSSTFIML.C:72
Foam::RASModels::kOmegaSSTFIML::k_
volScalarField k_
Definition: kOmegaSSTFIML.H:47
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