train.xyz
The train.xyz file contains structures, k-points, and reference electronic bands for training or prediction.
It uses extended XYZ records: a structure with \(N\) atoms occupies \(N+2\) lines.
Several structures can be concatenated, with blank lines allowed between records.
The file must contain at least one structure.
In prediction mode, reference bands are optional. All records in a file must consistently include or omit reference bands.
Format for a single structure
Line 1
Write the positive integer number of atoms, with no other fields.
Line 2
Write space-separated key=value fields on one line.
Enclose values containing spaces in quotes.
Header keys are case-insensitive and may occur only once.
The following fields are read:
Lattice="ax ay az bx by bz cx cy cz"gives the three cell vectors in Angstrom, one vector after another. The cell must have nonzero volume.Properties=species:S:1:pos:R:3declares the atomic columns. The required propertiesspecies:S:1andpos:R:3can appear in either order, each exactly once. Additional declared properties are accepted; their columns are ignored. Property names and type codes are case-sensitive.nkpoints=Kgives the positive integer number of k-points.kpoints="kx_0 ky_0 kz_0 kx_1 ky_1 kz_1 ..."contains exactly \(3K\) numbers. They are fractional coordinates in the reciprocal basis defined by \(\boldsymbol{a}_i\cdot\boldsymbol{b}_j=2\pi\delta_{ij}\). Thus \(\boldsymbol{k}=k_x\boldsymbol{b}_1+k_y\boldsymbol{b}_2+k_z\boldsymbol{b}_3\).nbands=Mgives the positive integer number of reference bands at each k-point.bands="E00 E01 ... E10 E11 ..."contains exactly \(KM\) reference eigenvalues in eV, separated by spaces, with all bands of the first k-point followed by all bands of the second, and so on. Thebandsandnbandsfields must be supplied together and are required for training.pbc="T T T"is optional and specifies periodicity in all three cell directions. This is also the default whenpbcis absent. Each flag must be true (T,true, or1, case-insensitive).
For a layer or wire, include vacuum in the cell while retaining three-dimensional periodicity. Other header fields are accepted but do not enter NeSK training.
Starting from line 3
Write one atom per line, using exactly the columns declared by Properties.
With the declaration above, each row contains the chemical symbol and three Cartesian coordinates in Angstrom.
Every symbol must appear in the model element list, supplied by type during training or read from nesk.txt during prediction.
Reference-band conventions
Provide bands in ascending energy order at each k-point, using a consistent energy reference across the data. NeSK compares eigenvalues directly with the supplied values; it does not shift the reference energies during fitting.
The number of atoms and k-points can vary between structures. See band_range for the band-selection rules.
Minimal format example
For the following nesk.in:
type 1 Si
band_range 0 1
a complete one-structure train.xyz is:
1
Lattice="3 0 0 0 3 0 0 0 3" Properties=species:S:1:pos:R:3 nkpoints=1 kpoints="0 0 0" nbands=1 bands="-3"
Si 0 0 0
The numerical band value illustrates the file format; use calculated reference eigenvalues for model training.
For prediction without reference data, remove both nbands=1 and bands="-3" while retaining the other header fields.
Use a trained Si model in nesk.txt and an input containing prediction 1.