multiphaseEuler::MomentumTransferPhaseSystem::alphaDByAf: Only consider pPrime for moving phases

This commit is contained in:
Henry Weller
2023-08-30 13:32:20 +01:00
parent abb919c6d8
commit a91e7ea6d3

View File

@ -1094,17 +1094,16 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::alphaDByAf
tmp<surfaceScalarField> alphaDByAf; tmp<surfaceScalarField> alphaDByAf;
// Add the phase pressure // Add the phase pressure
forAll(this->phaseModels_, phasei) forAll(this->movingPhases(), movingPhasei)
{ {
const phaseModel& phase = this->phaseModels_[phasei]; const phaseModel& phase = this->movingPhases()[movingPhasei];
const tmp<volScalarField> pPrime(phase.pPrime()); const tmp<volScalarField> pPrime(phase.pPrime());
addTmpField addTmpField
( (
alphaDByAf, alphaDByAf,
fvc::interpolate(max(phase, scalar(0))) fvc::interpolate(max(phase, scalar(0)))
*fvc::interpolate(rAs[phasei]*pPrime(), pPrime().name()) *fvc::interpolate(rAs[phase.index()]*pPrime(), pPrime().name())
); );
} }