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-2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::LESModels::LESeddyViscosity
29
30Group
31 grpLESTurbulence
32
33Description
34 Eddy viscosity LES SGS model base class
35
36SourceFiles
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
49namespace Foam
50{
51namespace LESModels
52{
53
54/*---------------------------------------------------------------------------*\
55 Class LESeddyViscosity Declaration
56\*---------------------------------------------------------------------------*/
57
58template<class BasicTurbulenceModel>
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
72public:
74 typedef typename BasicTurbulenceModel::alphaField alphaField;
75 typedef typename BasicTurbulenceModel::rhoField rhoField;
76 typedef typename BasicTurbulenceModel::transportModel transportModel;
77
78
79 // Constructors
80
81 //- Construct from components
83 (
84 const word& type,
85 const alphaField& alpha,
86 const rhoField& rho,
87 const volVectorField& U,
88 const surfaceScalarField& alphaRhoPhi,
90 const transportModel& transport,
91 const word& propertiesName = turbulenceModel::propertiesName
92 );
93
94
95 //- Destructor
96 virtual ~LESeddyViscosity() = default;
97
98
99 // Member Functions
100
101 //- Read model coefficients if they have changed
102 virtual bool read();
103};
104
105
106// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107
108} // End namespace LESModels
109} // End namespace Foam
110
111// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112
113#ifdef NoRepository
114 #include "LESeddyViscosity.C"
115#endif
116
117// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118
119#endif
120
121// ************************************************************************* //
surfaceScalarField & phi
Eddy viscosity LES SGS model base class.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
virtual ~LESeddyViscosity()=default
Destructor.
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
Eddy viscosity turbulence model base class.
Definition: eddyViscosity.H:58
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
Definition: word.H:68
U
Definition: pEqn.H:72
Namespace for OpenFOAM.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:598
volScalarField & alpha