33 Foam::compressibleInterPhaseTransportModel::compressibleInterPhaseTransportModel
40 const twoPhaseMixtureThermo&
mixture 43 twoPhaseTransport_(false),
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();
103 ThermalDiffusivity<PhaseCompressibleTurbulenceModel<fluidThermo>>
117 ThermalDiffusivity<PhaseCompressibleTurbulenceModel<fluidThermo>>
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());
174 if (twoPhaseTransport_)
177 turbulence1_->divDevRhoReff(
U)
178 + turbulence2_->divDevRhoReff(
U);
182 return turbulence_->divDevRhoReff(
U);
189 if (twoPhaseTransport_)
191 const tmp<volScalarField>
rho1 = mixture_.thermo1().rho();
192 const tmp<volScalarField>
rho2 = mixture_.thermo2().rho();
202 if (twoPhaseTransport_)
204 turbulence1_->correct();
205 turbulence2_->correct();
209 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.
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
void correctPhasePhi()
Correct the phase mass-fluxes.
void correct()
Correct the phase or mixture transport models.
Ignore writing from objectRegistry::writeObject()
GeometricField< vector, fvPatchField, volMesh > volVectorField
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(StringType base, const word &group)
Create dot-delimited name.group string.
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual tmp< volScalarField > rho() const
Density [kg/m^3] - uses current value of pressure.
tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the effective momentum stress divergence.
static autoPtr< psiThermo > New(const fvMesh &mesh, const word &phaseName=word::null)
Selector.
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.
static autoPtr< ThermalDiffusivity > New(const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transportModel, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField