Package src :: Package propagators :: Package classes :: Module LeapfrogMDL :: Class LeapfrogMDL
[hide private]
[frames] | no frames]

Class LeapfrogMDL

source code

??-24 --+
        |
       LeapfrogMDL

Implements the Leapfrog method.

  1. Half-timestep update of velocities.
  2. Full-timestep update of positions.
  3. Half-timestep update of velocities.

cf. R. W. Hockney and J. W. Eastwood, Computer Simulation Using Particles. New York: McGraw-Hill, 1981.

Instance Methods [hide private]
 
init(self, phys, forces, prop)
Set and initialize the propagator.
source code
 
run(self, phys, forces, prop)
Run the propagator.
source code
 
finish(self, phys, forces, prop)
Finish the propagator: do one final half-kick
source code
Method Details [hide private]

init(self, phys, forces, prop)

source code 

Set and initialize the propagator.

Parameters:
  • phys (Physical) - The physical system.
  • forces (Forces) - MDL Forces object
  • prop (Propagator) - MDL Propagator object

run(self, phys, forces, prop)

source code 

Run the propagator.

Parameters:
  • phys (Physical) - The physical system.
  • forces (Forces) - MDL Forces object
  • prop (Propagator) - MDL Propagator object

finish(self, phys, forces, prop)

source code 

Finish the propagator: do one final half-kick

Parameters:
  • phys (Physical) - The physical system.
  • forces (Forces) - MDL Forces object
  • prop (Propagator) - MDL Propagator object