From dba43cbb0c3e6f4606248c3a4ef30668c1625b91 Mon Sep 17 00:00:00 2001 From: Avi Friedlander Date: Fri, 10 Dec 2021 11:48:15 -0500 Subject: [PATCH] Fix velocity_units to be consistent with proper_units in pygrackle example file freefall.py. --- src/python/examples/freefall.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/python/examples/freefall.py b/src/python/examples/freefall.py index 8b20352a..17a7f849 100644 --- a/src/python/examples/freefall.py +++ b/src/python/examples/freefall.py @@ -66,9 +66,7 @@ my_chemistry.density_units = mass_hydrogen_cgs # rho = 1.0 is 1.67e-24 g my_chemistry.length_units = cm_per_mpc # 1 Mpc in cm my_chemistry.time_units = sec_per_Myr # 1 Myr in s - my_chemistry.velocity_units = my_chemistry.a_units * \ - (my_chemistry.length_units / my_chemistry.a_value) / \ - my_chemistry.time_units + my_chemistry.velocity_units = my_chemistry.length_units / my_chemistry.time_units # set initial density and temperature initial_temperature = 50000. # start the gas at this temperature