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

Orchestrates structural analysis across multiple frames of a trajectory. More...

#include <TrajectoryAnalyzer.hpp>

Collaboration diagram for correlation::analysis::TrajectoryAnalyzer:

Public Member Functions

Constructors
 TrajectoryAnalyzer (correlation::core::Trajectory &trajectory, real_t neighbor_cutoff, BondCutoffMatrix bond_cutoffs, StartFrame start_frame={0}, EndFrame end_frame={std::numeric_limits< size_t >::max()}, bool ignore_periodic_self_interactions=true, const std::function< void(float, const std::string &)> &progress_callback=nullptr)
Accessors
std::unique_ptr< StructureAnalyzer > createAnalyzer (size_t frame_idx) const
 Factory method to create a StructureAnalyzer for a specific frame.
std::unique_ptr< StructureAnalyzer > createAnalyzer (std::shared_ptr< const correlation::core::Cell > cell) const
 Factory method to create a StructureAnalyzer from an already-loaded shared Cell.
size_t getNumFrames () const
size_t getStartFrame () const
real_t getTimeStep () const
real_t getNeighborCutoff () const
const BondCutoffMatrix & getBondCutoffs () const
bool getIgnorePeriodicSelfInteractions () const

Private Attributes

correlation::core::Trajectory * trajectory_
 Pointer to the source trajectory.
size_t start_frame_
 Analysis window start.
size_t effective_end_
 Analysis window end (exclusive).
real_t time_step_
 Time step between frames.
real_t neighbor_cutoff_
 Neighbor search radius.
BondCutoffMatrix bond_cutoffs_
 Squared bond cutoff ranges per pair.
bool ignore_periodic_self_interactions_
 Interaction guard flag.

Detailed Description

Orchestrates structural analysis across multiple frames of a trajectory.

This class handles iteration over trajectory frames, providing a mechanism to create frame-specific StructureAnalyzer instances. It also manages high-level analysis settings such as start/end frames and periodic interaction toggles.

Constructor & Destructor Documentation

◆ TrajectoryAnalyzer()

correlation::analysis::TrajectoryAnalyzer::TrajectoryAnalyzer ( correlation::core::Trajectory & trajectory,
real_t neighbor_cutoff,
BondCutoffMatrix bond_cutoffs,
StartFrame start_frame = {0},
EndFrame end_frame = {std::numeric_limits<size_t>::max()},
bool ignore_periodic_self_interactions = true,
const std::function< void(float, const std::string &)> & progress_callback = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ createAnalyzer() [1/2]

std::unique_ptr< StructureAnalyzer > correlation::analysis::TrajectoryAnalyzer::createAnalyzer ( size_t frame_idx) const
nodiscard

Factory method to create a StructureAnalyzer for a specific frame.

Parameters
frame_idxThe frame index within the trajectory.
Returns
A unique_ptr to a configured StructureAnalyzer.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createAnalyzer() [2/2]

std::unique_ptr< StructureAnalyzer > correlation::analysis::TrajectoryAnalyzer::createAnalyzer ( std::shared_ptr< const correlation::core::Cell > cell) const
nodiscard

Factory method to create a StructureAnalyzer from an already-loaded shared Cell.

Parameters
cellShared pointer to an immutable Cell frame (avoids re-parsing/copying the frame).
Returns
A unique_ptr to a configured StructureAnalyzer.

◆ getBondCutoffs()

const BondCutoffMatrix & correlation::analysis::TrajectoryAnalyzer::getBondCutoffs ( ) const
inlinenodiscard
Returns
The bond cutoff matrix used for topological analysis.
Here is the caller graph for this function:

◆ getIgnorePeriodicSelfInteractions()

bool correlation::analysis::TrajectoryAnalyzer::getIgnorePeriodicSelfInteractions ( ) const
inlinenodiscard
Returns
True if periodic self-interactions are being ignored.

◆ getNeighborCutoff()

real_t correlation::analysis::TrajectoryAnalyzer::getNeighborCutoff ( ) const
inlinenodiscard
Returns
The global neighbor cutoff radius.
Here is the caller graph for this function:

◆ getNumFrames()

size_t correlation::analysis::TrajectoryAnalyzer::getNumFrames ( ) const
inlinenodiscard
Returns
Total number of frames after accounting for start/end limits.
Here is the caller graph for this function:

◆ getStartFrame()

size_t correlation::analysis::TrajectoryAnalyzer::getStartFrame ( ) const
inlinenodiscard
Returns
The configured starting frame index.
Here is the caller graph for this function:

◆ getTimeStep()

real_t correlation::analysis::TrajectoryAnalyzer::getTimeStep ( ) const
inlinenodiscard
Returns
Time step extracted from the trajectory data.
Here is the caller graph for this function:

Member Data Documentation

◆ bond_cutoffs_

BondCutoffMatrix correlation::analysis::TrajectoryAnalyzer::bond_cutoffs_
private

Squared bond cutoff ranges per pair.

◆ effective_end_

size_t correlation::analysis::TrajectoryAnalyzer::effective_end_
private

Analysis window end (exclusive).

◆ ignore_periodic_self_interactions_

bool correlation::analysis::TrajectoryAnalyzer::ignore_periodic_self_interactions_
private

Interaction guard flag.

◆ neighbor_cutoff_

real_t correlation::analysis::TrajectoryAnalyzer::neighbor_cutoff_
private

Neighbor search radius.

◆ start_frame_

size_t correlation::analysis::TrajectoryAnalyzer::start_frame_
private

Analysis window start.

◆ time_step_

real_t correlation::analysis::TrajectoryAnalyzer::time_step_
private

Time step between frames.

◆ trajectory_

correlation::core::Trajectory* correlation::analysis::TrajectoryAnalyzer::trajectory_
private

Pointer to the source trajectory.


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