This script is used to initialize a hydrocode simulation of an asteroid deflection/disruption with a nuclear explosive device for planetary defense purposes. It generates an angle/depth-dependent internal energy profile on the surface of the asteroid, which mimics the radiation absorbed from a nuclear explosive device. -
View it on GitHub