twoPhaseMixture.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) 2011-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::twoPhaseMixture
28 
29 Description
30  A two-phase mixture model
31 
32 SourceFiles
33  twoPhaseMixture.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef twoPhaseMixture_H
38 #define twoPhaseMixture_H
39 
40 #include "volFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class twoPhaseMixture Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class twoPhaseMixture
52 {
53 protected:
54 
55  // Protected data
56 
59 
62 
63 
64 public:
65 
66  // Constructors
67 
68  //- Construct from components
70  (
71  const fvMesh& mesh,
72  const dictionary& dict
73  );
74 
75 
76  //- Destructor
78  {}
79 
80 
81  // Member Functions
82 
83  const word& phase1Name() const
84  {
85  return phase1Name_;
86  }
87 
88  const word& phase2Name() const
89  {
90  return phase2Name_;
91  }
92 
93  //- Return the phase-fraction of phase 1
94  const volScalarField& alpha1() const
95  {
96  return alpha1_;
97  }
98 
99  //- Return the phase-fraction of phase 1
101  {
102  return alpha1_;
103  }
104 
105  //- Return the phase-fraction of phase 2
106  const volScalarField& alpha2() const
107  {
108  return alpha2_;
109  }
110 
111  //- Return the phase-fraction of phase 2
113  {
114  return alpha2_;
115  }
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
volFields.H
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::twoPhaseMixture::phase1Name_
word phase1Name_
Definition: twoPhaseMixture.H:56
Foam::twoPhaseMixture::alpha2
volScalarField & alpha2()
Return the phase-fraction of phase 2.
Definition: twoPhaseMixture.H:111
Foam::twoPhaseMixture::phase1Name
const word & phase1Name() const
Definition: twoPhaseMixture.H:82
Foam::twoPhaseMixture::alpha2
const volScalarField & alpha2() const
Return the phase-fraction of phase 2.
Definition: twoPhaseMixture.H:105
Foam::twoPhaseMixture::alpha1_
volScalarField alpha1_
Definition: twoPhaseMixture.H:59
Foam::twoPhaseMixture::alpha2_
volScalarField alpha2_
Definition: twoPhaseMixture.H:60
Foam::twoPhaseMixture
A two-phase mixture model.
Definition: twoPhaseMixture.H:50
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::twoPhaseMixture::alpha1
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
Definition: twoPhaseMixture.H:93
Foam::twoPhaseMixture::phase2Name
const word & phase2Name() const
Definition: twoPhaseMixture.H:87
Foam::twoPhaseMixture::phase2Name_
word phase2Name_
Definition: twoPhaseMixture.H:57
Foam::twoPhaseMixture::~twoPhaseMixture
~twoPhaseMixture()
Destructor.
Definition: twoPhaseMixture.H:76
Foam::twoPhaseMixture::twoPhaseMixture
twoPhaseMixture(const fvMesh &mesh, const dictionary &dict)
Construct from components.
Definition: twoPhaseMixture.C:34
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::twoPhaseMixture::alpha1
volScalarField & alpha1()
Return the phase-fraction of phase 1.
Definition: twoPhaseMixture.H:99