Modeling of the inverse z-pinch dynamics