Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::core::VelocityIntegrator Class Reference

Domain calculator responsible for finite-difference velocity calculation under periodic boundary conditions. More...

#include <VelocityIntegrator.hpp>

Static Public Member Functions

static void calculateVelocities (std::span< Cell > frames, real_t time_step)
 Calculates velocities for all atoms across the provided sequence of frames using finite differences.
static void calculateVelocities (Trajectory &trajectory)
 Calculates and populates velocities on all frames within a Trajectory instance.

Detailed Description

Domain calculator responsible for finite-difference velocity calculation under periodic boundary conditions.

Member Function Documentation

◆ calculateVelocities() [1/2]

void correlation::core::VelocityIntegrator::calculateVelocities ( std::span< Cell > frames,
real_t time_step )
static

Calculates velocities for all atoms across the provided sequence of frames using finite differences.

Utilizes forward difference on the first frame, backward difference on the last frame, and central differences on all interior frames under minimum-image periodic boundary conditions.

Parameters
[in,out]framesSpan of mutable cell snapshots.
[in]time_stepConstant time step between adjacent frames in femtoseconds.
Here is the caller graph for this function:

◆ calculateVelocities() [2/2]

void correlation::core::VelocityIntegrator::calculateVelocities ( Trajectory & trajectory)
static

Calculates and populates velocities on all frames within a Trajectory instance.

Parameters
[in,out]trajectoryTrajectory container whose frames will be updated.
Here is the call graph for this function:

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