Ans > The total energy is the sum of potential and kinetic energy. Total energy is constant, which aligns with our expectation that energy is conserved in an isolated system. Kinetic energy and potential energy vary at the same rate but with opposite signs, so that KE + PE is constant.
Ans > Vary the length of the simulation for a constant time step (dt), what do you observe? I observe that the variance and average are highly dependent on the simulation itself. The variance is not obviously approaching zero with a large step number (at least for the step sizes that I'm looking at). This is somewhat counterintuitive, as the central limit theorem suggests that the variance would approach zero as the sum of data approaches the mean. For a fixed number of time steps, what happens when you vary the distance between them (dt)? When we vary the dt, we are able to plot over a larger timespan, at the cost of precision of each calculated value for a given t=t'. If dt is too large, the simulation might not converge. Which quantity do you expect will be conserved? We expect the the Total Energy to be conserved for an NVE system since the system is considered isolated.
Ans > yes we observe oscillations.
Ans > The total energy is no longer conserved since an NVE system is not isolated. However, we still have the total energy as the sum of kinetic and potnetial.
Ans > yes we observe oscillations.
Ans >
Ans >
Ans >