|
Orrery
A GPU-accelerated N-body gravitational simulator
|
The fourth-order symplectic composition described above. More...
#include <orrery/integrators/yoshida4.hpp>
Public Member Functions | |
| void | step (core::ParticleData &data, core::Real timestep, AccelerationField &field) override |
| Advance the configuration by one step of timestep. | |
| std::string_view | name () const noexcept override |
| The method's name, for diagnostics output and test messages. | |
| int | order () const noexcept override |
| The order of the method: the power of the timestep that the error after a fixed interval of simulated time falls with. | |
| bool | is_symplectic () const noexcept override |
| Whether the method preserves the phase-space volume of the flow. | |
| core::Index | force_evaluations_per_step () const noexcept override |
| How many times step calls the acceleration field. | |
Additional Inherited Members | |
| Protected Member Functions inherited from orrery::integrators::Integrator | |
| Integrator (const Integrator &)=default | |
| Integrator (Integrator &&)=default | |
| Integrator & | operator= (const Integrator &)=default |
| Integrator & | operator= (Integrator &&)=default |
The fourth-order symplectic composition described above.
|
overridevirtual |
Advance the configuration by one step of timestep.
Requires the invariant above and restores it. A negative timestep is meaningful and is not an error: the symmetric methods here are exactly time-reversible, and stepping backwards is how a test asserts it.
Implements orrery::integrators::Integrator.
|
inlinenodiscardoverridevirtualnoexcept |
The method's name, for diagnostics output and test messages.
Implements orrery::integrators::Integrator.
|
inlinenodiscardoverridevirtualnoexcept |
The order of the method: the power of the timestep that the error after a fixed interval of simulated time falls with.
Implements orrery::integrators::Integrator.
|
inlinenodiscardoverridevirtualnoexcept |
Whether the method preserves the phase-space volume of the flow.
The property that decides whether the energy error stays inside a bounded envelope for ever or grows without limit, which for a simulation run over millions of steps matters more than the order does. ADR-0011 sets out the argument and the validation suite demonstrates it.
Implements orrery::integrators::Integrator.
|
inlinenodiscardoverridevirtualnoexcept |
How many times step calls the acceleration field.
The honest unit of cost for comparing methods. Two schemes compared at equal timestep are not compared at equal work, and this is the number that converts between them.
Implements orrery::integrators::Integrator.