orderedPhasePair.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) 2014 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::orderedPhasePair
28 
29 Description
30 
31 SourceFiles
32  orderedPhasePair.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef orderedPhasePair_H
37 #define orderedPhasePair_H
38 
39 #include "phasePair.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 class aspectRatioModel;
47 
48 /*---------------------------------------------------------------------------*\
49  Class orderedPhasePair Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class orderedPhasePair
53 :
54  public phasePair
55 {
56  // Private data
57 
58  //- Aspect ratio model
59  autoPtr<aspectRatioModel> aspectRatio_;
60 
61 
62 public:
63 
64  // Constructors
65 
66  //- Construct from two phases, gravity, surface tension and aspect
67  // ratio tables
69  (
70  const phaseModel& dispersed,
71  const phaseModel& continuous,
72  const dimensionedVector& g,
73  const scalarTable& sigmaTable,
74  const dictTable& aspectRatioTable
75  );
76 
77 
78  //- Destructor
79  virtual ~orderedPhasePair();
80 
81 
82  // Member Functions
83 
84  //- Dispersed phase
85  virtual const phaseModel& dispersed() const;
86 
87  //- Continuous phase
88  virtual const phaseModel& continuous() const;
89 
90  //- Pair name
91  virtual word name() const;
92 
93  //- Aspect ratio
94  virtual tmp<volScalarField> E() const;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
virtual word name() const
Pair name.
HashTable< dictionary, phasePairKey, phasePairKey::hash > dictTable
Dictionary hash table.
Definition: phasePair.H:59
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const uniformDimensionedVectorField & g() const
Return gravitation acceleration.
Definition: phasePairI.H:86
virtual tmp< volScalarField > E() const
Aspect ratio.
virtual ~orderedPhasePair()=default
Destructor.
orderedPhasePair(const multiphaseInter::phaseModel &from, const multiphaseInter::phaseModel &to)
Construct from two phases and gravity.
virtual const phaseModel & continuous() const
Continuous phase.
HashTable< scalar, phasePairKey, phasePairKey::hash > scalarTable
Scalar hash table.
Definition: phasePair.H:65
virtual const phaseModel & dispersed() const
Dispersed phase.
Namespace for OpenFOAM.