View Issue Details

IDProjectCategoryView StatusLast Update
0001943OpenFOAM[All Projects] Bugpublic2015-12-08 14:25
ReporterVojta_PrihodaAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Product Version 
Fixed in Version 
Summary0001943: Boundary condition uniformInletOutlet does not update its value in time.
DescriptionIn transient case, I have used boundary condition uniformInletOutlet with values read from .csv file and I found, that it does not update its value over time, the inlet value is still the same. When I restart the computation from non-zero time, in first iteration the boundary condition sets the proper inletValue from my .csv file, but then again it stays the same for the rest of the computation.
I did inspect the source code for the boundary condition and I believe that in file uniformInletOutletFvPatchField.C in function Foam::uniformInletOutletFvPatchField<Type>::updateCoeffs() there needs to be something to update refValue. For myself, I fixed it by adding following two lines of code in Foam::uniformInletOutletFvPatchField<Type>::updateCoeffs():

const scalar t = this->db().time().timeOutputValue();
this->refValue() = uniformInletValue_->value(t);
Steps To ReproduceRun arbitrary transient case with uniformInletOutlet condition working in regime of fixedValue, where inletValue is time dependent and it is read from .csv file.
TagsNo tags attached.

Activities

henry

2015-12-08 14:25

manager   ~0005730

Thanks for the bug-report
Resolved in OpenFOAM-dev by commit 3e6f38f1a885c1e5461b0c930762db63c678ba5a
Resolved in OpenFOAM-3.0.x by commit 7d16c2d3aa0211d74db151695b3e46f87cb70de9

Issue History

Date Modified Username Field Change
2015-12-08 12:13 Vojta_Prihoda New Issue
2015-12-08 14:25 henry Note Added: 0005730
2015-12-08 14:25 henry Status new => resolved
2015-12-08 14:25 henry Resolution open => fixed
2015-12-08 14:25 henry Assigned To => henry