encounter_bin_id int64 0 4 | encounter_bin_name stringclasses 5
values | energies list | min_pairwise_distance float64 0 3.02 | trajectories array 3D |
|---|---|---|---|---|
2 | mid | [
-2.096142117668943,
-2.096142117668943,
-2.0961421176689417,
-2.0961421176689754,
-2.0961421176689763,
-2.0961421176689763,
-2.0961421176689754,
-2.0961421176689754,
-2.0961421176689763,
-2.0961421176689767,
-2.0961421176689763,
-2.0961421176689763,
-2.0961421176689754,
-2.0961421176689763... | 0.080912 | [
[
[
0.057118375825217435,
0.3558512624546301,
0.789132398828959,
-1.1041893392040696,
1
],
[
-0.505396820981114,
-0.38548867488433547,
0.2909094869178322,
0.3243391505032395,
1
],
[
0.44827844515589665,
0.029637412429705558,... |
3 | wide | [
-1.8175196041358868,
-1.8175196041358865,
-1.8175196041358865,
-1.8175196041358863,
-1.8175196041358863,
-1.8175196041358863,
-1.8175196041358865,
-1.817519604135886,
-1.817519604135886,
-1.817519604135886,
-1.8175196041358865,
-1.8175196041358868,
-1.8175196041358865,
-1.817519604135886,
... | 0.157166 | [
[
[
0.6672407135993493,
-0.24360714218725896,
-0.4191459074660243,
0.1399860116843292,
1
],
[
0.46565734817075527,
0.4717792467454269,
0.5371927194777942,
0.5645684910955937,
1
],
[
-1.1328980617701048,
-0.22817210455816822,... |
1 | near | [
-1.8697176564499647,
-1.8697176564499642,
-1.8697176564499642,
-1.8697176564499645,
-1.8697176564499645,
-1.8697176564499642,
-1.8697176564499642,
-1.8697176564499642,
-1.8697176564499642,
-1.8697176564499645,
-1.869717656449964,
-1.8697176564499645,
-1.8697176564499642,
-1.869717656449964... | 0.049487 | [
[
[
0.5632269056964875,
0.43285910066007105,
-0.2341328147135114,
0.03960678622129714,
1
],
[
-0.7589903033171318,
0.284824580918426,
0.6146714725659251,
0.35739036010441716,
1
],
[
0.1957633976206444,
-0.7176836815784969,
... |
3 | wide | [-0.6673915848131955,-0.6673915848131957,-0.6673915848131955,-0.6673915848131956,-0.6673915848131957(...TRUNCATED) | 0.346213 | [[[-1.8129421069311802,0.8807961875398566,-0.6299097043752204,-0.26152255442996153,1.0],[0.428848837(...TRUNCATED) |
1 | near | [-5.3001004639043625,-5.300100463904364,-5.300100463904354,-5.300100463904353,-5.300100463904353,-5.(...TRUNCATED) | 0.033727 | [[[-0.0062458880838289705,-0.5369630845511595,-0.38056270334917497,0.9500051774037332,1.0],[-0.00287(...TRUNCATED) |
4 | far | [-0.5811681309461143,-0.5811681309461141,-0.5811681309461139,-0.5811681309461141,-0.5811681309461145(...TRUNCATED) | 0.640235 | [[[1.211256153886933,1.3407908632400072,-0.005580135286698056,0.09870169855843262,1.0],[0.0424175040(...TRUNCATED) |
3 | wide | [-0.8605521611765516,-0.8605521611765516,-0.8605521611765516,-0.8605521611765516,-0.8605521611765519(...TRUNCATED) | 0.212064 | [[[-0.46785367287831126,1.0476367485079292,-0.48243850555981754,0.5832102737587987,1.0],[-0.61612356(...TRUNCATED) |
1 | near | [-2.7623387301344042,-2.7623387301344042,-2.762338730134407,-2.762338730134357,-2.7623387301343567,-(...TRUNCATED) | 0.026227 | [[[-0.9521219987240338,0.5948800671368459,-0.22032406218305456,0.6928561105857022,1.0],[0.2881283430(...TRUNCATED) |
4 | far | [-0.5966291446830543,-0.5966291446830542,-0.5966291446830545,-0.5966291446830541,-0.5966291446830545(...TRUNCATED) | 0.545686 | [[[0.8770073577524048,1.7433748171736698,0.6839169292071098,0.015924869033338618,1.0],[0.13181654494(...TRUNCATED) |
4 | far | [-0.1998320864980423,-0.1998320864980423,-0.1998320864980423,-0.19983208649804274,-0.199832086498042(...TRUNCATED) | 0.521144 | [[[0.4202279982098413,-0.8296671062422599,-1.1568569651870633,0.4764799540730687,1.0],[-0.0916211539(...TRUNCATED) |
Three-Body Trajectory Benchmark
This dataset contains two-dimensional gravitational three-body trajectories used in a master's thesis on neural prediction of dynamical systems. The benchmark is designed for training and evaluating models that generate future states autoregressively from an initial state.
Each trajectory contains three equal-mass bodies interacting through mutual gravitational interaction. The data were generated with the REBOUND simulation package using the IAS15 integrator. All simulations use gravitational constant G = 1, body mass m = 1, time step dt = 0.05, and 200 sampled states per trajectory.
Files
| File | Role | Number of trajectories |
|---|---|---|
train.h5 |
training split | 1000 |
val.h5 |
validation split | 600 |
test.h5 |
test split | 600 |
The validation and test splits are balanced across five trajectory classes defined by the closest encounter reached during the trajectory. The training split follows the same class balance.
State Format
The main dataset inside each HDF5 file is named trajectories and has shape:
(n_trajectories, 200, 3, 5)
The last dimension stores the state of one body:
[x, y, vx, vy, m]
where x, y are planar coordinates, vx, vy are planar velocity components, and m is the body mass.
Each file also contains an energies dataset with shape:
(n_trajectories, 200)
This stores the total mechanical energy of the corresponding trajectory at each sampled time step.
Trajectory Classes
Trajectories are grouped by the minimum pairwise Euclidean distance reached between any two bodies during the full trajectory:
| Class | Criterion |
|---|---|
close |
0.00 <= d_min < 0.02 |
near |
0.02 <= d_min < 0.05 |
mid |
0.05 <= d_min < 0.15 |
wide |
0.15 <= d_min < 0.50 |
far |
0.50 <= d_min |
The HDF5 files include the following stratification fields:
| Dataset / attribute | Description |
|---|---|
encounter_bin_id |
integer class id for each trajectory |
encounter_bin_name |
class name for each trajectory |
min_pairwise_distance |
minimum pairwise distance for each trajectory |
encounter_bins_json |
JSON description of the class boundaries |
Generation Procedure
Initial positions are sampled from a zero-mean Gaussian distribution with standard deviation 1.0. Initial velocities are sampled from a zero-mean Gaussian distribution with standard deviation 0.5. After sampling, the center-of-mass position and velocity are subtracted so that the generated system does not contain global translation or drift.
Candidate trajectories are rejected if any two bodies approach closer than 10^-3 or if any coordinate leaves the box [-5, 5] x [-5, 5]. Accepted trajectories are then assigned to one of the five trajectory classes according to their minimum pairwise distance.
Loading Example
import h5py
with h5py.File("train.h5", "r") as f:
trajectories = f["trajectories"][:] # (1000, 200, 3, 5)
energies = f["energies"][:] # (1000, 200)
class_names = f["encounter_bin_name"][:] # (1000,)
d_min = f["min_pairwise_distance"][:] # (1000,)
first_state = trajectories[0, 0] # (3, 5)
Intended Use
The dataset is intended for studying autoregressive trajectory prediction in gravitational three-body systems. It can be used to compare neural models across both trajectory accuracy and energy conservation, and to analyze how model behavior changes between smooth trajectories and close-encounter trajectories.
The dataset was used in the thesis experiments to train and evaluate E(n)-Equivariant Graph Neural Networks and Hamiltonian Graph Neural Networks under a shared training and evaluation protocol.
- Downloads last month
- 36