TurbulenceModels/compressible: Added correctEnergyTransport() function

to allow the turbulent energy transport properties to be updated for
every energy solution if required.

Added correctEnergyTransport() call to reactingTwoPhaseEulerFoam
This commit is contained in:
Henry Weller
2015-08-26 15:37:52 +01:00
parent f5dc3eb8a7
commit fb11bcc874
15 changed files with 324 additions and 0 deletions

View File

@ -243,6 +243,14 @@ void Foam::MovingPhaseModel<BasePhaseModel>::correctTurbulence()
}
template<class BasePhaseModel>
void Foam::MovingPhaseModel<BasePhaseModel>::correctEnergyTransport()
{
BasePhaseModel::correctEnergyTransport();
turbulence_->correctEnergyTransport();
}
template<class BasePhaseModel>
Foam::tmp<Foam::fvVectorMatrix>
Foam::MovingPhaseModel<BasePhaseModel>::UEqn()

View File

@ -125,6 +125,9 @@ public:
//- Correct the turbulence
virtual void correctTurbulence();
//- Correct the energy transport e.g. alphat
virtual void correctEnergyTransport();
//- Return the momentum equation
virtual tmp<fvVectorMatrix> UEqn();

View File

@ -128,6 +128,10 @@ void Foam::phaseModel::correctTurbulence()
{}
void Foam::phaseModel::correctEnergyTransport()
{}
bool Foam::phaseModel::read()
{
return diameterModel_->read(fluid_.subDict(name_));

View File

@ -151,6 +151,9 @@ public:
//- Correct the turbulence
virtual void correctTurbulence();
//- Correct the energy transport e.g. alphat
virtual void correctEnergyTransport();
//- Return the momentum equation
virtual tmp<fvVectorMatrix> UEqn() = 0;

View File

@ -334,6 +334,15 @@ void Foam::phaseSystem::correctTurbulence()
}
void Foam::phaseSystem::correctEnergyTransport()
{
forAllIter(phaseModelTable, phaseModels_, phaseModelIter)
{
phaseModelIter()->correctEnergyTransport();
}
}
bool Foam::phaseSystem::read()
{
if (regIOobject::read())

View File

@ -348,6 +348,9 @@ public:
//- Correct the turbulence
virtual void correctTurbulence();
//- Correct the energy transport e.g. alphat
virtual void correctEnergyTransport();
//- Read base phaseProperties dictionary
virtual bool read();

View File

@ -1,4 +1,6 @@
{
fluid.correctEnergyTransport();
autoPtr<phaseSystem::heatTransferTable>
heatTransferPtr(fluid.heatTransfer());