uniformInletOutletFvPatchField: Update refValue in updateCoeffs
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1943
This commit is contained in:
parent
a2fbd855a6
commit
3e6f38f1a8
1 changed files with 11 additions and 8 deletions
|
|
@ -55,8 +55,8 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField
|
|||
phiName_(dict.lookupOrDefault<word>("phi", "phi")),
|
||||
uniformInletValue_(DataEntry<Type>::New("uniformInletValue", dict))
|
||||
{
|
||||
const scalar t = this->db().time().timeOutputValue();
|
||||
this->refValue() = uniformInletValue_->value(t);
|
||||
this->refValue() =
|
||||
uniformInletValue_->value(this->db().time().timeOutputValue());
|
||||
|
||||
if (dict.found("value"))
|
||||
{
|
||||
|
|
@ -91,8 +91,8 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField
|
|||
this->patchType() = ptf.patchType();
|
||||
|
||||
// Evaluate refValue since not mapped
|
||||
const scalar t = this->db().time().timeOutputValue();
|
||||
this->refValue() = uniformInletValue_->value(t);
|
||||
this->refValue() =
|
||||
uniformInletValue_->value(this->db().time().timeOutputValue());
|
||||
|
||||
this->refGrad() = pTraits<Type>::zero;
|
||||
this->valueFraction() = 0.0;
|
||||
|
|
@ -139,6 +139,9 @@ void Foam::uniformInletOutletFvPatchField<Type>::updateCoeffs()
|
|||
return;
|
||||
}
|
||||
|
||||
this->refValue() =
|
||||
uniformInletValue_->value(this->db().time().timeOutputValue());
|
||||
|
||||
const Field<scalar>& phip =
|
||||
this->patch().template lookupPatchField<surfaceScalarField, scalar>
|
||||
(
|
||||
|
|
@ -175,8 +178,8 @@ void Foam::uniformInletOutletFvPatchField<Type>::autoMap
|
|||
mixedFvPatchField<Type>::autoMap(m);
|
||||
|
||||
// Override
|
||||
const scalar t = this->db().time().timeOutputValue();
|
||||
this->refValue() = uniformInletValue_->value(t);
|
||||
this->refValue() =
|
||||
uniformInletValue_->value(this->db().time().timeOutputValue());
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -190,8 +193,8 @@ void Foam::uniformInletOutletFvPatchField<Type>::rmap
|
|||
mixedFvPatchField<Type>::rmap(ptf, addr);
|
||||
|
||||
// Override
|
||||
const scalar t = this->db().time().timeOutputValue();
|
||||
this->refValue() = uniformInletValue_->value(t);
|
||||
this->refValue() =
|
||||
uniformInletValue_->value(this->db().time().timeOutputValue());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue