powderday
powderday copied to clipboard
CMB not working with enzo
right now the code block in enzo_tributary
:
energy_density_absorbed=energy_density_absorbed_by_CMB(
energy_density_absorbed = np.repeat(energy_density_absorbed.value,amr['density'].shape)
d = SphericalDust(cfg.par.dustdir+cfg.par.dustfile)
if cfg.par.SUBLIMATION == True:
d.set_sublimation_temperature('fast',temperature=cfg.par.SUBLIMATION_TEMPERATURE)
m.add_density_grid(amr['density'],d),specific_energy=energy_density_absorbed)
m.set_specific_energy_type('additional')
#m.add_density_grid(amr['density'], cfg.par.dustdir+cfg.par.dustfile)
doesn't work due to the inlcusion of the specific_energy