1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. 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
104 //- Return const-access to phase1 viscosityModel
105 const viscosityModel& nuModel1() const
110 //- Return const-access to phase2 viscosityModel
111 const viscosityModel& nuModel2() const
116 //- Return const-access to phase3 viscosityModel
117 const viscosityModel& nuModel3() const
122 //- Return const-access to phase1 density
123 const dimensionedScalar& rho1() const
128 //- Return const-access to phase2 density
129 const dimensionedScalar& rho2() const
134 //- Return const-access to phase3 density
135 const dimensionedScalar& rho3() const
140 const volScalarField& alpha1() const
145 const volScalarField& alpha2() const
150 const volScalarField& alpha3() const
155 //- Return the velocity
156 const volVectorField& U() const
161 //- Return the dynamic laminar viscosity
162 tmp<volScalarField> mu() const;
164 //- Return the face-interpolated dynamic laminar viscosity
165 tmp<surfaceScalarField> muf() const;
167 //- Return the kinematic laminar viscosity
168 tmp<volScalarField> nu() const
173 //- Return the face-interpolated dynamic laminar viscosity
174 tmp<surfaceScalarField> nuf() const;
176 //- Correct the laminar viscosity
182 //- Read base transportProperties dictionary
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 } // End namespace Foam
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
195 // ************************************************************************* //