Difference between revisions of "Cubic lattice.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Correct function page display title to cubic_lattice.m)
(Add NOTOC to Spinach function page header)
Line 1: Line 1:
−
{{DISPLAYTITLE:cubic_lattice.m}}
+
{{DISPLAYTITLE:cubic_lattice.m}} __NOTOC__
 
Creates a periodic volume-centered cubic lattice with user-supplied parameters.
 
Creates a periodic volume-centered cubic lattice with user-supplied parameters.
  

Revision as of 15:58, 5 June 2026

Creates a periodic volume-centered cubic lattice with user-supplied parameters.

Syntax

    [sys,inter]=cubic_lattice(isotope,spacing,n_periods)

Arguments

  isotope   - character string specifying the isotope,
              for example, '13C'

  spacing   - lattice spacing in Angstroms

  n_periods - number of lattice periods in each of the
              three spatial dimensions

Outputs

  sys, inter - Spinach input data structures with the
               following fields set:

               sys.isotopes, inter.coordinates, inter.pbc

See also

g2spinach.m, x2spinach.m, oparse.m

Version 2.1, authors: Ilya Kuprov