java.lang.Object
simpa.core.api.track.TaosSymplecticIntegrator
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setOmega
(double om) Sets the coupling constant for Tao's method.void
setPotentialProvider
(PotentialProvider potProvide)
-
Method Details
-
setOmega
public static void setOmega(double om) Sets the coupling constant for Tao's method. This is a specific parameter needed for the integrator to work properly. Its value is between 0.. 2*PI. There is no easy way to determine its value in advance, but trying a few values is a good strategy. A good value is when the energy oscillation has the smallest value. Adding aTrajectoryObserver
to theParticleTrackerTask
produces a trajectory file, which contains the particle energy at each step. Plot (with gnuplot for example) this energy deviation for a few trial run and find the minimum. If the omega parameter is very far, the particle can be lost quickly.- Parameters:
om
- The omega value.
-
setPotentialProvider
-