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 -------------------------------------------------------------------------------
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::DESModel
29 
30 Description
31  Templated abstract base class for DES models
32 
33 SourceFiles
34  DESModel.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef LESModels_DESModel_H
39 #define LESModels_DESModel_H
40 
41 #include "DESModelBase.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace LESModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class DESModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 template<class BasicTurbulenceModel>
55 class DESModel
56 :
57  public DESModelBase,
58  public LESeddyViscosity<BasicTurbulenceModel>
59 {
60 
61 private:
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 
72 public:
73 
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
81  DESModel
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 ~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 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
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::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:100
Foam::LESModels::DESModel::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: DESModel.H:74
rho
rho
Definition: readInitialConditions.H:88
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::LESModels::LESeddyViscosity
Eddy viscosity LES SGS model base class.
Definition: LESeddyViscosity.H:58
DESModelBase.H
Foam::LESModels::DESModel::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: DESModel.H:75
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::LESModels::DESModel::~DESModel
virtual ~DESModel()
Destructor.
Definition: DESModel.C:69
U
U
Definition: pEqn.H:72
Foam::DESModelBase
Base class for DES models providing an interfaces to the LESRegion function.
Definition: DESModelBase.H:54
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::LESModels::DESModel::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: DESModel.H:73
Foam::GeometricField< vector, fvPatchField, volMesh >
Foam::LESModels::DESModel
Templated abstract base class for DES models.
Definition: DESModel.H:54
DESModel.C