44 twoPhaseTransport_(false),
47 alphaPhi1_(alphaPhi1),
48 alphaPhi2_(alphaPhi2),
49 alphaRhoPhi1_(alphaRhoPhi1),
50 alphaRhoPhi2_(alphaRhoPhi2)
57 momentumTransportModel::typeName,
67 momentumTransport.
lookup(
"simulationType")
70 if (simulationType ==
"twoPhaseTransport")
72 twoPhaseTransport_ =
true;
76 if (twoPhaseTransport_)
114 mixtureMomentumTransport_->validate();
127 if (twoPhaseTransport_)
130 momentumTransport1_->divDevTau(
U)
131 + momentumTransport2_->divDevTau(
U);
135 return mixtureMomentumTransport_->divDevTau(
U);
142 if (twoPhaseTransport_)
144 momentumTransport1_->predict();
145 momentumTransport2_->predict();
149 mixtureMomentumTransport_->predict();
156 if (twoPhaseTransport_)
158 momentumTransport1_->correct();
159 momentumTransport2_->correct();
163 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 &alphaPhi2, 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 rhoFluidThermo-based phases.
const rhoFluidThermo & thermo1() const
Return the thermo for phase 1.
const rhoFluidThermo & 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.