fluidThermo: Moved kappaEff and alphaEff into ThermophysicalTransportModels

This completes the separation between thermodynamics and thermophysical
transport modelling and all models and boundary conditions involving heat
transfer now obtain the transport coefficients from the appropriate
ThermophysicalTransportModels rather than from fluidThermo.
This commit is contained in:
Henry Weller
2022-09-07 18:31:04 +01:00
parent 461075725d
commit 6d563efec1
14 changed files with 84 additions and 232 deletions

View File

@ -138,44 +138,37 @@ Foam::compressibleInterPhaseTransportModel::compressibleInterPhaseTransportModel
Foam::tmp<Foam::volScalarField>
Foam::compressibleInterPhaseTransportModel::alphaEff() const
{
/* ***HGW
if (twoPhaseTransport_)
{
return
mixture_.alpha1()*mixture_.thermo1().alphaEff
(
turbulence1_->alphat()
)
+ mixture_.alpha2()*mixture_.thermo2().alphaEff
(
turbulence2_->alphat()
);
mixture_.alpha1()
*(
mixture_.thermo1().kappa()
+ mixture_.thermo1().rho()*mixture_.thermo1().Cp()
*turbulence1_->nut()
)/mixture_.thermo1().Cv()
+ mixture_.alpha2()
*(
mixture_.thermo2().kappa()
+ mixture_.thermo2().rho()*mixture_.thermo2().Cp()
*turbulence2_->nut()
)/mixture_.thermo2().Cv();
}
else
{
return mixture_.alphaEff(turbulence_->alphat());
}
*/
if (twoPhaseTransport_)
{
return
mixture_.alpha1()*mixture_.thermo1().alphaEff
(
mixture_.thermo1().rho()*turbulence1_->nut()
)
+ mixture_.alpha2()*mixture_.thermo2().alphaEff
(
mixture_.thermo2().rho()*turbulence2_->nut()
);
}
else
{
const volScalarField alphat(mixture_.rho()*turbulence_->nut());
return
mixture_.alpha1()*mixture_.thermo1().alphaEff(alphat)
+ mixture_.alpha2()*mixture_.thermo2().alphaEff(alphat);
mixture_.alpha1()
*(
mixture_.thermo1().kappa()
+ mixture_.thermo1().rho()*mixture_.thermo1().Cp()
*turbulence_->nut()
)/mixture_.thermo1().Cv()
+ mixture_.alpha2()
*(
mixture_.thermo2().kappa()
+ mixture_.thermo2().rho()*mixture_.thermo2().Cp()
*turbulence_->nut()
)/mixture_.thermo2().Cv();
}
}

View File

@ -115,6 +115,7 @@ public:
// Member Functions
//- Return the effective temperature transport coefficient
// derived from the phase internal energy equations i.e. <kappa/Cv>
tmp<volScalarField> alphaEff() const;
//- Return the effective momentum stress divergence