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-2023 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"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace dragModels
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class segregated Declaration
57 \*---------------------------------------------------------------------------*/
58 
59 class segregated
60 :
61  public dragModel
62 {
63  // Private Data
64 
65  //- Interface
66  const segregatedPhaseInterface interface_;
67 
68  //- M coefficient
69  const dimensionedScalar m_;
70 
71  //- N coefficient
72  const dimensionedScalar n_;
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("segregated");
79 
80 
81  // Constructors
82 
83  //- Construct from a dictionary and an interface
85  (
86  const dictionary& dict,
87  const phaseInterface& interface,
88  const bool registerObject
89  );
90 
91 
92  //- Destructor
93  virtual ~segregated();
94 
95 
96  // Member Functions
97 
98  //- The drag function used in the momentum equation
99  virtual tmp<volScalarField> K() const;
100 
101  //- The drag function Kf used in the face-momentum equations
102  virtual tmp<surfaceScalarField> Kf() const;
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace dragModels
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #endif
114 
115 // ************************************************************************* //
bool & registerObject()
Register object created from this IOobject with registry if true.
Definition: IOobject.H:346
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Model for drag between phases.
Definition: dragModel.H:55
Segregated drag model for use in regions with no obvious dispersed phase.
Definition: segregated.H:61
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
Definition: segregated.C:158
segregated(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
Construct from a dictionary and an interface.
Definition: segregated.C:47
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
Definition: segregated.C:68
TypeName("segregated")
Runtime type information.
virtual ~segregated()
Destructor.
Definition: segregated.C:62
Class to represent an interface between phases. Derivations can further specify the configuration of ...
Class to represent a interface between phases where the two phases are considered to be segregated; t...
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict