seams-core v2.14.2
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
traj::BoxCell Struct Reference

Restricted-triclinic periodic simulation cell. More...

#include <src/include/internal/trajectory.hpp>

Public Member Functions

void toBox9 (double out[9]) const noexcept
std::array< double, 3 > micDelta (double dx, double dy, double dz) const noexcept
 Euclidean minimum-image Cartesian displacement for raw delta (dx, dy, dz).
std::array< double, 3 > micDeltaSearch (double dx, double dy, double dz) const noexcept
 Euclidean minimum image by exhaustive search over the lattice shifts that can beat the fractional image.

Static Public Member Functions

static BoxCell fromBox9 (const double box9[9]) noexcept
static BoxCell fromCloud (const molSys::PointCloud< molSys::Point< double >, double > &cloud) noexcept

Public Attributes

double ox = 0.0
double oy = 0.0
double oz = 0.0
double lx = 0.0
double ly = 0.0
double lz = 0.0
double xy = 0.0
double xz = 0.0
double yz = 0.0
double halfMin = 0.0
bool triclinic = false
bool ok = false

Detailed Description

Restricted-triclinic periodic simulation cell.

Edge matrix H has columns a = (lx, 0, 0), b = (xy, ly, 0), c = (xz, yz, lz) and origin (ox, oy, oz).

Definition at line 77 of file trajectory.hpp.

Member Function Documentation

◆ fromBox9()

BoxCell traj::BoxCell::fromBox9 ( const double box9[9])
staticnoexcept

◆ fromCloud()

BoxCell traj::BoxCell::fromCloud ( const molSys::PointCloud< molSys::Point< double >, double > & cloud)
staticnoexcept

◆ micDelta()

std::array< double, 3 > traj::BoxCell::micDelta ( double dx,
double dy,
double dz ) const
nodiscardnoexcept

Euclidean minimum-image Cartesian displacement for raw delta (dx, dy, dz).

Uses minimage's reduced-basis search when built with it, otherwise micDeltaSearch. Independent rounding of fractional coordinates is not the minimum image on a tilted cell.

◆ micDeltaSearch()

std::array< double, 3 > traj::BoxCell::micDeltaSearch ( double dx,
double dy,
double dz ) const
nodiscardnoexcept

Euclidean minimum image by exhaustive search over the lattice shifts that can beat the fractional image.

◆ toBox9()

void traj::BoxCell::toBox9 ( double out[9]) const
noexcept

Member Data Documentation

◆ halfMin

double traj::BoxCell::halfMin = 0.0

Definition at line 87 of file trajectory.hpp.

◆ lx

double traj::BoxCell::lx = 0.0

Definition at line 81 of file trajectory.hpp.

◆ ly

double traj::BoxCell::ly = 0.0

Definition at line 82 of file trajectory.hpp.

◆ lz

double traj::BoxCell::lz = 0.0

Definition at line 83 of file trajectory.hpp.

◆ ok

bool traj::BoxCell::ok = false

Definition at line 89 of file trajectory.hpp.

◆ ox

double traj::BoxCell::ox = 0.0

Definition at line 78 of file trajectory.hpp.

◆ oy

double traj::BoxCell::oy = 0.0

Definition at line 79 of file trajectory.hpp.

◆ oz

double traj::BoxCell::oz = 0.0

Definition at line 80 of file trajectory.hpp.

◆ triclinic

bool traj::BoxCell::triclinic = false

Definition at line 88 of file trajectory.hpp.

◆ xy

double traj::BoxCell::xy = 0.0

Definition at line 84 of file trajectory.hpp.

◆ xz

double traj::BoxCell::xz = 0.0

Definition at line 85 of file trajectory.hpp.

◆ yz

double traj::BoxCell::yz = 0.0

Definition at line 86 of file trajectory.hpp.


The documentation for this struct was generated from the following file: