> On Dec 2, 2014, at 4:27 PM, Scott Cytacki <
scyt...@concord.org> wrote:
>
> Right now though I'm wondering about the timeStep, computation time, and model divergence.
>
> If I increase the timeStep does that increase the chances of model divergence?
Yes. The model calculations get less accurate and the atoms move more for each step, so there is a greater chance that a fast moving atom will overlap too much with another atom.
> Also if we remove the view code from the equation and the timeStep is multiplied by X and the timeStepsPerTick is divided by X, does that mean the model runs X times faster?
That seems right. You would be doing half as many calculations to advance one tick which would still be the same amount of model time.
> Does the integration code use some 'settling out' approach so that larger timeSteps might require more time to solve?
I don’t think so, but I’m not intimately familiar with the innards of the engine calculations.
>
> I realize that some interactives run scripts on each tick, these scripts will prevent my timeStep adjustment above from speeding up the model by X times.
That is also true if the view rendering takes a significant amount of time. In that case you won’t get the X times speedup you are expecting above.
> Is there non-view code in MD2D that also runs on each tick which would also affect the performance of my timeStep adjustment?
We store some info about the model each tick so we can go back and forth through the history without recalculating. I’m not sure if there is anything else.
-Dan