diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpFvPatchScalarField.C index 400914aac4..750252d4bc 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpFvPatchScalarField.C @@ -77,7 +77,6 @@ Foam::energyJumpFvPatchScalarField::energyJumpFvPatchScalarField const energyJumpFvPatchScalarField& ptf ) : - cyclicLduInterfaceField(), fixedJumpFvPatchField(ptf) {} @@ -115,16 +114,9 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs() thermo.T().boundaryField()[patchID] ); - const scalar time = this->db().time().value(); - const scalarField jumpTb - ( - patch().size(), - TbPatch.jumpTable().value(time) - ); - const labelUList& faceCells = this->patch().faceCells(); - jump_ = thermo.he(pp, jumpTb, faceCells); + jump_ = thermo.he(pp, TbPatch.jump(), faceCells); } fixedJumpFvPatchField::updateCoeffs(); diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.C index 0ace9a70e4..22828d79c7 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.C @@ -84,7 +84,6 @@ Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField const temperatureJumpFvPatchScalarField& ptf ) : - cyclicLduInterfaceField(), fixedJumpFvPatchField(ptf), jumpTable_(ptf.jumpTable_().clone().ptr()) {} @@ -103,6 +102,17 @@ Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +Foam::tmp +Foam::temperatureJumpFvPatchScalarField::jump() const +{ + const scalar time = this->db().time().value(); + + tmp tj(new scalarField(this->size(), jumpTable_->value(time))); + + return tj; +} + + void Foam::temperatureJumpFvPatchScalarField::write(Ostream& os) const { fixedJumpFvPatchField::write(os); diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.H index bdb39e961f..b99020189b 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/temperatureJump/temperatureJumpFvPatchScalarField.H @@ -166,6 +166,9 @@ public: // Access functions + //- Return a field of the temperature jump + virtual tmp jump() const; + //- Return jumpTable const DataEntry& jumpTable() const {