Skip to content

Commit

Permalink
Fix velocity_units to be consistent with proper_units in pygrackle ex…
Browse files Browse the repository at this point in the history
…ample file freefall.py.
  • Loading branch information
AviFriedlander committed Dec 10, 2021
1 parent a45c3e2 commit dba43cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/python/examples/freefall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dba43cb

Please sign in to comment.