The accuracy and precision of a numerical simulation are highly dependent on the resolution
of the space-time grid. In order to keep the users from shooting themselves in the foot,
we recalculate these parameters whenever a significant change occurs in the system.
For example, the time step is reset whenever the
equation type is changed or a segment is created, destroyed, or moved.
The default value of the time step,
, is equal to
of the
maximum stable value for
the diffusion and Schrödinger equations and is equal to
for Klein-Gordon
type equations.
![]()
where
and
are the left and right boundaries of the medium
and N is the number of points.
Describe the
relationship between number of points and accuracy of the simulation.
Is the algorithm first-order or second-order in the number of points? e.g. What happens to
the error when the number of points is cut in half? How does
computation time depend on the number of points?
input screen. Select a Gaussian initial
wavefunction having no average momentum, i.e., k=0, but offset from the equilibrium point.
Set the boundary condition to periodic in order to show momentum eigenstates.
Run the program with analysis set to FFT of
and contour plots. Run the
simulation and notice the spurious wavefunction. How must the system parameters be changed
to accurately model the dynamics of this system?