dispersedPhaseInterface.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) 2021-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::dispersedPhaseInterface
26 
27 Description
28  Class to represent a interface between phases where one phase is considered
29  dispersed within the other.
30 
31 SourceFiles
32  dispersedPhaseInterface.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef dispersedPhaseInterface_H
37 #define dispersedPhaseInterface_H
38 
39 #include "phaseInterface.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class dispersedPhaseInterface Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
52  virtual public phaseInterface
53 {
54 private:
55 
56  // Private Data
57 
58  //- Dispersed phase
59  const phaseModel& dispersed_;
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("dispersedPhaseInterface");
66 
67 
68  // Constructors
69 
70  //- Construct from phases
72  (
73  const phaseModel& dispersed,
74  const phaseModel& continuous
75  );
76 
77  //- Construct from fluid and name
79  (
80  const phaseSystem& fluid,
81  const word& name
82  );
83 
84 
85  //- Destructor
86  virtual ~dispersedPhaseInterface();
87 
88 
89  // Static Member Functions
90 
91  //- Return the separator that delimits this interface's name
92  static word separator()
93  {
94  return "dispersedIn";
95  }
96 
97 
98  // Member Functions
99 
100  //- Name
101  virtual word name() const;
102 
103 
104  // Access
105 
106  //- Dispersed phase
107  const phaseModel& dispersed() const;
108 
109  //- Continuous phase
110  const phaseModel& continuous() const;
111 
112 
113  // Properties
114 
115  //- Relative velocity
116  tmp<volVectorField> Ur() const;
117 
118  //- Reynolds number
119  tmp<volScalarField> Re() const;
120 
121  //- Prandtl number
122  tmp<volScalarField> Pr() const;
123 
124  //- Eotvos number
125  tmp<volScalarField> Eo() const;
126 
127  //- Eotvos number for given diameter
128  tmp<volScalarField> Eo(const volScalarField& d) const;
129 
130  //- Morton Number
131  tmp<volScalarField> Mo() const;
132 
133  //- Takahashi Number
134  tmp<volScalarField> Ta() const;
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
Generic GeometricField class.
Class to represent a interface between phases where one phase is considered dispersed within the othe...
tmp< volScalarField > Eo() const
Eotvos number.
TypeName("dispersedPhaseInterface")
Runtime type information.
static word separator()
Return the separator that delimits this interface's name.
tmp< volScalarField > Mo() const
Morton Number.
virtual ~dispersedPhaseInterface()
Destructor.
virtual word name() const
Name.
dispersedPhaseInterface(const phaseModel &dispersed, const phaseModel &continuous)
Construct from phases.
tmp< volScalarField > Pr() const
Prandtl number.
const phaseModel & continuous() const
Continuous phase.
tmp< volScalarField > Re() const
Reynolds number.
tmp< volVectorField > Ur() const
Relative velocity.
const phaseModel & dispersed() const
Dispersed phase.
tmp< volScalarField > Ta() const
Takahashi Number.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const phaseSystem & fluid() const
Return the phase system.
Class to represent a system of phases and model interfacial transfers between them.
Definition: phaseSystem.H:73
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.