Nonlinear scaling study of a railgun