Skip to content
Snippets Groups Projects
Commit 459aa318 authored by andy's avatar andy
Browse files

ENH: Updated temperature jump BCs

parent 90ef61f4
Branches
Tags
No related merge requests found
...@@ -113,9 +113,15 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs() ...@@ -113,9 +113,15 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs()
thermo.T().boundaryField()[patchID] thermo.T().boundaryField()[patchID]
); );
fixedJumpFvPatchScalarField& Tbp =
const_cast<fixedJumpFvPatchScalarField&>(TbPatch);
// force update of jump
Tbp.updateCoeffs();
const labelUList& faceCells = this->patch().faceCells(); const labelUList& faceCells = this->patch().faceCells();
jump_ = thermo.he(pp, TbPatch.jump(), faceCells); jump_ = thermo.he(pp, Tbp.jump(), faceCells);
} }
fixedJumpFvPatchField<scalar>::updateCoeffs(); fixedJumpFvPatchField<scalar>::updateCoeffs();
......
...@@ -113,9 +113,15 @@ void Foam::energyJumpAMIFvPatchScalarField::updateCoeffs() ...@@ -113,9 +113,15 @@ void Foam::energyJumpAMIFvPatchScalarField::updateCoeffs()
thermo.T().boundaryField()[patchID] thermo.T().boundaryField()[patchID]
); );
fixedJumpAMIFvPatchScalarField& Tbp =
const_cast<fixedJumpAMIFvPatchScalarField&>(TbPatch);
// force update of jump
Tbp.updateCoeffs();
const labelUList& faceCells = this->patch().faceCells(); const labelUList& faceCells = this->patch().faceCells();
jump_ = thermo.he(pp, TbPatch.jump(), faceCells); jump_ = thermo.he(pp, Tbp.jump(), faceCells);
} }
fixedJumpAMIFvPatchField<scalar>::updateCoeffs(); fixedJumpAMIFvPatchField<scalar>::updateCoeffs();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment