Computer modeling of linear theta pinch machines