c2spinach.m

From Spinach Documentation Wiki
Revision as of 14:05, 5 April 2026 by Kuprov (talk | contribs) (Sync syntax/arguments/outputs with current Spinach source)
Jump to: navigation, search


Reads the "new format" section of CASTEP .magres files.

Syntax

props=c2spinach(file_name)

Arguments

file_name - the name of the *.magres file, a

                 character string

Outputs

props.std_geom - atomic coordinates (Angstrom)

  props.symbols          - atomic symbols
  props.natoms           - number of atoms
  props.filename         - log file name
  props.cst              - chemical shielding tensors relative
                           to the bare nucleus in vacuum, ppm
  props.efg              - EFG tensors, a.u.^-3
Notes: CASTEP has a printing bug with over 100 nuclei. A kind of
       workaround was implemented, but keep an eye on it.
ilya.kuprov@weizmann.ac.il

Notes

CASTEP has a printing bug wit over 100 nuclei. A kind of workaround was implemented, but keep an eye on it.

See also

s2spinach.m, oparse.m, ocparse.m, gparse.m, g2spinach.m


Version 2.4, authors: Ilya Kuprov