BUG: uniformInletOutlet - uniform value updated as a function of time in updateCoeffs(). Fixes #2

This commit is contained in:
Andrew Heather
2015-10-21 17:02:51 +01:00
parent 00e61b9bbb
commit 867d0b09c1

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -141,6 +141,10 @@ void Foam::uniformInletOutletFvPatchField<Type>::updateCoeffs()
return;
}
// Update the uniform value as a function of time
const scalar t = this->db().time().timeOutputValue();
this->refValue() = uniformInletValue_->value(t);
const Field<scalar>& phip =
this->patch().template lookupPatchField<surfaceScalarField, scalar>
(