Orbit-Sim

An ANSI-C Library for Gravity Simulations

What is it?

Orbit-Sim is a simple library for simulating gravitational orbits, whether they be planets or subatomic particles. It's written in ANSI C, so it can be ported to just about any GUI you imagine.

How do I use it?

Very simple.

Simply include the "orbit7.h" header and C file in your program, and declare a structure of type ORBIT7DATA, containing as many moving bodies as you like.
Then call one of these three functions:

The first routine mallocs a gravitational system of any size into your structure; the second routine frees it; the third routine advances the system any number of time steps. You can easily access all information in the system (positions, trajectories, etc.) via convenience macros.

Lemme see it!

Sure, sure.

We offer the following links for your downloading pleasure:

Who are you guys?

Jane gasped.
"Who was that masked programmer?!?", she asked.

Jimmy winced in the bright sunlight. "Actually, I think there was more than one of them."

"Yes, but where did they come from?"

"I'm not sure, Jane, but they left this behind."

And in his hand gleamed a small red bean.