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-2025 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 protected:
63 
64  // Protected Member Functions
65 
66  //- Return true if the phase interfaces are the same
67  virtual bool same(const phaseInterface& interface, bool strict) const;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("dispersedPhaseInterface");
74 
75 
76  // Constructors
77 
78  //- Construct from phases
80  (
81  const phaseModel& dispersed,
82  const phaseModel& continuous
83  );
84 
85  //- Construct from fluid and name
87  (
88  const phaseSystem& fluid,
89  const word& name
90  );
91 
92 
93  //- Destructor
94  virtual ~dispersedPhaseInterface();
95 
96 
97  // Static Member Functions
98 
99  //- Return the separator that delimits this interface's name
100  static word separator()
101  {
102  return "dispersedIn";
103  }
104 
105 
106  // Member Functions
107 
108  //- Name
109  virtual word name() const;
110 
111 
112  // Access
113 
114  //- Dispersed phase
115  const phaseModel& dispersed() const;
116 
117  //- Continuous phase
118  const phaseModel& continuous() const;
119 
120  //- Return the sign. +1 if the dispersed phase is first. -1 if the
121  // continuous phase is first.
122  scalar sign() const;
123 
124 
125  // Properties
126 
127  //- Relative velocity
128  tmp<volVectorField> Ur() const;
129 
130  //- Reynolds number
131  tmp<volScalarField> Re() const;
132 
133  //- Prandtl number
134  tmp<volScalarField> Pr() const;
135 
136  //- Eotvos number
137  tmp<volScalarField> Eo() const;
138 
139  //- Eotvos number for given diameter
140  tmp<volScalarField> Eo(const volScalarField& d) const;
141 
142  //- Morton Number
143  tmp<volScalarField> Mo() const;
144 
145  //- Takahashi Number
146  tmp<volScalarField> Ta() const;
147 };
148 
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 } // End namespace Foam
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 #endif
157 
158 // ************************************************************************* //
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.
dispersedPhaseInterface(const phaseModel &dispersed, const phaseModel &continuous)
Construct from phases.
scalar sign() const
Return the sign. +1 if the dispersed phase is first. -1 if the.
tmp< volScalarField > Pr() const
Prandtl number.
virtual bool same(const phaseInterface &interface, bool strict) const
Return true if the phase interfaces are the same.
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.
Definition: phaseSystem.H:74
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.