APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Evolution of time in simulation

Return to the EJS Modeling forum
Login to post to this thread

Time
Apostolos Michaloudis
28 Posts

Hi everyone!
I have a problem:
I use a page of code and i increase time like this:
t += dt;    where dt = 0.1;

Problem is that in diferrent machines sim is going way too slow

I choose RTV -> t
and SPD -> 1

To fix the problem i create methods to increase the speed with _setSPD() method.

Is there a way to make sim running smoothly without having the students choose the speed?


Current Replies - View all
Re: Time   (lookang - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book