|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002459||OpenFOAM||[All Projects] Bug||public||2017-02-13 18:09||2017-02-27 09:33|
|Target Version||Fixed in Version|
|Summary||0002459: fieldAverage function object is wrongly initialized for variable time step sizes|
|Description||For a variable time step size the totalTime is initialized with the first time step size deltaT. |
I guess it happens in the function
I set the timeStart in the controlDict to 87.
For my case the deltaT value at timeStart was quite different from the initial time step size (a factor 10 heigher).
So the averaged velocity computed at the first averaging step was not equal to the velocity at the time of the first averaging step.
since the factors in fieldAverageTemplates.C
scalar dt = obr_.time().deltaTValue();
scalar Dt = totalTime_[fieldi];
where not the same at the very first averaging step.
When I initialized the totalTime_[fieldi] list with the deltaT value at the averaging start the very first mean velocity was equal to the current velocity.
|Tags||No tags attached.|
|2017-02-13 18:09||michael2015||New Issue|