Glossary
Glossary¶
Quick definitions for MolPy's core terminology. Each entry links to the page that covers the concept in depth.
Data structures¶
- Atomistic
- An editable molecular graph where atoms are nodes and bonds are edges. Use it when the structure is still under construction — adding atoms, removing leaving groups, querying neighbors. See Atomistic and Topology.
- Entity
- Base class for atoms and beads. Dictionary-like: read and write properties with bracket notation. Uses identity-based hashing (
id(self)), not value-based equality. - Atom
- An
Entitysubclass representing one atom. Carries arbitrary key-value properties (element,charge,type, etc.). - Bead
- An
Entitysubclass representing one coarse-grained site. - Link
- Base class for topology connections. Holds an ordered tuple of
Entityendpoints. Subclasses:Bond,Angle,Dihedral,Improper. - Struct
- Base class that aggregates entities and links into a container. Subclasses:
Atomistic,CoarseGrain. - Topology
- Bonded terms derived from an
Atomistic's bond graph by the Rust kernels.get_topo()perceives angles/dihedrals in place and returns the sameAtomistic(use.copy().get_topo(...)when you need an independent graph);get_topo_neighbors()/get_topo_distances()answer k-hop graph queries. There is no standalone topology class. See Atomistic and Topology. - Block
- A columnar table mapping string keys to NumPy arrays. All columns share the same row count. Used inside
Frameto store atoms, bonds, angles, etc. See Block and Frame. - Frame
- A named collection of
Blockobjects plus an optional simulation box and dict-likemeta. Represents one complete system snapshot. The universal exchange object for I/O. See Block and Frame. - Box
- A simulation cell defined by a 3x3 lattice matrix and periodic boundary conditions. Provides wrapping, minimum-image distances, and coordinate conversion. See Box and Periodicity.
- Trajectory
- An ordered sequence of
Frameobjects. Supports lazy access via generators andmaptransforms. See Trajectory.
Force field¶
- ForceField
- A container that holds all styles, types, and parameters for a molecular system. Created manually or loaded from XML/LAMMPS/AMBER files.
- Style
- An interaction family within a force field — for example, "harmonic" bonds or "lj126/cut" pairs. Defines which parameters are expected. Subclasses:
BondStyle,AngleStyle,DihedralStyle,PairStyle. - Type
- One concrete parameter record within a style. For example, a bond type "CT-OH" with
k=320.0andr0=1.41. Subclasses:AtomType,BondType,AngleType,DihedralType,PairType. - Potential
- The numerical realization of a force field's styles and types, ready for energy/force computation. Produced by
ff.to_potentials()(a deferredPotentials) and evaluated against a typedFrameviapots.calc_energy(frame)/pots.calc_forces(frame); the kernels run in the high-performance backend. See Force Field.
Modules¶
- Parser
- Converts string notations (SMILES, SMARTS, BigSMILES, CGSmiles) into MolPy structures. See Parsing Chemistry.
- Reaction
- A reaction SMARTS. It matches the reactant patterns, forms and breaks bonds, and deletes the atoms that appear on the left and not on the right (the leaving groups). All the chemistry lives here. See Assembly.
- GraphAssembler
- Pastes molecules into one world, applies a
Reactionwherever itsSelectorsays, and repairs the force-field types near each new bond.PolymerBuilderis aGraphAssemblerthat also owns a monomer library and speaks CGSmiles. - Site
- A name (
fields.SITE) on an atom that may react. Sites have no direction and no role — a linear chain, a branch point and a ring closure differ only in how many sites a monomer carries and how the topology pairs them. - Typifier
- Assigns force field types to atoms, bonds, angles, and dihedrals via SMARTS pattern matching. Subclasses:
OPLSAATypifier,ClpTypifier,MMFFTypifier,PairTypifier. (GAFF atom types are not a Typifier — they come from AmberTools/antechamber; see AmberTools Integration.) See Force Field Typification. - Selector
- A composable predicate that filters atoms in a
Blockby element, type, coordinate range, or distance. Combinable with&,|,~. See Selector. - Wrapper
- Runs an external executable (antechamber, tleap, …) as a subprocess and captures its results. Crosses an execution boundary. Packing uses molpack in-process, not a wrapper. See Wrapper and Adapter.
- Adapter
- Translates between MolPy objects and another library's in-memory objects (RDKit, OpenBabel). Crosses a representation boundary. See Wrapper and Adapter.
Naming conventions¶
- atomi / atomj / atomk / atoml
- Integer atom indices used in
FrameandBlock(the data-interchange layer). Always 0-based. Never store object references. - itom / jtom / ktom / ltom
- Atom object references used in
Entity-level topology (Bond, Angle, Dihedral). Never store integers. See Naming Conventions.
Compute terminology¶
Acronyms used across the Compute analyses.
- RDF — radial distribution function
g(r) - Probability of finding a neighbour at distance
rrelative to an ideal gas. See RDF. - MSD — mean-squared displacement
⟨|r(t) − r(0)|²⟩; its slope gives the self-diffusion coefficient. See MSD.- VACF — velocity autocorrelation function
⟨v(0)·v(t)⟩; its integral (Green–Kubo) gives diffusion, its FFT gives the VDOS. See VACF.- VDOS — vibrational density of states
- Spectral density of atomic motion,
∝ FFT[VACF]. See VACF. - MCD — mean-displacement correlation (distinct diffusion)
- Cross-correlated displacements between different species — the distinct part of diffusion, beyond the single-particle MSD. See MSD.
- PMSD — polarization / charge-dipole mean-squared displacement
- MSD of \(\mathbf{M}(t)=\sum q_a\mathbf{r}_a\) (unwrapped); raw curve from
EinsteinConductivity. Fit \(\sigma\) withLinearFit+ SI scale. See MSD. - Current ACF — \(\langle\mathbf{J}(0)\cdot\mathbf{J}(t)\rangle\)
- From
GreenKuboConductivitywith \(\mathbf{J}=\sum q\mathbf{v}\). Integrate withCumulativeTrapezoidthen SI-scale for \(\sigma\). - SDF — spatial distribution function
- Three-dimensional density of neighbours around a reference frame (angular structure, not just radial). See Distribution.
- CDF — combined distribution function
- A joint histogram over two geometric observables (e.g. distance × angle). See Distribution.
- PMFT — potential of mean force and torque
- Free energy
−k_BT ln gover relative position/orientation coordinates. See Distribution. - ROA / VCD — Raman optical activity / vibrational circular dichroism
- Chiroptical vibrational spectra derived from correlation functions of the polarizability / magnetic-dipole responses. See Spectra.