Orrery
A GPU-accelerated N-body gravitational simulator
Toggle main menu visibility
Loading...
Searching...
No Matches
centre_of_mass_frame.hpp
Go to the documentation of this file.
1
#pragma once
2
22
23
#include "
orrery/core/particle_data.hpp
"
24
25
namespace
orrery::initial_conditions {
26
42
void
move_to_centre_of_mass_frame
(
core::ParticleData
& data);
43
44
}
// namespace orrery::initial_conditions
orrery::initial_conditions::move_to_centre_of_mass_frame
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.
orrery::core::ParticleData
Storage for a set of point masses in structure-of-arrays layout.
Definition
particle_data.hpp:43
particle_data.hpp
The particle store: one contiguous array per component.
orrery
initial_conditions
centre_of_mass_frame.hpp
Generated by
1.17.0