.. _sphx_glr_api_gallery_classical_integrators:
Integrators
-----------
Why ``physicskit.classical`` defaults every conservative system to a symplectic
integrator (RK4's energy drifts monotonically, Verlet/Yoshida4 stay
bounded), and automated timestep selection with
:func:`~physicskit.classical.utils.stepsize.estimate_dt`.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/classical/integrators/images/thumb/sphx_glr_plot_01_symplectic_vs_rk4_thumb.png
:alt:
:doc:`/api/gallery/classical/integrators/plot_01_symplectic_vs_rk4`
.. raw:: html
Why symplectic integration: RK4 leaks energy, Yoshida4 does not
.. raw:: html
.. only:: html
.. image:: /api/gallery/classical/integrators/images/thumb/sphx_glr_plot_02_estimate_dt_thumb.png
:alt:
:doc:`/api/gallery/classical/integrators/plot_02_estimate_dt`
.. raw:: html
Automated timestep selection with estimate_dt
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/classical/integrators/plot_01_symplectic_vs_rk4
/api/gallery/classical/integrators/plot_02_estimate_dt