DESModel.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) 2012-2015 OpenFOAM Foundation
9 Copyright (C) 2016 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::DESModel
29
30Description
31 Templated abstract base class for DES models
32
33SourceFiles
34 DESModel.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef LESModels_DESModel_H
39#define LESModels_DESModel_H
40
41#include "DESModelBase.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47namespace LESModels
48{
49
50/*---------------------------------------------------------------------------*\
51 Class DESModel Declaration
52\*---------------------------------------------------------------------------*/
53
54template<class BasicTurbulenceModel>
55class DESModel
56:
57 public DESModelBase,
58 public LESeddyViscosity<BasicTurbulenceModel>
59{
60
61private:
62
63 // Private Member Functions
64
65 //- No copy construct
66 DESModel(const DESModel&) = delete;
67
68 //- No copy assignment
69 void operator=(const DESModel&) = delete;
70
71
72public:
74 typedef typename BasicTurbulenceModel::alphaField alphaField;
75 typedef typename BasicTurbulenceModel::rhoField rhoField;
76 typedef typename BasicTurbulenceModel::transportModel transportModel;
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,
89 const transportModel& transport,
90 const word& propertiesName = turbulenceModel::propertiesName
91 );
92
93
94 //- Destructor
95 virtual ~DESModel();
96
97
98 // Public Member Functions
99
100 //- Return the LES field indicator
101 virtual tmp<volScalarField> LESRegion() const = 0;
102};
103
104
105// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106
107} // End namespace LESModels
108} // End namespace Foam
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112#ifdef NoRepository
113 #include "DESModel.C"
114#endif
115
116// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117
118#endif
119
120// ************************************************************************* //
surfaceScalarField & phi
Base class for DES models providing an interfaces to the LESRegion function.
Definition: DESModelBase.H:55
Templated abstract base class for DES models.
Definition: DESModel.H:58
BasicTurbulenceModel::alphaField alphaField
Definition: DESModel.H:73
BasicTurbulenceModel::rhoField rhoField
Definition: DESModel.H:74
virtual ~DESModel()
Destructor.
Definition: DESModel.C:69
BasicTurbulenceModel::transportModel transportModel
Definition: DESModel.H:75
virtual tmp< volScalarField > LESRegion() const =0
Return the LES field indicator.
Eddy viscosity LES SGS model base class.
A class for managing temporary objects.
Definition: tmp.H:65
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