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 | Copyright (C) 2012-2015 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::DESModel
26 
27 Description
28  Templated abstract base class for DES models
29 
30 SourceFiles
31  DESModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef DESModel_H
36 #define DESModel_H
37 
38 #include "DESModelBase.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace LESModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class DESModel Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class BasicTurbulenceModel>
52 class DESModel
53 :
54  public DESModelBase,
55  public LESeddyViscosity<BasicTurbulenceModel>
56 {
57 
58 private:
59 
60  // Private Member Functions
61 
62  //- Disallow default bitwise copy construct
63  DESModel(const DESModel&);
64 
65  //- Disallow default bitwise assignment
66  DESModel& operator=(const DESModel&);
67 
68 
69 public:
70 
71  typedef typename BasicTurbulenceModel::alphaField alphaField;
72  typedef typename BasicTurbulenceModel::rhoField rhoField;
73  typedef typename BasicTurbulenceModel::transportModel transportModel;
74 
75  // Constructors
76 
77  //- Construct from components
78  DESModel
79  (
80  const word& type,
81  const alphaField& alpha,
82  const rhoField& rho,
83  const volVectorField& U,
84  const surfaceScalarField& alphaRhoPhi,
85  const surfaceScalarField& phi,
86  const transportModel& transport,
87  const word& propertiesName = turbulenceModel::propertiesName
88  );
89 
90 
91  //- Destructor
92  virtual ~DESModel();
93 
94 
95  // Public Member Functions
96 
97  //- Return the LES field indicator
98  virtual tmp<volScalarField> LESRegion() const = 0;
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace LESModels
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #ifdef NoRepository
110  #include "DESModel.C"
111 #endif
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:216
Foam::LESModels::DESModel::LESRegion
virtual tmp< volScalarField > LESRegion() const =0
Return the LES field indicator.
Foam::turbulenceModel::propertiesName
static const word propertiesName
Default name of the turbulence properties dictionary.
Definition: turbulenceModel.H:97
Foam::LESModels::DESModel::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: DESModel.H:71
U
U
Definition: pEqn.H:46
Foam::LESModels::LESeddyViscosity
Eddy viscosity LES SGS model base class.
Definition: LESeddyViscosity.H:55
Foam::LESModels::DESModel::operator=
DESModel & operator=(const DESModel &)
Disallow default bitwise assignment.
DESModelBase.H
Foam::LESModels::DESModel::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: DESModel.H:72
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::LESModels::DESModel::~DESModel
virtual ~DESModel()
Destructor.
Definition: DESModel.C:67
rho
rho
Definition: pEqn.H:3
Foam::DESModelBase
Base class for DES models providing an interfaces to the LESRegion function.
Definition: DESModelBase.H:51
Foam::LESModels::DESModel::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: DESModel.H:70
Foam::type
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:588
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::LESModels::DESModel::DESModel
DESModel(const DESModel &)
Disallow default bitwise copy construct.
Foam::LESModels::DESModel
Definition: DESModel.H:51
DESModel.C