Integrating state via two step velocity-Verlet
where \({\bf r}_{i}\) is coordinate of particle \(i\), \({\bf v}_i\) is velocity of particle \(i\), \({\bf f}_i\) is sum of all forces acting on particle \(i\), \(m_i\) is mass particle \(i\), and \(\Delta t\) is timestep size. The timestep size is set through state variable:
state.dt=0.005
Constructor
IntegratorVerlet(state=...)
Arguments
Integrating state is done with run.
run(numTurns=...)
Arguments
TODO Write Output?
Adding the integrator
integrater = IntegratorVerlet(state)
Setting parameters in python
state.shoutEvery=1000
state.dt=0.005
integrating system forward in time
#run 1E5 timesteps
integrater.run(100000)