mikegrudic / pytreegrav

Fast N-body gravitational force and potential in Python
MIT License
63 stars 9 forks source link

Units of positions, masses and accelrations? #3

Closed Jbarkai closed 3 years ago

Jbarkai commented 3 years ago

Hi Mike

What units are the positions and masses expected to be in and what are the units of the returned acceleration?

Kind Regards Jordan

mikegrudic commented 3 years ago

Whatever you want! The acceleration you get will be in units of (your supplied G) * (your supplied masses) / (units of your supplied coordinates)^2