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-------------------------------------------------------------------------------
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::twoPhaseMixture
28
29Description
30 A two-phase mixture model
31
32SourceFiles
33 twoPhaseMixture.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef twoPhaseMixture_H
38#define twoPhaseMixture_H
39
40#include "volFields.H"
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46
47/*---------------------------------------------------------------------------*\
48 Class twoPhaseMixture Declaration
49\*---------------------------------------------------------------------------*/
52{
53protected:
54
55 // Protected data
62
63
64public:
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
83 const word& phase1Name() const
84 {
85 return phase1Name_;
86 }
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// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
A two-phase mixture model.
volScalarField & alpha1()
Return the phase-fraction of phase 1.
const volScalarField & alpha2() const
Return the phase-fraction of phase 2.
const word & phase1Name() const
const word & phase2Name() const
volScalarField & alpha2()
Return the phase-fraction of phase 2.
volScalarField alpha2_
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
~twoPhaseMixture()
Destructor.
volScalarField alpha1_
A class for handling words, derived from Foam::string.
Definition: word.H:68
dynamicFvMesh & mesh
Namespace for OpenFOAM.
dictionary dict