faunus
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Faunus::move::IntegratorBase Class Referenceabstract

Base class for dynamics integrators. More...

#include <forcemove.h>

Inheritance diagram for Faunus::move::IntegratorBase:
Inheritance graph
[legend]
Collaboration diagram for Faunus::move::IntegratorBase:
Collaboration graph
[legend]

Public Member Functions

virtual void step (PointVector &velocities, PointVector &forces)=0
 Move particles by one time step and update their positions, velocities and acting forces. More...
 
virtual void from_json (const json &j)=0
 
virtual void to_json (json &j) const =0
 

Protected Member Functions

 IntegratorBase (Space &, Energy::EnergyTerm &)
 

Protected Attributes

Spacespc
 
Energy::EnergyTermenergy
 

Detailed Description

Base class for dynamics integrators.

Integrators progress the simulation in time steps. Positions and velocities of the particles as well as forces acting on them are updated in every time step as prescribed by the given integrator scheme.

Member Function Documentation

◆ step()

virtual void Faunus::move::IntegratorBase::step ( PointVector velocities,
PointVector forces 
)
pure virtual

Move particles by one time step and update their positions, velocities and acting forces.

Parameters
velocitiesa vector of particles' velocities
forcesa vector of particles' forces

Implemented in Faunus::move::LangevinVelocityVerlet.


The documentation for this class was generated from the following files: