Structures#
molsysmt.Structures is the native data container in MolSysMT designed for storing 3D atomic coordinates, periodic box vectors, frame timestamps, and physical trajectory observables.
Overview and Role#
As a user, molsysmt.Structures is the object holding all geometric and spatial data. It manages 3D coordinate arrays, unit cell box vectors, frame timestamps, velocities, and thermodynamic observables across single structures or multi-frame structure ensembles.
Internal Attributes#
Inside molsysmt.Structures, spatial and thermodynamic observables are stored as C-contiguous NumPy arrays or attribute lists:
Attribute |
Data Type |
Physical Units |
Dimensions / Shape |
Description |
|---|---|---|---|---|
|
NumPy |
|
|
3D Cartesian coordinates for each frame and atom. |
|
NumPy |
|
|
Atomic velocity vectors for each frame and atom. |
|
NumPy |
|
|
Periodic unit cell vectors for each frame. |
|
NumPy |
|
|
Simulation timestamps for each structural frame. |
|
List of Strings |
N/A |
|
String identifiers for structural frames or PDB models. |
|
NumPy |
|
|
Isotropic temperature factors (B-factors). |
|
NumPy |
Dimensionless |
|
Crystallographic atom occupancy values. |
|
List of Dicts |
N/A |
|
Alternate location indicators mapping atom indices to location keys. |
|
NumPy |
|
|
Frame-level system temperature. |
|
NumPy |
|
|
Frame-level potential energy. |
|
NumPy |
|
|
Frame-level kinetic energy. |
Invariants and Performance#
Zero-Copy Views: Slicing structures returns zero-copy NumPy array views whenever possible.
Float32 Precision Default: Coordinates and velocities default to
float32for optimal memory footprint and GPU hardware acceleration.Float64 Precision for Energies: Thermodynamic observables (
temperature,potential_energy,kinetic_energy,time) use double-precisionfloat64.
API Documentation#
Detailed methods, getters, and converters for molsysmt.Structures are documented in the [molsysmt.Structures API Reference].