40 twoPhaseTransport_(false),
50 momentumTransportModel::typeName,
60 momentumTransport.
lookup(
"simulationType")
63 if (simulationType ==
"twoPhaseTransport")
65 twoPhaseTransport_ =
true;
69 if (twoPhaseTransport_)
116 turbulence_->validate();
130 if (twoPhaseTransport_)
133 mixture_.rho1()*turbulence1_->divDevSigma(
U)
134 + mixture_.rho2()*turbulence2_->divDevSigma(
U);
138 return turbulence_->divDevTau(
rho,
U);
145 if (twoPhaseTransport_)
147 alphaPhi2_.ref() = (phi_ - alphaPhi1_);
154 if (twoPhaseTransport_)
156 turbulence1_->predict();
157 turbulence2_->predict();
161 turbulence_->predict();
168 if (twoPhaseTransport_)
170 turbulence1_->correct();
171 turbulence2_->correct();
175 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...
static word group(const word &name)
Return group (extension part of name)
static word groupName(Name name, const word &group)
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 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.
void correctPhasePhi()
Correct the phase mass-fluxes.
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.
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.
SurfaceField< scalar > surfaceScalarField