segregated.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2014-2020 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::dragModels::segregated
26 
27 Description
28  Segregated drag model for use in regions with no obvious dispersed phase.
29 
30  Reference:
31  \verbatim
32  Marschall, H. (2011).
33  Towards the numerical simulation of multi-scale two-phase flows.
34  PhD Thesis, TU München.
35  \endverbatim
36 
37 SourceFiles
38  segregated.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef segregated_H
43 #define segregated_H
44 
45 #include "dragModel.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace dragModels
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class segregated Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 class segregated
59 :
60  public dragModel
61 {
62  // Private Data
63 
64  //- M coefficient
65  const dimensionedScalar m_;
66 
67  //- N coefficient
68  const dimensionedScalar n_;
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("segregated");
75 
76 
77  // Constructors
78 
79  //- Construct from components
81  (
82  const dictionary& dict,
83  const phasePair& pair,
84  const bool registerObject
85  );
86 
87 
88  //- Destructor
89  virtual ~segregated();
90 
91 
92  // Member Functions
93 
94  //- Drag coefficient
95  virtual tmp<volScalarField> CdRe() const;
96 
97  //- The drag function used in the momentum equation
98  virtual tmp<volScalarField> K() const;
99 
100  //- The drag function Kf used in the face-momentum equations
101  virtual tmp<surfaceScalarField> Kf() const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace dragModels
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
Segregated drag model for use in regions with no obvious dispersed phase.
Definition: segregated.H:57
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
virtual ~segregated()
Destructor.
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
TypeName("segregated")
Runtime type information.
segregated(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from components.
A class for managing temporary objects.
Definition: PtrList.H:53
bool & registerObject()
Register object created from this IOobject with registry if true.
Definition: IOobject.H:339
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
Namespace for OpenFOAM.