Module euler

Module euler 

Source
Expand description

Symplectic Euler methods

This module provides first-order symplectic integrators known as Symplectic Euler methods. These are the simplest symplectic integrators and come in two variants:

  • Symplectic Euler A (position first): Updates position first, then momentum
  • Symplectic Euler B (momentum first): Updates momentum first, then position

While first-order, these methods exactly conserve the symplectic structure and provide bounded energy error over long integration times.

Structs§

SymplecticEulerA
Symplectic Euler Method A - updates position first, then momentum
SymplecticEulerB
Symplectic Euler Method B - updates momentum first, then position

Functions§

symplectic_euler
Convenience function for the default Symplectic Euler method (variant A)
symplectic_euler_a
Convenience function for the Symplectic Euler A method (position first)
symplectic_euler_b
Convenience function for the Symplectic Euler B method (momentum first)