41 twoPhaseTransport_(false),
44 alphaPhi1_(alphaPhi1),
52 momentumTransportModel::typeName,
62 momentumTransport.
lookup(
"simulationType")
65 if (simulationType ==
"twoPhaseTransport")
67 twoPhaseTransport_ =
true;
71 if (twoPhaseTransport_)
109 turbulence_->validate();
123 if (twoPhaseTransport_)
126 mixture_.rho1()*turbulence1_->divDevSigma(
U)
127 + mixture_.rho2()*turbulence2_->divDevSigma(
U);
131 return turbulence_->divDevTau(
rho,
U);
138 if (twoPhaseTransport_)
140 turbulence1_->predict();
141 turbulence2_->predict();
145 turbulence_->predict();
152 if (twoPhaseTransport_)
154 turbulence1_->correct();
155 turbulence2_->correct();
159 turbulence_->correct();
Generic GeometricField class.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
void correct()
Correct the phase or mixture transport models.
incompressibleInterPhaseTransportModel(const volVectorField &U, const surfaceScalarField &phi, const surfaceScalarField &alphaPhi1, const surfaceScalarField &alphaPhi2, const incompressibleTwoPhaseVoFMixture &mixture)
Construct from components.
void predict()
Predict the phase or mixture transport models.
tmp< fvVectorMatrix > divDevTau(const volScalarField &rho, volVectorField &U) const
Return the effective momentum stress divergence.
static autoPtr< incompressibleMomentumTransportModel > New(const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Return a reference to the selected turbulence model.
Class to represent a mixture of two constant density phases.
const viscosityModel & nuModel1() const
Return const-access to phase1 viscosityModel.
const viscosityModel & nuModel2() const
Return const-access to phase2 viscosityModel.
static autoPtr< phaseIncompressibleMomentumTransportModel > New(const alphaField &alpha, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Return a reference to the selected turbulence model.
A class for managing temporary objects.
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
const volScalarField & alpha2() const
Return the phase-fraction of phase 2.
A class for handling words, derived from string.