Generalized coordinate grain design and internal ballistics evaluation program