1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
32 \*---------------------------------------------------------------------------*/
34 #ifndef threePhaseMixture_H
35 #define threePhaseMixture_H
37 #include "incompressible/transportModel/transportModel.H"
38 #include "incompressible/viscosityModels/viscosityModel/viscosityModel.H"
39 #include "dimensionedScalar.H"
40 #include "volFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class threePhaseMixture Declaration
49 \*---------------------------------------------------------------------------*/
51 class threePhaseMixture
61 autoPtr<viscosityModel> nuModel1_;
62 autoPtr<viscosityModel> nuModel2_;
63 autoPtr<viscosityModel> nuModel3_;
65 dimensionedScalar rho1_;
66 dimensionedScalar rho2_;
67 dimensionedScalar rho3_;
69 const volVectorField& U_;
70 const surfaceScalarField& phi_;
72 const volScalarField& alpha1_;
73 const volScalarField& alpha2_;
74 const volScalarField& alpha3_;
79 // Private Member Functions
81 //- Calculate and return the laminar viscosity
89 //- Construct from components
92 const volVectorField& U,
93 const surfaceScalarField& phi
105 //- Return const-access to phase1 viscosityModel
106 const viscosityModel& nuModel1() const
111 //- Return const-access to phase2 viscosityModel
112 const viscosityModel& nuModel2() const
117 //- Return const-access to phase3 viscosityModel
118 const viscosityModel& nuModel3() const
123 //- Return const-access to phase1 density
124 const dimensionedScalar& rho1() const
129 //- Return const-access to phase2 density
130 const dimensionedScalar& rho2() const
135 //- Return const-access to phase3 density
136 const dimensionedScalar& rho3() const
141 const volScalarField& alpha1() const
146 const volScalarField& alpha2() const
151 const volScalarField& alpha3() const
156 //- Return the velocity
157 const volVectorField& U() const
162 //- Return the dynamic laminar viscosity
163 tmp<volScalarField> mu() const;
165 //- Return the face-interpolated dynamic laminar viscosity
166 tmp<surfaceScalarField> muf() const;
168 //- Return the kinematic laminar viscosity
169 const volScalarField& nu() const
174 //- Return the face-interpolated dynamic laminar viscosity
175 tmp<surfaceScalarField> nuf() const;
177 //- Correct the laminar viscosity
183 //- Read base transportProperties dictionary
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 } // End namespace Foam
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 // ************************************************************************* //