template<typename TypeSystem>
hub::integrator::Symplectic2nd class

Second symplectic method.

Template parameters
TypeSystem Type class of SpaceHub

Public static variables

static size_t order constexpr
Order of the integrator.

Public functions

template<typename ParticleSys>
void integrate(ParticleSys& system, typename ParticleSys::Scalar step_size)
Integrate the particle system with given step_size.

Function documentation

template<typename TypeSystem> template<typename ParticleSys>
void hub::integrator::Symplectic2nd<TypeSystem>::integrate(ParticleSys& system, typename ParticleSys::Scalar step_size)

Integrate the particle system with given step_size.

Template parameters
ParticleSys Any types satisfy the particle system concept.
Parameters
system in/out Particle system needs to be integrated.
step_size in Single step step size.