Analysis of Gap Formation in the Casting of Energetic Materials