||January 28, 2010 03:42
Originally Posted by Alicelin
Thanks for your reply...I want to know that in
, what's the meaning of the parameters in the blanket(i.e. Times[startTime]
and startTime) ? Say if I put 0 or any other time instead of startTime for the second parameter in the blanket, what'll be the changes??
If you have "Times[startTime]", that's a time 'instant' and you can see from the corresponding code (in Time.C) what happens:
void Foam::Time::setTime(const instant& inst, const label newIndex)
value() = inst.value();
dimensionedScalar::name() = inst.name();
timeIndex_ = newIndex;
Thus if the specified time instant exists in your results and has the sub-dir with a uniform/time (eg, 0/uniform/time, or 100/uniform/time, etc.) the time index will be read from that file. Otherwise your specified time index will be used.
If you really want to bypass the read dictionary semantics, you could specifying the time value directly as a scalar. For example,
But for most cases, I think that the normal behaviour (with the read dictionary semantics) probably does what you want. For example, suppose you had run a calculation from 0 to 1000 iterations with output every 100 iterations. Your time instantList would have 12 entries (constant, 0, 100 .. 1000). Specifying the following:
int someTime = 7;
This would select the time instance corresponding to '500' with an index of '7'. However, since the uniform/time entry exists, it will be read and the real time index will actually be set to 500. If you wished to continue calculating from here, this is exactly what you want.