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_)
100 ThermalDiffusivity<PhaseCompressibleTurbulenceModel<fluidThermo>>
114 ThermalDiffusivity<PhaseCompressibleTurbulenceModel<fluidThermo>>
136 turbulence_->validate();
146 if (twoPhaseTransport_)
149 mixture_.alpha1()*mixture_.thermo1().alphaEff
151 turbulence1_->alphat()
153 + mixture_.alpha2()*mixture_.thermo2().alphaEff
155 turbulence2_->alphat()
160 return mixture_.alphaEff(turbulence_->alphat());
171 if (twoPhaseTransport_)
174 turbulence1_->divDevRhoReff(
U)
175 + turbulence2_->divDevRhoReff(
U);
179 return turbulence_->divDevRhoReff(
U);
186 if (twoPhaseTransport_)
199 if (twoPhaseTransport_)
201 turbulence1_->correct();
202 turbulence2_->correct();
206 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