mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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()
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -128,6 +128,10 @@ void Foam::phaseModel::correctTurbulence()
|
||||
{}
|
||||
|
||||
|
||||
void Foam::phaseModel::correctEnergyTransport()
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::phaseModel::read()
|
||||
{
|
||||
return diameterModel_->read(fluid_.subDict(name_));
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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())
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
{
|
||||
fluid.correctEnergyTransport();
|
||||
|
||||
autoPtr<phaseSystem::heatTransferTable>
|
||||
heatTransferPtr(fluid.heatTransfer());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user