43 twoPhaseTransport_(false),
46 alphaPhi1_(alphaPhi1),
47 alphaRhoPhi1_(alphaRhoPhi1),
48 alphaRhoPhi2_(alphaRhoPhi2)
55 momentumTransportModel::typeName,
65 momentumTransport.
lookup(
"simulationType")
68 if (simulationType ==
"twoPhaseTransport")
70 twoPhaseTransport_ =
true;
74 if (twoPhaseTransport_)
112 mixtureMomentumTransport_->validate();
125 if (twoPhaseTransport_)
128 momentumTransport1_->divDevTau(
U)
129 + momentumTransport2_->divDevTau(
U);
133 return mixtureMomentumTransport_->divDevTau(
U);
140 if (twoPhaseTransport_)
142 momentumTransport1_->predict();
143 momentumTransport2_->predict();
147 mixtureMomentumTransport_->predict();
154 if (twoPhaseTransport_)
156 momentumTransport1_->correct();
157 momentumTransport2_->correct();
161 mixtureMomentumTransport_->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...
compressibleInterPhaseTransportModel(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const surfaceScalarField &rhoPhi, const surfaceScalarField &alphaPhi1, const surfaceScalarField &alphaRhoPhi1, const surfaceScalarField &alphaRhoPhi2, const compressibleTwoPhaseVoFMixture &mixture)
Construct from components.
void correct()
Correct the phase or mixture transport models.
void predict()
Predict the phase or mixture transport models.
tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the effective momentum stress divergence.
static autoPtr< compressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Return a reference to the selected turbulence model.
Class to represent a mixture of two rhoThermo-based phases.
const rhoThermo & thermo1() const
Return the thermo for phase 1.
const rhoThermo & thermo2() const
Return the thermo for phase 2.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< phaseCompressibleMomentumTransportModel > New(const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Return a reference to the selected turbulence model.
virtual tmp< volScalarField > rho() const =0
Density [kg/m^3].
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.