Simulations for the SNS linac