LESeddyViscosity.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::LESModels::LESeddyViscosity
26 
27 Description
28  Eddy viscosity LES SGS model base class
29 
30 SourceFiles
31  LESeddyViscosity.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef LESeddyViscosity_H
36 #define LESeddyViscosity_H
37 
38 #include "LESModel.H"
39 #include "eddyViscosity.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace LESModels
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class LESeddyViscosity Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 template<class BasicTurbulenceModel>
53 class LESeddyViscosity
54 :
55  public eddyViscosity<LESModel<BasicTurbulenceModel>>
56 {
57  // Private Member Functions
58 
59  // Disallow default bitwise copy construct and assignment
61  void operator=(const LESeddyViscosity&);
62 
63 
64 protected:
65 
66  // Protected data
67 
69 
70 
71 public:
72 
73  typedef typename BasicTurbulenceModel::alphaField alphaField;
74  typedef typename BasicTurbulenceModel::rhoField rhoField;
75  typedef typename BasicTurbulenceModel::transportModel transportModel;
76 
77 
78  // Constructors
79 
80  //- Construct from components
82  (
83  const word& type,
84  const alphaField& alpha,
85  const rhoField& rho,
86  const volVectorField& U,
87  const surfaceScalarField& alphaRhoPhi,
88  const surfaceScalarField& phi,
89  const transportModel& transport,
90  const word& propertiesName = turbulenceModel::propertiesName
91  );
92 
93 
94  //- Destructor
95  virtual ~LESeddyViscosity()
96  {}
97 
98 
99  // Member Functions
100 
101  //- Read model coefficients if they have changed
102  virtual bool read();
103 
104  //- Return sub-grid disipation rate
105  virtual tmp<volScalarField> epsilon() const;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace LESModels
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #ifdef NoRepository
117  #include "LESeddyViscosity.C"
118 #endif
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
Eddy viscosity LES SGS model base class.
virtual ~LESeddyViscosity()
Destructor.
surfaceScalarField & phi
BasicTurbulenceModel::transportModel transportModel
Eddy viscosity turbulence model base class.
Definition: eddyViscosity.H:49
BasicTurbulenceModel::alphaField alphaField
virtual tmp< volScalarField > epsilon() const
Return sub-grid disipation rate.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
Definition: word.H:59
virtual bool read()
Read model coefficients if they have changed.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:481
U
Definition: pEqn.H:72
BasicTurbulenceModel::rhoField rhoField
A class for managing temporary objects.
Definition: PtrList.H:53
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Namespace for OpenFOAM.