From 459aa318fbe4801f807259575295ff11f893ec57 Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Mon, 29 Oct 2012 12:40:58 +0000 Subject: [PATCH] ENH: Updated temperature jump BCs --- .../energyJump/energyJump/energyJumpFvPatchScalarField.C | 8 +++++++- .../energyJumpAMI/energyJumpAMIFvPatchScalarField.C | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C index 62ac6516efb..71a097f55f6 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 9f596c3cdec..81a992b9ab2 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(); -- GitLab