|
Orrery
A GPU-accelerated N-body gravitational simulator
|
A method for advancing particle positions and velocities through time. More...
#include <orrery/integrators/integrator.hpp>
Public Member Functions | |
| virtual void | step (core::ParticleData &data, core::Real timestep, AccelerationField &field)=0 |
| Advance the configuration by one step of timestep. | |
| virtual std::string_view | name () const noexcept=0 |
| The method's name, for diagnostics output and test messages. | |
| virtual int | order () const noexcept=0 |
| The order of the method: the power of the timestep that the error after a fixed interval of simulated time falls with. | |
| virtual bool | is_symplectic () const noexcept=0 |
| Whether the method preserves the phase-space volume of the flow. | |
| virtual core::Index | force_evaluations_per_step () const noexcept=0 |
| How many times step calls the acceleration field. | |
A method for advancing particle positions and velocities through time.
|
pure virtual |
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.
Implemented in orrery::integrators::RungeKutta4, orrery::integrators::VelocityVerlet, and orrery::integrators::Yoshida4.
|
nodiscardpure virtualnoexcept |
The method's name, for diagnostics output and test messages.
Implemented in orrery::integrators::RungeKutta4, orrery::integrators::VelocityVerlet, and orrery::integrators::Yoshida4.
|
nodiscardpure virtualnoexcept |
The order of the method: the power of the timestep that the error after a fixed interval of simulated time falls with.
Implemented in orrery::integrators::RungeKutta4, orrery::integrators::VelocityVerlet, and orrery::integrators::Yoshida4.
|
nodiscardpure virtualnoexcept |
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.
Implemented in orrery::integrators::RungeKutta4, orrery::integrators::VelocityVerlet, and orrery::integrators::Yoshida4.
|
nodiscardpure virtualnoexcept |
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.
Implemented in orrery::integrators::RungeKutta4, orrery::integrators::VelocityVerlet, and orrery::integrators::Yoshida4.