rwcarlsen/cyctest — Issue #10: 106 - change default simulation time step to use finer granularity 
Author: rwcarlsen
Created: 2012-01-24 17:47:28+00:00
State: closed

A finer grained time-step will provide greater flexibility for concrete model developers. I recommend a time step size on the order of 1 day. This will require no changes to the core or any model interfaces. Only Concrete models will need to be changed to 'convert' to the smaller time step.

Also related, all concrete models should perform their state updates (i.e. everything they do on a handleTick, handleToc, resolve, etc.) by explicitly calculating a time change based on the time of the previous time event they received. For instance, if a recipe reactor receives a tick, rather than assuming a day passed by since the last tick, it will calculate the time change (this may be accommodated by a deltaTime method on the Timer class) and use the time that passed since the last tick to calculate its corresponding fuel consumption, output, etc.

Original link: http://code.google.com/p/cyclus/issues/detail?id=106