seams-core v2.14.2
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
trajectory.hpp File Reference
#include <mol_sys.hpp>
#include <array>
#include <cstddef>
#include <cstdint>
#include <deque>
#include <limits>
#include <vector>

Go to the source code of this file.

Classes

struct  traj::BoxCell
 Restricted-triclinic periodic simulation cell. More...
class  traj::TrajectoryUnwrapper
 Stateful streaming unwrapper across periodic frames. More...
struct  traj::WaterVectorsResult
 Per-water orientation vectors (O->H midpoint and H->H). More...
struct  traj::DipoleVectorsResult
 Generic per-molecule dipole / orientation vectors. More...
struct  traj::OrientationOrderResult
 Axis-projected orientational order parameters P1 and P2. More...
struct  traj::DiffusionFitResult
 Linear Einstein fit of total, 1D axial, and 2D lateral MSD. More...
struct  traj::DecayFitResult
 Integrated and single-exponential relaxation time summary. More...
class  traj::MsdAccumulator
 Streaming multi-origin MSD accumulator with arbitrary-axis split. More...
class  traj::HbondLifetimeAccumulator
 Streaming multi-origin H-bond lifetime accumulator (C_HB and S_HB). More...
class  traj::ReorientationAccumulator
 Streaming multi-origin orientational time-correlation accumulator for C1(t) = <P1(u(0).u(t))> and C2(t) = <P2(u(0).u(t))>. More...

Namespaces

namespace  traj
 Multi-frame PBC unwrapping, molecular orientation/dipole vectors, and streaming time-correlation accumulators.

Functions

bool traj::checkedMul (std::size_t a, std::size_t b, std::size_t &out) noexcept
 out = a * b; false, leaving out alone, when that overflows size_t.
bool traj::unwrapPositions (const double *xyzFrames, std::size_t nFrames, std::size_t nAtoms, const double *boxes, std::size_t nBoxes, double *unwrappedOut)
 Unwrap a multi-frame coordinate array [nFrames * 3 * nAtoms].
bool traj::moleculeCentres (const double *xyz, std::size_t nAtoms, const BoxCell &cell, const int *molIds, const double *masses, std::vector< int > &uniqueMolIds, std::vector< double > &centresOut)
 Compute intact PBC-assembled per-molecule centres for one frame.
bool traj::moleculeCentres (const molSys::PointCloud< molSys::Point< double >, double > &cloud, const double *masses, std::vector< int > &uniqueMolIds, std::vector< double > &centresOut)
 Cloud overload using stored atom coordinates and molIDs.
bool traj::unwrapMoleculeCentres (const double *xyzFrames, std::size_t nFrames, std::size_t nAtoms, const double *boxes, std::size_t nBoxes, const int *molIds, const double *masses, std::vector< int > &uniqueMolIds, std::vector< double > &unwrappedCentresOut)
 Compute and unwrap molecule centres across nFrames frames.
bool traj::waterOrientationVectors (const molSys::PointCloud< molSys::Point< double >, double > &cloud, int oxygenType, int hydrogenType, WaterVectorsResult &out, double covalentCutoff=1.35)
 Extract per-water O->midpoint(H1,H2) and H1->H2 vectors under MIC.
bool traj::moleculeDipoleVectors (const double *xyz, std::size_t nAtoms, const BoxCell &cell, const int *molIds, const double *charges, DipoleVectorsResult &out)
 Compute per-molecule dipole or geometric orientation vectors.
bool traj::moleculeDipoleVectors (const molSys::PointCloud< molSys::Point< double >, double > &cloud, const int *molIdsOverride, const double *charges, DipoleVectorsResult &out)
bool traj::axisOrderParameters (const double *vectors, std::size_t nVectors, const double axis[3], OrientationOrderResult &out)
bool traj::fitDiffusionCurve (const std::vector< double > &lagTime, const std::vector< double > &msdTotal, const std::vector< double > &msdAxial, const std::vector< double > &msdLateral, double tStart, double tEnd, DiffusionFitResult &out)
bool traj::fitCorrelationDecay (const std::vector< double > &lagTime, const std::vector< double > &corr, double tStart, double tEnd, DecayFitResult &out)

Variables

constexpr std::size_t traj::kMaxTriples
 Largest particle or vector count n whose 3 * n doubles one std::vector can hold.
constexpr std::size_t traj::kMaxBoxes
 Largest box count n whose 9 * n doubles fit in a single array.
constexpr std::size_t traj::kMaxLag
 Largest max_lag whose max_lag + 1 lag bins one std::vector can hold.