BUG: fixedJump: calculate jump in he. Fixes #2327

This commit is contained in:
mattijs
2022-01-13 10:16:31 +00:00
parent 2047a69115
commit 4b7f92935e
2 changed files with 10 additions and 2 deletions

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2017 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -125,7 +126,11 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs()
const labelUList& faceCells = this->patch().faceCells();
setJump(thermo.he(pp, Tbp.jump(), faceCells));
setJump
(
thermo.he(pp, Tbp+Tbp.jump(), faceCells)
- thermo.he(pp, Tbp, faceCells)
);
}
fixedJumpFvPatchField<scalar>::updateCoeffs();

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2017 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -125,7 +126,9 @@ void Foam::energyJumpAMIFvPatchScalarField::updateCoeffs()
const labelUList& faceCells = this->patch().faceCells();
jump_ = thermo.he(pp, Tbp.jump(), faceCells);
jump_ =
thermo.he(pp, Tbp+Tbp.jump(), faceCells)
- thermo.he(pp, Tbp, faceCells);
}
fixedJumpAMIFvPatchField<scalar>::updateCoeffs();