We divide the one dimensional space of our simulation into 1000 uniform grid points.
The total length of the simulation region is 10.0, so the
. For time,
we adopt a uniform time step for simplicity. Considering the CFL condition,
we choose *t*=0.004, since a typical velocity should be much smaller than 10.0. Of
course, we can not be sure that this is right, but we can later check the result to
see whether the time step is sufficient. If not, we change the step.