MedeA SCI file reader
Added in version 3.15.5.
For loading molecular and crystalline structures stored in the native .sci file format of the
MedeA® software suite by Materials Design, Inc.
This section-based text format supports non-periodic molecular systems, periodic crystalline structures,
and mesoscale coarse-grained models.
The file header must start with #MD System 2.0 or #SciCo System 1.0 (legacy).
An optional @Title directive sets the SCI.Title global attribute.
The file reader processes the following table sections:
AtomReads all atoms in a non-periodic or periodically-expanded system (Cartesian coordinates) and imports:
Position (x, y, z)
Particle Type — the chemical element derived from the
AtomicNumbercolumn. OVITO assigns standard CPK colors for each element.Particle Identifier — from the
Pointcolumn (1-based atom index).Force-Field Type — SYBYL/CHARMM force-field atom type (
FFAtomTypecolumn), if present.Charge — partial charge from the
FFChargecolumn, if present.Mass — atomic mass from the
Masscolumn, if present.
Atom names will be read by OVITO 3.16.0 and later, but are currently ignored in OVITO 3.15.5.
AsymmetricAtomPresent in periodic systems that have not been expanded to the full unit cell. Contains fractional coordinates and the same optional columns as
Atomabove, plus:Spin — magnetic spin value from the
Spincolumn, if present.
When an
AsymmetricAtomtable is found without a corresponding expandedAtomtable, OVITO uses the gemmi crystallography library to generate the full P1 unit cell by applying all symmetry operations of the space group.Note
Bond topology of symmetry-reduced files with centred lattices. When a structure is stored with reduced symmetry (only an
AsymmetricAtomtable) and the space group has a centred Bravais lattice (lattice symbolA,B,C,I,ForR, e.g. the common monoclinic setting \(C2/c\)), OVITO may connect the wrong pairs of atoms when rebuilding the bond network after the symmetry expansion. The atomic positions, the simulation cell, and the number of bonds are correct, but individual bonds can be attached to symmetry-equivalent atoms other than the intended ones.The reason is that the
Bondtable references atoms by MedeA’s internal enumeration order, which OVITO must reproduce in order to remap the bonds onto its own atom ordering. For primitive lattices this order can be reconstructed reliably, but for centred lattices MedeA derives it from proprietary internal tables (and from a canonical site representative that need not match the coordinate stored in the file), so it cannot be reproduced from the file alone.If you need correct bond topology for such a structure, export it from MedeA in its fully expanded (
P1) form, in which all atoms and bonds are listed explicitly and no symmetry expansion is required.CellReads the unit cell parameters and sets up a periodic simulation cell:
Lattice parameters (a, b, c, α, β, γ) are converted to a triclinic cell matrix.
Periodic boundary conditions are enabled in all three directions.
The space group name and number are stored as the global attributes
SCI.SpaceGroupandSCI.SpaceGroupNumber.
BondReads all bonds and creates:
Bond Topology — the two connected atom indices.
Bond Type — named types Single, Aromatic, Double, and Triple, corresponding to the SCI bond-order integers 0, 1, 2, and 3.
Bond Order — a numeric value: single→1.0, aromatic→1.5, double→2.0, triple→3.0. This property is used by the Bonds visual element to render double/triple bonds as parallel cylinders and aromatic bonds as dashed cylinders.
Periodic Image — integer cell-offset vector for bonds across periodic boundaries (from the
CellOffset2column), present in periodic systems.
AsymmetricBondPresent alongside
Bondin periodic systems. Stores the bond order (Ordercolumn) which is looked up when processing expandedBondrows.BeadPresent in mesoscale coarse-grained systems. Each row defines one bead type and provides:
Name — bead type label (e.g.
C1,Qa), used as the particle type name.Mass — bead mass in g/mol, stored as the type mass.
Radius — bead radius in Å, stored as the type display radius.
Color — RGB color in [0, 1] range, stored as the type display color.
Charge — bead charge.
When a
Beadtable is present and theAtomtable (non-periodic systems) or theAsymmetricAtomtable (periodic systems) contains aBeadreference column, the system is treated as a mesoscale model: particle types are taken from bead type names instead of chemical element symbols.PropertiesReads molecule-level scalar quantities (non-periodic systems only):
Charge→ stored as theSCI.MolecularChargeglobal attribute.SpinMultiplicity→ stored as theSCI.SpinMultiplicityglobal attribute.
All other table sections are silently ignored.
Options
- Generate bounding box if needed
If this option is enabled and the SCI file contains no
Celltable, OVITO will generate an axis-aligned bounding box enclosing all atoms. This bounding box has open boundary conditions and serves as an approximate simulation cell.- Center simulation cell on coordinate origin
If enabled, OVITO shifts the simulation cell and all atom coordinates so that the geometric center of the cell coincides with the coordinate origin.
Python parameters
The file reader accepts the following optional keyword parameters in a call to the import_file() or load() Python functions.
- import_file(location, bounding_box=False, centering=False)
- Parameters:
bounding_box (bool) – Generate an ad-hoc simulation cell as a bounding box around the imported atoms when the file contains no
Celltable.centering (bool) – Translate atom coordinates and simulation cell to center them at the coordinate origin.