1. Britton Smith
  2. grackle-britton

Commits

Britton Smith  committed 37d9121

Updated scripts for change in initializer.

  • Participants
  • Parent commits e938e76
  • Branches default

Comments (0)

Files changed (2)

File src/python/examples/cooling_rate.py

View file
 my_chemistry.with_radiative_cooling = 0
 my_chemistry.primordial_chemistry = 3
 my_chemistry.metal_cooling = 1
+my_chemistry.UVbackground = 1;
 my_chemistry.grackle_data_file = "CloudyData_UVB=HM2012.h5"
 my_chemistry.include_metal_heating = 1
 
 a_value = 1.0
 
 my_chemistry.initialize(a_value)
+my_chemistry.update_UVbackground(a_value)
 
 n_points = 200
 fc = FluidContainer(my_chemistry, n_points)

File src/python/examples/freefall.py

View file
 my_chemistry.with_radiative_cooling = 1
 my_chemistry.primordial_chemistry = 3
 my_chemistry.metal_cooling = 1
+my_chemistry.UVbackground = 1;
 my_chemistry.grackle_data_file = "CloudyData_UVB=HM2012.h5"
 
 my_chemistry.comoving_coordinates = 0
 
 my_chemistry.initialize(a_value)
 
-my_chemistry.UVbackground = 1;
-my_chemistry.initialize_UVbackground()
 my_chemistry.update_UVbackground(a_value)
 
 fc = FluidContainer(my_chemistry, 1)