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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::orderedPhasePair
28
29Description
30
31SourceFiles
32 orderedPhasePair.C
33
34\*---------------------------------------------------------------------------*/
35
36#ifndef orderedPhasePair_H
37#define orderedPhasePair_H
38
39#include "phasePair.H"
40
41// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43namespace Foam
44{
45
46class aspectRatioModel;
47
48/*---------------------------------------------------------------------------*\
49 Class orderedPhasePair Declaration
50\*---------------------------------------------------------------------------*/
51
52class orderedPhasePair
53:
54 public phasePair
55{
56 // Private data
57
58 //- Aspect ratio model
59 autoPtr<aspectRatioModel> aspectRatio_;
60
61
62public:
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// ************************************************************************* //
orderedPhasePair(const multiphaseInter::phaseModel &from, const multiphaseInter::phaseModel &to)
Construct from two phases and gravity.
virtual word name() const
Pair name.
virtual tmp< volScalarField > E() const
Aspect ratio.
virtual ~orderedPhasePair()=default
Destructor.
virtual word name() const
Pair name.
virtual const phaseModel & dispersed() const
Dispersed phase.
virtual const phaseModel & continuous() const
Continuous phase.
virtual const phaseModel & continuous() const
Continuous phase.
virtual const phaseModel & dispersed() const
Dispersed phase.
virtual tmp< volScalarField > E() const
Aspect ratio.
virtual ~orderedPhasePair()
Destructor.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:61
const uniformDimensionedVectorField & g() const
Return gravitation acceleration.
Definition: phasePairI.H:93
HashTable< scalar, phasePairKey, phasePairKey::hash > scalarTable
Scalar hash table.
Definition: phasePair.H:65
HashTable< dictionary, phasePairKey, phasePairKey::hash > dictTable
Dictionary hash table.
Definition: phasePair.H:61
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.