Commit 867d0b09 authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 00e61b9b
......@@ -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>
(
......
Markdown is supported
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