Development of five-moment two-fluid modeling for Z-pinch physics