Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
centre_of_mass_frame.hpp
Go to the documentation of this file.
1#pragma once
2
22
24
25namespace orrery::initial_conditions {
26
43
44} // namespace orrery::initial_conditions
void move_to_centre_of_mass_frame(core::ParticleData &data)
Shift positions so the centre of mass is at the origin, and velocities so the total momentum is zero.
Storage for a set of point masses in structure-of-arrays layout.
Definition particle_data.hpp:43
The particle store: one contiguous array per component.