A two-phase incompressible transportModel. More...
#include <incompressibleTransportModels/twoPhaseMixture.H>
A two-phase incompressible transportModel.
Definition at line 52 of file twoPhaseMixture.H.
Public Member Functions | |
twoPhaseMixture (const volVectorField &U, const surfaceScalarField &phi, const word &alpha1Name="alpha1") | |
Construct from components.
| |
~twoPhaseMixture () | |
const word | phase1Name () const |
const word | phase2Name () const |
const viscosityModel & | nuModel1 () const |
Return const-access to phase1 viscosityModel.
| |
const viscosityModel & | nuModel2 () const |
Return const-access to phase2 viscosityModel.
| |
const dimensionedScalar & | rho1 () const |
Return const-access to phase1 density.
| |
const dimensionedScalar & | rho2 () const |
Return const-access to phase2 density.
| |
tmp< volScalarField > | mu () const |
Return the dynamic laminar viscosity.
| |
tmp< surfaceScalarField > | muf () const |
Return the face-interpolated dynamic laminar viscosity.
| |
virtual tmp< volScalarField > | nu () const |
Return the kinematic laminar viscosity.
| |
tmp< surfaceScalarField > | nuf () const |
Return the face-interpolated kinematic laminar viscosity.
| |
virtual void | correct () |
Correct the laminar viscosity.
| |
virtual bool | read () |
Read base transportProperties dictionary.
| |
Protected Member Functions | |
void | calcNu () |
Calculate and return the laminar viscosity.
| |
Protected Attributes | |
word | phase1Name_ |
word | phase2Name_ |
autoPtr< viscosityModel > | nuModel1_ |
autoPtr< viscosityModel > | nuModel2_ |
dimensionedScalar | rho1_ |
dimensionedScalar | rho2_ |
const volVectorField & | U_ |
const surfaceScalarField & | phi_ |
const volScalarField & | alpha1_ |
volScalarField | nu_ |
twoPhaseMixture | ( | const volVectorField & | U, |
const surfaceScalarField & | phi, | ||
const word & | alpha1Name = "alpha1"
|
||
) |
Construct from components.
Definition at line 58 of file twoPhaseMixture.C.
~twoPhaseMixture | ( | ) | [inline]
|
Definition at line 98 of file twoPhaseMixture.H.
void calcNu | ( | ) | [protected]
|
Calculate and return the laminar viscosity.
Definition at line 39 of file twoPhaseMixture.C.
References twoPhaseMixture::alpha1_, Foam::max(), Foam::min(), twoPhaseMixture::mu(), twoPhaseMixture::nu_, twoPhaseMixture::nuModel1_, twoPhaseMixture::nuModel2_, twoPhaseMixture::rho1_, and twoPhaseMixture::rho2_.
Referenced by twoPhaseMixture::correct().
const word phase1Name | ( | ) | const [inline]
|
Definition at line 104 of file twoPhaseMixture.H.
References twoPhaseMixture::phase1Name_.
const word phase2Name | ( | ) | const [inline]
|
Definition at line 109 of file twoPhaseMixture.H.
References twoPhaseMixture::phase2Name_.
const viscosityModel& nuModel1 | ( | ) | const [inline]
|
Return const-access to phase1 viscosityModel.
Definition at line 115 of file twoPhaseMixture.H.
References twoPhaseMixture::nuModel1_.
const viscosityModel& nuModel2 | ( | ) | const [inline]
|
Return const-access to phase2 viscosityModel.
Definition at line 121 of file twoPhaseMixture.H.
References twoPhaseMixture::nuModel2_.
const dimensionedScalar& rho1 | ( | ) | const [inline]
|
Return const-access to phase1 density.
Definition at line 127 of file twoPhaseMixture.H.
References twoPhaseMixture::rho1_.
const dimensionedScalar& rho2 | ( | ) | const [inline]
|
Return const-access to phase2 density.
Definition at line 133 of file twoPhaseMixture.H.
References twoPhaseMixture::rho2_.
tmp< volScalarField > mu | ( | ) | const |
Return the dynamic laminar viscosity.
Definition at line 117 of file twoPhaseMixture.C.
References twoPhaseMixture::alpha1_, Foam::max(), Foam::min(), twoPhaseMixture::nuModel1_, twoPhaseMixture::nuModel2_, twoPhaseMixture::rho1_, and twoPhaseMixture::rho2_.
Referenced by twoPhaseMixture::calcNu().
tmp< surfaceScalarField > muf | ( | ) | const |
Return the face-interpolated dynamic laminar viscosity.
Definition at line 133 of file twoPhaseMixture.C.
References twoPhaseMixture::alpha1_, Foam::fvc::interpolate(), Foam::max(), Foam::min(), twoPhaseMixture::nuModel1_, twoPhaseMixture::nuModel2_, twoPhaseMixture::rho1_, and twoPhaseMixture::rho2_.
virtual tmp<volScalarField> nu | ( | ) | const [inline, virtual]
|
Return the kinematic laminar viscosity.
Implements transportModel.
Definition at line 145 of file twoPhaseMixture.H.
References twoPhaseMixture::nu_.
tmp< surfaceScalarField > nuf | ( | ) | const |
Return the face-interpolated kinematic laminar viscosity.
Definition at line 150 of file twoPhaseMixture.C.
References twoPhaseMixture::alpha1_, Foam::fvc::interpolate(), Foam::max(), Foam::min(), twoPhaseMixture::nuModel1_, twoPhaseMixture::nuModel2_, twoPhaseMixture::rho1_, and twoPhaseMixture::rho2_.
virtual void correct | ( | ) | [inline, virtual]
|
Correct the laminar viscosity.
Implements transportModel.
Reimplemented in Kunz, Merkle, phaseChangeTwoPhaseMixture, and SchnerrSauer.
Definition at line 154 of file twoPhaseMixture.H.
References twoPhaseMixture::calcNu().
bool read | ( | ) | [virtual]
|
Read base transportProperties dictionary.
Implements transportModel.
Reimplemented in Kunz, Merkle, phaseChangeTwoPhaseMixture, and SchnerrSauer.
Definition at line 169 of file twoPhaseMixture.C.
References twoPhaseMixture::nuModel1_, twoPhaseMixture::nuModel2_, twoPhaseMixture::phase1Name_, twoPhaseMixture::phase2Name_, transportModel::read(), twoPhaseMixture::rho1_, twoPhaseMixture::rho2_, and dictionary::subDict().
word phase1Name_ [protected]
|
Definition at line 60 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::phase1Name(), and twoPhaseMixture::read().
word phase2Name_ [protected]
|
Definition at line 61 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::phase2Name(), and twoPhaseMixture::read().
autoPtr<viscosityModel> nuModel1_ [protected]
|
Definition at line 63 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::calcNu(), twoPhaseMixture::mu(), twoPhaseMixture::muf(), twoPhaseMixture::nuf(), twoPhaseMixture::nuModel1(), and twoPhaseMixture::read().
autoPtr<viscosityModel> nuModel2_ [protected]
|
Definition at line 64 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::calcNu(), twoPhaseMixture::mu(), twoPhaseMixture::muf(), twoPhaseMixture::nuf(), twoPhaseMixture::nuModel2(), and twoPhaseMixture::read().
dimensionedScalar rho1_ [protected]
|
Definition at line 66 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::calcNu(), twoPhaseMixture::mu(), twoPhaseMixture::muf(), twoPhaseMixture::nuf(), twoPhaseMixture::read(), and twoPhaseMixture::rho1().
dimensionedScalar rho2_ [protected]
|
Definition at line 67 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::calcNu(), twoPhaseMixture::mu(), twoPhaseMixture::muf(), twoPhaseMixture::nuf(), twoPhaseMixture::read(), and twoPhaseMixture::rho2().
const volVectorField& U_ [protected]
|
Definition at line 69 of file twoPhaseMixture.H.
const surfaceScalarField& phi_ [protected]
|
Definition at line 70 of file twoPhaseMixture.H.
const volScalarField& alpha1_ [protected]
|
Definition at line 72 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::calcNu(), twoPhaseMixture::mu(), twoPhaseMixture::muf(), and twoPhaseMixture::nuf().
volScalarField nu_ [protected]
|
Definition at line 74 of file twoPhaseMixture.H.
Referenced by twoPhaseMixture::calcNu(), and twoPhaseMixture::nu().