How does my special relativity simulator work?

markosr
Messages
3
Reaction score
0
Hello!

I have no formal relativistic education, however, I am plenty of an enthusiast. Finding relativity fascinating I decided to learn it the best way that I know of, that is - putting it into a computer program. So, I've written a special relativity simulator.

It doesn't show Doppler and headlight effects as some other fine simulators out there, but it can simulate relativistic motion of "bodies", their 3d models and has some features I haven't found elsewhere. It can show the scene as-observed (typical text-book view) or as-seen (with optical aberration). The camera is put outside of the current observer, which is rather unrealistic, but I find such 3rd person view to show with more clarity what is going on. The bodies can do accelerations, you can rewind the time and switch among observers on-the-fly (every body can be an observer). User interface is limited to 2D plane, but the engine is fully 3D capable. I've prepared several scripts/examples which you can try, such as the classical length contraction, time dilation, simultaneity, twin paradox, ladder and barn...

There are screens/video, a Linux build and source code available at http://thelarge.org . All the libraries used are cross-platform.

I though the physics forum would be the best place to kindly ask for some feedback. If anyone is interested, I'd appreciate any comments, especially on the correctness and accuracy of the simulation.

Cheers,
Marko
 
Physics news on Phys.org
The demo video looks cool, and it's great that this is open source. I assume you're familiar with the ANU videos.
 
Yes, I've seen those, also, they did Real Time Relativity, which is really nice :) . However, I believe RTR's world is pretty static, I wanted to do fully dynamic simulation, similar to Bullet or ODE (OpenDynamicsEngine), but relativistic. I wanted to be able to specify initial velocities and positions of the bodies, then have an update callback at each time-step to apply accelerations. The program keeps track of history/worldlines, so you can go back in time and switch observers. That way it is possible to, say, program a game or some other interactive dynamic simulation using special-relativistic physics.
 
In this video I can see a person walking around lines of curvature on a sphere with an arrow strapped to his waist. His task is to keep the arrow pointed in the same direction How does he do this ? Does he use a reference point like the stars? (that only move very slowly) If that is how he keeps the arrow pointing in the same direction, is that equivalent to saying that he orients the arrow wrt the 3d space that the sphere is embedded in? So ,although one refers to intrinsic curvature...
ASSUMPTIONS 1. Two identical clocks A and B in the same inertial frame are stationary relative to each other a fixed distance L apart. Time passes at the same rate for both. 2. Both clocks are able to send/receive light signals and to write/read the send/receive times into signals. 3. The speed of light is anisotropic. METHOD 1. At time t[A1] and time t[B1], clock A sends a light signal to clock B. The clock B time is unknown to A. 2. Clock B receives the signal from A at time t[B2] and...
So, to calculate a proper time of a worldline in SR using an inertial frame is quite easy. But I struggled a bit using a "rotating frame metric" and now I'm not sure whether I'll do it right. Couls someone point me in the right direction? "What have you tried?" Well, trying to help truly absolute layppl with some variation of a "Circular Twin Paradox" not using an inertial frame of reference for whatevere reason. I thought it would be a bit of a challenge so I made a derivation or...
Back
Top