seams-core v2.14.3
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
pore.hpp File Reference

Triclinic fractional density, pore-frame profiles, and host-guest contacts. More...

#include <mol_sys.hpp>
#include <compiler_compat.hpp>
#include <array>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Classes

struct  pore::BoxError
struct  pore::Profile
struct  pore::Frame
struct  pore::Profiles
struct  pore::HostGuest

Namespaces

namespace  pore

Typedefs

using pore::Cloud = molSys::PointCloud<molSys::Point<double>, double>

Functions

Profile pore::fractionalAxis (const Cloud &cloud, int type, int bins, int axis, double origin, const double *masses)
 Fractional density along cell axis 0, 1, or 2. Origin is in [0, 1) after wrapping.
Profile pore::alongDirection (const Cloud &cloud, int type, int bins, const double direction[3], double origin, const double *masses)
 Density of the reduced cell projected on a Cartesian direction.
Frame pore::poreFrame (const Cloud &cloud, int framework_type, int axis, const double *direction, const double *centre_frac)
Profiles pore::poreProfiles (const Cloud &cloud, int type, int radial_bins, int azimuthal_bins, int axial_bins, double r_max, int axis, const double *direction, const double *centre_frac, int framework_type, double origin, const double *masses)
double pore::clippedDiskArea (const std::vector< std::array< double, 2 > > &polygon, double radius, double cover, double full)
HostGuest pore::hostGuest (const Cloud &cloud, int guest_type, int framework_type, double cutoff)

Detailed Description

Triclinic fractional density, pore-frame profiles, and host-guest contacts.

A LAMMPS cell has edge vectors a, b, c recovered from the dump box. Fractional coordinates live in the unit cube. A slab of fractional thickness 1/n along a cell edge has volume V/n, with V = det(H). An arbitrary Cartesian direction bins the projection of that cube. Its bin volumes are the exact slice measures of the unit cube, times V, so a uniform gas is flat at N/V even when the projected slabs are not equally thick in the projection coordinate's density of states.

Cylindrical shells are Euclidean distances to a pore axis parallel to a cell edge. The radial coordinate is the distance to the nearest periodic image of that axis. Within the inscribed radius of the centred perpendicular face the nearest image is the face origin. Beyond it, a corner of the centred face can lie closer to a neighbouring image, and the coordinate follows that image. The shell volume is the area of the annulus inside the Voronoi cell of the perpendicular lattice, times the length of the edge, so a uniform fluid stays flat. The azimuth is the angle in the centred face, and its sector is clipped to that face.

Definition in file pore.hpp.