fhat. GitHub Workspace

Yoshida fourth-order composition

Higher-accuracy long-time simulation of conservative mechanical systems.

errorO(h4)cost3 f / stepsymplectic · reversible · explicit

Also known as Forest-Ruth, triple jump

Placeholderv0.1.2Example

Use with your agent

Use the fhat method "yoshida4" (https://fhat.dev/methods/yoshida4/SKILL.md) for this problem. Check first whether it applies.

Placeholder (demo). Description only: there is no reference implementation or verification for this entry yet. It belongs to a demonstration set of textbook methods.

What it does

Applies three Störmer-Verlet substeps of sizes w1hw_1 h, w0hw_0 h, w1hw_1 h with w1=1/(2−21/3)w_1 = 1/(2 - 2^{1/3}) and w0=−21/3/(2−21/3)w_0 = -2^{1/3}/(2 - 2^{1/3}). The weights cancel the second-order error terms, giving a fourth-order, symplectic, time-reversible method. The middle substep goes backwards in time (w0<0w_0 < 0). With the kick-drift-kick form, consecutive kicks merge and each step costs three force evaluations.

When to use

  • Separable Hamiltonian systems (force depends on position only, constant masses) with smooth forces, where you need higher accuracy than Störmer-Verlet over long runs.

When not to use (and what to use instead)

Situation Use instead
Moderate accuracy is enough, or forces are rough (cut-offs, contacts) stormer-verlet; the higher order only pays off for smooth forces and small errors
Force depends on velocity, or the system is not Hamiltonian dormand-prince-rk45
Non-separable Hamiltonian implicit-midpoint
Stiff problem implicit-midpoint or backward-euler

Key facts

Order 4, explicit, symplectic, time-reversible, conditionally stable (the negative middle substep makes the stable step somewhat smaller than for three plain Verlet steps), three force evaluations per step.

Sources

The methods shown are examples. More research methods are coming.