37 const twoPhaseMixtureThermo& mixture
40 twoPhaseTransport_(false),
43 alphaPhi10_(alphaPhi10)
50 momentumTransportModel::typeName,
60 momentumTransport.lookup(
"simulationType")
63 if (simulationType ==
"twoPhaseTransport")
65 twoPhaseTransport_ =
true;
69 if (twoPhaseTransport_)
131 turbulence_->validate();
160 if (twoPhaseTransport_)
163 mixture_.alpha1()*mixture_.thermo1().alphaEff
167 + mixture_.alpha2()*mixture_.thermo2().alphaEff
174 return mixture_.alphaEff(turbulence_->mut());
185 if (twoPhaseTransport_)
188 turbulence1_->divDevTau(U)
189 + turbulence2_->divDevTau(U);
193 return turbulence_->divDevTau(U);
200 if (twoPhaseTransport_)
213 if (twoPhaseTransport_)
215 turbulence1_->correct();
216 turbulence2_->correct();
220 turbulence_->correct();
static word group(const word &name)
Return group (extension part of name)
const volScalarField & alpha2() const
Return the phase-fraction of phase 2.
static autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const transportModel &transportModel)
Return a reference to the selected turbulence model.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
static autoPtr< PhaseCompressibleMomentumTransportModel > New(const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transportModel)
Return a reference to the selected turbulence model.
void correctPhasePhi()
Correct the phase mass-fluxes.
void correct()
Correct the phase or mixture transport models.
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the effective momentum stress divergence.
tmp< volScalarField > alphaEff() const
Return the effective temperature transport coefficient.
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word groupName(Name name, const word &group)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
Internal & ref()
Return a reference to the dimensioned internal field.
compressibleInterPhaseTransportModel(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const surfaceScalarField &rhoPhi, const surfaceScalarField &alphaPhi10, const twoPhaseMixtureThermo &mixture)
Construct from components.
IOdictionary(const IOobject &)
Construct given an IOobject.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField