mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: re-worked temperature/energy jumps
This commit is contained in:
@ -77,7 +77,6 @@ Foam::energyJumpFvPatchScalarField::energyJumpFvPatchScalarField
|
|||||||
const energyJumpFvPatchScalarField& ptf
|
const energyJumpFvPatchScalarField& ptf
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cyclicLduInterfaceField(),
|
|
||||||
fixedJumpFvPatchField<scalar>(ptf)
|
fixedJumpFvPatchField<scalar>(ptf)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -115,16 +114,9 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs()
|
|||||||
thermo.T().boundaryField()[patchID]
|
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();
|
const labelUList& faceCells = this->patch().faceCells();
|
||||||
|
|
||||||
jump_ = thermo.he(pp, jumpTb, faceCells);
|
jump_ = thermo.he(pp, TbPatch.jump(), faceCells);
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedJumpFvPatchField<scalar>::updateCoeffs();
|
fixedJumpFvPatchField<scalar>::updateCoeffs();
|
||||||
|
|||||||
@ -84,7 +84,6 @@ Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField
|
|||||||
const temperatureJumpFvPatchScalarField& ptf
|
const temperatureJumpFvPatchScalarField& ptf
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cyclicLduInterfaceField(),
|
|
||||||
fixedJumpFvPatchField<scalar>(ptf),
|
fixedJumpFvPatchField<scalar>(ptf),
|
||||||
jumpTable_(ptf.jumpTable_().clone().ptr())
|
jumpTable_(ptf.jumpTable_().clone().ptr())
|
||||||
{}
|
{}
|
||||||
@ -103,6 +102,17 @@ Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::tmp<Foam::scalarField>
|
||||||
|
Foam::temperatureJumpFvPatchScalarField::jump() const
|
||||||
|
{
|
||||||
|
const scalar time = this->db().time().value();
|
||||||
|
|
||||||
|
tmp<scalarField> tj(new scalarField(this->size(), jumpTable_->value(time)));
|
||||||
|
|
||||||
|
return tj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::temperatureJumpFvPatchScalarField::write(Ostream& os) const
|
void Foam::temperatureJumpFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fixedJumpFvPatchField<scalar>::write(os);
|
fixedJumpFvPatchField<scalar>::write(os);
|
||||||
|
|||||||
@ -166,6 +166,9 @@ public:
|
|||||||
|
|
||||||
// Access functions
|
// Access functions
|
||||||
|
|
||||||
|
//- Return a field of the temperature jump
|
||||||
|
virtual tmp<scalarField> jump() const;
|
||||||
|
|
||||||
//- Return jumpTable
|
//- Return jumpTable
|
||||||
const DataEntry<scalar>& jumpTable() const
|
const DataEntry<scalar>& jumpTable() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user