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.

Problems handling simultaneous events.

Return to the OSP Programming forum
Login to post to this thread

EjsS 5.2 seems to have difficulty handling simultaneous events. - August 10, 2016 at 1:50
Stephen Salser
8 Posts

I created separate events for collisions of particles with the left and right walls.

The events are handled properly when the events are non simultaneous, but when a right wall and left wall collision happen simultaneously, only the right wall even is handled.

These are both Positive Crossing events, and I have tried both Secant and Bisection methods.

Is there a elegant fix to this problem?


Current Replies - View all
Re: EjsS 5.2 seems to hav...   (lookang - August 10, 2016 at 2:36)
Re: EjsS 5.2 seems to hav...   (Wolfgang - August 10, 2016 at 6:21)
Re: Re: EjsS 5.2 seems to...   (Stephen Salser - August 11, 2016 at 1:41)
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book