diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C index 62ac6516efbe0c408c2fa518c6737d38019d4b81..71a097f55f6b9b51aec1498e4f96657f272e920d 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C @@ -113,9 +113,15 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs() thermo.T().boundaryField()[patchID] ); + fixedJumpFvPatchScalarField& Tbp = + const_cast<fixedJumpFvPatchScalarField&>(TbPatch); + + // force update of jump + Tbp.updateCoeffs(); + const labelUList& faceCells = this->patch().faceCells(); - jump_ = thermo.he(pp, TbPatch.jump(), faceCells); + jump_ = thermo.he(pp, Tbp.jump(), faceCells); } fixedJumpFvPatchField<scalar>::updateCoeffs(); diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C index 9f596c3cdec5589f8de979438241b12b1749023b..81a992b9ab2a93a89d510d3c2b059e68fa71705c 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C @@ -113,9 +113,15 @@ void Foam::energyJumpAMIFvPatchScalarField::updateCoeffs() thermo.T().boundaryField()[patchID] ); + fixedJumpAMIFvPatchScalarField& Tbp = + const_cast<fixedJumpAMIFvPatchScalarField&>(TbPatch); + + // force update of jump + Tbp.updateCoeffs(); + const labelUList& faceCells = this->patch().faceCells(); - jump_ = thermo.he(pp, TbPatch.jump(), faceCells); + jump_ = thermo.he(pp, Tbp.jump(), faceCells); } fixedJumpAMIFvPatchField<scalar>::updateCoeffs();