1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00

add puffer value to innermost a

This commit is contained in:
Lukas Winkler 2021-09-13 15:57:46 +02:00
parent 18b3100a4d
commit 56440458c3
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -193,7 +193,7 @@ def main(fn: Path, testrun=False):
sim.heartbeat = clibheartbeat.heartbeat
innermost_semimajor_axis = third_kepler_law(
orbital_period=sim.dt * year * MIN_TIMESTEP_PER_ORBIT
) / astronomical_unit
) / astronomical_unit * 1.1
print(f"innermost semimajor axis is {innermost_semimajor_axis}")
c_double.in_dll(clibheartbeat, "min_distance_from_sun_squared").value = innermost_semimajor_axis ** 2