Expand description
Unit cell definition with lattice vectors and periodic boundary conditions.
A crystallographic unit cell is defined by three lattice vectors a, b, c (or equivalently six parameters: a, b, c, α, β, γ).
Fractional ↔ Cartesian conversions: r_cart = M · r_frac where M = [a | b | c] column matrix r_frac = M⁻¹ · r_cart
Structs§
- Cell
Parameters - Cell parameters in crystallographic notation (a, b, c, α, β, γ).
- Porosity
Result - Result of geometric pore analysis.
- Powder
XrdResult - Result of powder XRD simulation.
- Space
Group - Space group definition with symmetry operations.
- Symmetry
Operation - A symmetry operation (rotation + translation in fractional coords).
- Unit
Cell - A 3D periodic unit cell defined by lattice vectors.
Functions§
- apply_
symmetry - Apply a symmetry operation to a fractional coordinate.
- compute_
porosity - Compute geometric porosity using grid-based cavity detection.
- expand_
by_ symmetry - Generate all symmetry-equivalent positions from a set of asymmetric unit atoms.
- get_
space_ group - Get symmetry operations for common space groups.
- simulate_
powder_ xrd - Simulate powder X-ray diffraction pattern from unit cell and atoms.