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