Newtonian Accelerations#
Simple Newtonian gravity acceleration function.
- jorbit.accelerations.newtonian.newtonian_gravity(inputs)[source]#
Compute the acceleration felt by each particle due to Newtonian gravity.
Set up to separate massive and tracer particles, so systems with many tracers will not compute useless pairwise interactions.
Note: We use “stop_gradient” on perturbers that are passed as fixed inputs, so any gradients with respect to these perturber quantities will not be correct. To track gradients with respect to perturbers, they must be included as “massive” particles, not “fixed perturbers”.
- Parameters:
inputs (
SystemState) – The instantaneous state of the system.- Returns:
The 3D acceleration felt by each particle, ordered by massive particles first followed by tracer particles.
- Return type:
Array