Skip to content

Examples periodic solids

Juvenal Yosa edited this page Nov 20, 2026 · 4 revisions

Solids are ordinary inputs with translation vectors (Tv): three for a crystal, two for a slab or sheet, one for a polymer. Above 100 atoms the conventional SCF runs on the GPU: one-electron and Fock matrices, diagonalization, pseudo-diagonalization and gradient. Complete cells are in tests/data/materials (small/: 64–192 atoms, medium/: 512–768 atoms).

Figures: calculations with the CPU build of v1.2.1-gpu, laptop (Intel Core i7-8850H), one core unless a caption says otherwise, or published numbers where the caption says so. Scripts: scripts/wiki_figures.

38. Single point of a crystal

A crystal is an ordinary input with translation vectors (Tv, Å) after the atoms. Above 100 atoms the conventional SCF runs on the GPU. Geometry: the 64-atom silicon cell of the repository.

Geometry from tests/data/materials/small/silicon.mop (its atom and Tv lines follow the two header lines)

PM7 1SCF GRADIENTS GEO-OK
Silicon, 64 atoms

Si     0.000000 1     0.000000 1     0.000000 1
Si     1.357750 1     1.357750 1     1.357750 1
Si     0.000000 1     2.715500 1     2.715500 1
... (64 atoms in all)
Tv    10.862000 0     0.000000 0     0.000000 0
Tv     0.000000 0    10.862000 0     0.000000 0
Tv     0.000000 0     0.000000 0    10.862000 0

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

The 64-atom silicon cell and the density of states from its orbital energies.

The 64-atom silicon cell and the density of states from its orbital energies.

39. Force the GPU for a small cell

Cells under 100 atoms stay on the CPU, where they are fast enough; MOPAC_FORCEGPU=1 sends them to the GPU.

MOPAC_FORCEGPU=1 mopac diamond.mop
Solids, conventional SCF on 12 CPU threads and on an A100

Solids, conventional SCF on 12 CPU threads and on an A100; numbers published in the README (A100 benchmark, commit c85eb96d).

40. A two-dimensional layer

Two translation vectors make a slab or a sheet; here graphene (72 atoms). Its SCF needs about 2 800 iterations.

Geometry from tests/data/materials/small/graphene.mop (its atom and Tv lines follow the two header lines)

PM7 1SCF GRADIENTS GEO-OK
Graphene, 72 atoms

C 0.00492 1 0.00967 1 0.01181 1
C 1.24770 1 0.71974 1 0.01689 1
C 1.21116 1 2.12905 1 0.01773 1
... (72 atoms in all)
Tv 14.76000 1 0.00000 1 0.0 1
Tv 7.38000 1 12.78253 1 0.0 1
Graphene with its periodic images (the cell darker), and the energy change per SCF iteration: 1 059 iterations on the CPU.

Graphene with its periodic images (the cell darker), and the energy change per SCF iteration: 1 059 iterations on the CPU.

41. A metal or small-gap solid: SMEAR

New keyword. SMEAR=kT (eV; SMEAR alone means 0.1) uses Fermi–Dirac occupations (closed-shell RHF, conventional SCF; MOZYME ignores it). The reported heat is the Mermin free energy E − TS; at the end the output gives the Fermi level, −TS, and the term to add to the heat for an estimate of the energy at kT → 0 (E(kT -> 0) ~ E - TS/2: FREE ENERGY + ...). Full description: SMEAR.

Geometry from tests/data/materials/small/graphene.mop (its atom and Tv lines follow the two header lines)

PM7 1SCF SMEAR=0.1 GEO-OK
Graphene with Fermi smearing

C 0.00492 1 0.00967 1 0.01181 1
C 1.24770 1 0.71974 1 0.01689 1
C 1.21116 1 2.12905 1 0.01773 1
... (72 atoms in all)
Tv 14.76000 1 0.00000 1 0.0 1
Tv 7.38000 1 12.78253 1 0.0 1

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

SMEAR=0.1: occupations of the levels near the Fermi level, and the SCF iterations

SMEAR=0.1: occupations of the levels near the Fermi level, and the SCF iterations. With SMEAR the SCF converged in 23 iterations, but to a state 16.6 kcal/mol above the one of the default SCF; compare heats and gaps (see Troubleshooting).

42. Accurate gradients of a solid: PRECISE

The default gradient uses one-sided differences for the pair derivatives (about 0.05 kcal/mol/Å from the exact derivative); PRECISE switches to central differences. Use it for cell optimizations.

Geometry from tests/data/materials/small/diamond.mop (its atom and Tv lines follow the two header lines)

PM7 1SCF GRADIENTS PRECISE GEO-OK
Diamond, precise gradient

C      0.000000 1     0.000000 1     0.000000 1
C      0.891750 1     0.891750 1     0.891750 1
C      0.000000 1     1.783500 1     1.783500 1
... (64 atoms in all)
Tv     7.134000 0     0.000000 0     0.000000 0
Tv     0.000000 0     7.134000 0     0.000000 0
Tv     0.000000 0     0.000000 0     7.134000 0

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

Diamond: every gradient component with the default one-sided differences against PRECISE (central differences).

Diamond: every gradient component with the default one-sided differences against PRECISE (central differences).

43. Relax the atoms in a fixed cell

Atoms flagged 1 move, translation vectors flagged 0 stay (as in the repository cells).

Geometry from tests/data/materials/small/rutile.mop (its atom and Tv lines follow the two header lines)

PM7 PRECISE CYCLES=100 GEO-OK
Rutile, atoms relaxed

Ti     0.000000 1     0.000000 1     0.000000 1
Ti     2.297000 1     2.297000 1     1.479500 1
O      1.402548 1     1.402548 1     0.000000 1
... (72 atoms in all)
Tv     9.188000 0     0.000000 0     0.000000 0
Tv     0.000000 0     9.188000 0     0.000000 0
Tv     0.000000 0     0.000000 0     8.877000 0

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=2.

Rutile, atoms relaxed in a fixed cell: heat and gradient norm

Rutile, atoms relaxed in a fixed cell: heat and gradient norm; converged after 15 cycles.

44. Γ-point vibrations of a crystal

FORCE with a fixed cell. SCFCRT=1.D-10 is what the benchmark used (diamond: 99 s on an A100, 745 s on 12 CPU threads).

Geometry from tests/data/materials/small/diamond.mop (its atom and Tv lines follow the two header lines)

PM7 FORCE SCFCRT=1.D-10 GEO-OK
Diamond, Gamma-point frequencies

C      0.000000 1     0.000000 1     0.000000 1
C      0.891750 1     0.891750 1     0.891750 1
C      0.000000 1     1.783500 1     1.783500 1
... (64 atoms in all)
Tv     7.134000 0     0.000000 0     0.000000 0
Tv     0.000000 0     7.134000 0     0.000000 0
Tv     0.000000 0     0.000000 0     7.134000 0
Γ-point frequencies of the 64-atom diamond cell (FORCE, 40 minutes on 4 CPU threads).

Γ-point frequencies of the 64-atom diamond cell (FORCE, 40 minutes on 4 CPU threads).

45. Dynamics of a crystal

DRC TEMPERATURE=300 in a fixed cell (NVE); add BUSSI= for NVT.

Geometry from tests/data/materials/small/diamond.mop (its atom and Tv lines follow the two header lines)

PM7 DRC TEMPERATURE=300 SEED=7 CYCLES=40 GEO-OK
Diamond, NVE at 300 K

C      0.000000 1     0.000000 1     0.000000 1
C      0.891750 1     0.891750 1     0.891750 1
C      0.000000 1     1.783500 1     1.783500 1
... (64 atoms in all)
Tv     7.134000 0     0.000000 0     0.000000 0
Tv     0.000000 0     7.134000 0     0.000000 0
Tv     0.000000 0     0.000000 0     7.134000 0

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=3.

Diamond, NVE from 300 K in a fixed cell, run with CYCLES=60 (6 fs): temperature, and potential, kinetic and total energy on one scale (the total stays within 0.022 kcal/mol).

Diamond, NVE from 300 K in a fixed cell, run with CYCLES=60 (6 fs): temperature, and potential, kinetic and total energy on one scale (the total stays within 0.022 kcal/mol).

46. The SCF of MOPAC 23.1.2 for solids: SHIFT=80

This fork shifts the virtual levels of solids by 20 eV with damped first iterations (fewer iterations for most cells). SHIFT=80 restores the 80-eV shift of MOPAC 23.1.2 and turns the damping off; Pulay's converger still starts if the SCF takes 50 iterations. See SHIFT in solids.

Geometry from tests/data/materials/small/silicon.mop (its atom and Tv lines follow the two header lines)

PM7 1SCF SHIFT=80 GEO-OK
Silicon with the original level shift

Si     0.000000 1     0.000000 1     0.000000 1
Si     1.357750 1     1.357750 1     1.357750 1
Si     0.000000 1     2.715500 1     2.715500 1
... (64 atoms in all)
Tv    10.862000 0     0.000000 0     0.000000 0
Tv     0.000000 0    10.862000 0     0.000000 0
Tv     0.000000 0     0.000000 0    10.862000 0

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

Silicon: energy change per SCF iteration with the default SCF of solids and with SHIFT=80.

Silicon: energy change per SCF iteration with the default SCF of solids and with SHIFT=80.

47. A molecular crystal with MOZYME

MOZYME works with Tv for molecular crystals (urea here); for dense covalent solids such as oxides or silicon leave it out, their localized orbitals spread over most of the cell.

Geometry from tests/data/materials/small/urea.mop (its atom and Tv lines follow the two header lines)

PM7 MOZYME 1SCF GEO-OK
Urea crystal, MOZYME

C      0.000000 1     2.782500 1     1.526984 1
C      2.782500 1     0.000000 1     3.157016 1
O      0.000000 1     2.782500 1     2.788385 1
... (192 atoms in all)
Tv    11.130000 0     0.000000 0     0.000000 0
Tv     0.000000 0    11.130000 0     0.000000 0
Tv     0.000000 0     0.000000 0    14.052000 0

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

The urea cell, and its heat with MOZYME and with the conventional SCF.

The urea cell, and its heat with MOZYME and with the conventional SCF.

48. Turn the pseudo-diagonalization off

On the GPU the conventional SCF rotates the orbitals between full diagonalizations once the density change is below 0.05. If an SCF ends in a surprising state, compare with MOPAC_PDIAG=0.

MOPAC_PDIAG=0 mopac quartz.mop
α-quartz cell: SCF with and without the pseudo-diagonalization, both on the CPU (MOPAC_PDIAG=1 turns it on there): same iterations and heats.

α-quartz cell: SCF with and without the pseudo-diagonalization, both on the CPU (MOPAC_PDIAG=1 turns it on there): same iterations and heats.

Clone this wiki locally