maxDeltaxyz.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) 2011-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::maxDeltaxyz
29 
30 Description
31  Delta calculated by taking the maximum distance between the cell centre
32  and any face centre. For a regular hex cell, the computed delta will
33  equate to half of the cell width; accordingly, the deltaCoeff model
34  coefficient should be set to 2 for this case.
35 
36 SourceFiles
37  maxDeltaxyz.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef LESModels_maxDeltaxyz_H
42 #define LESModels_maxDeltaxyz_H
43 
44 #include "LESdelta.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace LESModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class maxDeltaxyz Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 class maxDeltaxyz
58 :
59  public LESdelta
60 {
61  // Private data
62 
63  //- Model coefficient
64  scalar deltaCoeff_;
65 
66 
67  // Private Member Functions
68 
69  //- No copy construct
70  maxDeltaxyz(const maxDeltaxyz&) = delete;
71 
72  //- No copy assignment
73  void operator=(const maxDeltaxyz&) = delete;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("maxDeltaxyz");
80 
81 
82  // Constructors
83 
84  //- Construct from name, turbulenceModel and dictionary
86  (
87  const word& name,
89  const dictionary&
90  );
91 
92 
93  //- Destructor
94  virtual ~maxDeltaxyz() = default;
95 
96 
97  // Member Functions
98 
99  //- Calculate the delta values
100  void calcDelta();
101 
102  //- Read the LESdelta dictionary
103  virtual void read(const dictionary&);
104 
105  // Correct values
106  virtual void correct();
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace LESModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 
118 #endif
119 
120 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::LESModels::maxDeltaxyz
Definition: maxDeltaxyz.H:56
Foam::LESModels::maxDeltaxyz::correct
virtual void correct()
Definition: maxDeltaxyz.C:139
Foam::LESdelta::turbulence
const turbulenceModel & turbulence() const
Return turbulenceModel reference.
Definition: LESdelta.H:134
Foam::LESModels::maxDeltaxyz::calcDelta
void calcDelta()
Calculate the delta values.
Definition: maxDeltaxyz.C:46
Foam::LESModels::maxDeltaxyz::~maxDeltaxyz
virtual ~maxDeltaxyz()=default
Destructor.
Foam::LESModels::maxDeltaxyz::read
virtual void read(const dictionary &)
Read the LESdelta dictionary.
Definition: maxDeltaxyz.C:129
Foam::LESModels::maxDeltaxyz::TypeName
TypeName("maxDeltaxyz")
Runtime type information.
Foam::turbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: turbulenceModel.H:63
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
LESdelta.H
Foam::LESdelta
Abstract base class for LES deltas.
Definition: LESdelta.H:53
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59