33Foam::compressibleInterPhaseTransportModel::compressibleInterPhaseTransportModel
35 const volScalarField&
rho,
36 const volVectorField&
U,
37 const surfaceScalarField&
phi,
38 const surfaceScalarField&
rhoPhi,
40 const twoPhaseMixtureThermo&
mixture
43 twoPhaseTransport_(false),
49 IOdictionary turbulenceProperties
53 turbulenceModel::propertiesName,
61 const word simulationType
63 turbulenceProperties.get<word>(
"simulationType")
66 if (simulationType ==
"twoPhaseTransport")
68 twoPhaseTransport_ =
true;
72 if (twoPhaseTransport_)
77 const tmp<volScalarField> trho1 = mixture_.thermo1().rho();
78 const tmp<volScalarField> trho2 = mixture_.thermo2().rho();
80 const auto&
rho1 = trho1();
81 const auto&
rho2 = trho2();
87 IOobject::groupName(
"alphaRhoPhi",
alpha1.group()),
88 fvc::interpolate(
rho1)*alphaPhi10_
96 IOobject::groupName(
"alphaRhoPhi",
alpha2.group()),
97 fvc::interpolate(
rho2)*(phi_ - alphaPhi10_)
103 ThermalDiffusivity<PhaseCompressibleTurbulenceModel<fluidThermo>>
117 ThermalDiffusivity<PhaseCompressibleTurbulenceModel<fluidThermo>>
131 turbulence_ = compressible::turbulenceModel::New
139 turbulence_->validate();
149 if (twoPhaseTransport_)
152 mixture_.alpha1()*mixture_.thermo1().alphaEff
154 turbulence1_->alphat()
156 + mixture_.alpha2()*mixture_.thermo2().alphaEff
158 turbulence2_->alphat()
163 return mixture_.alphaEff(turbulence_->alphat());
168Foam::tmp<Foam::fvVectorMatrix>
174 if (twoPhaseTransport_)
177 turbulence1_->divDevRhoReff(
U)
178 + turbulence2_->divDevRhoReff(
U);
182 return turbulence_->divDevRhoReff(
U);
189 if (twoPhaseTransport_)
202 if (twoPhaseTransport_)
204 turbulence1_->correct();
205 turbulence2_->correct();
209 turbulence_->correct();
const volScalarField & alpha1
const volScalarField & alpha2
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef().
void correct()
Correct the phase or mixture transport models.
tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the effective momentum stress divergence.
tmp< volScalarField > alphaEff() const
Return the effective temperature transport coefficient.
void correctPhasePhi()
Correct the phase mass-fluxes.
A class for managing temporary objects.
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.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture