# Mode-resolved force constants of cubic SrTiO3 (Pm-3m, 5 atoms, Z = 1) at GM,
# R, X and M from the FORCE_SETS of a 4x4x4 supercell. Writes
# mode-resolved-fc.yaml. At GM the three polar GM4- optical sets are the
# Slater (2.66 THz, mu = 20 amu: Ti against the O octahedron), Last (4.71 THz,
# mu = 57 amu: Sr against the TiO6 unit) and Axe (15.31 THz, mu = 16 amu: the
# octahedron bending) patterns; their k(-transl.) column removes the uniform
# translation each pattern carries. At R the lowest set, R5- (the antiphase
# rotation of the TiO6 octahedra that condenses at 105 K into I4/mcm), has
# k = -0.077 eV/A^2: an O-only pattern (mu = m_O = 16 amu), unstable.
crystod-phonon --mode-resolved-fc -c 221_PPOSCAR_SrTiO3 --dim 4 4 4

* Structure *
  Space group: Pm-3m (#221)
  Formula: SrTiO3
  Primitive cell: 5 atoms, Z = 1 formula unit(s)
  Supercell: 4 x 4 x 4 (FORCE_SETS)

* Conventions *
  k = u^+ Phi(q) u^ = mu w in eV/A^2 per primitive cell, the pattern u^ normalized
  to |u^| = 1 A over the primitive cell; k/fu = k / Z; mu = 1 / sum_i |e_i|^2/m_i (amu)
  k(-transl.) (GM only): k of u^ with its uniform translation removed, renormalized
  Irrep blocks: eigenvalues of Phi(q) on the irrep subspace (eV/A^2); k < 0: unstable
  1 eV/A^2 = 1000 meV/A^2, the unit many stability analyses quote per formula unit

* Mode-resolved force constants at GM *
  q = [0.0000, 0.0000, 0.0000]
   band  irrep    freq (THz)   mu (amu)    k (eV/A^2)         k/fu  k(-transl.)
    1-3  GM4-(3)      0.0000    36.6970      0.000000     0.000000     acoustic
    4-6  GM4-(3)      2.6629    20.0154      0.580737     0.580737     0.826931
    7-9  GM4-(3)      4.7144    56.6097      5.148077     5.148077     5.737971
  10-12  GM5-(3)      7.3465    15.9994      3.533147     3.533147     3.533147
  13-15  GM4-(3)     15.3054    16.0173     15.352475    15.352475    15.357769

* Irrep-resolved Hessian at GM *
  irrep       dim         trace  eigenvalues (eV/A^2)
  GM4-         12     66.244679  0.000000 0.000000 0.000000 0.825380 0.825380 0.825380 5.799761
                                 5.799761 5.799761 15.456418 15.456418 15.456418
    -transl.    9     66.244679  0.825380 0.825380 0.825380 5.799761 5.799761 5.799761 15.456418
                                 15.456418 15.456418
  GM5-          3     10.599442  3.533147 3.533147 3.533147

* Mode-resolved force constants at R *
  q = [0.5000, 0.5000, 0.5000]
   band  irrep   freq (THz)   mu (amu)    k (eV/A^2)         k/fu
    1-3  R5-(3)     -1.0867    15.9994     -0.077309    -0.077309
    4-6  R4-(3)      3.9891    86.4275      5.627284     5.627284
    7-9  R5+(3)     11.6887    47.8670     26.758864    26.758864
  10-12  R4-(3)     12.6621    16.0398     10.522343    10.522343
  13-14  R3-(2)     14.8133    15.9994     14.365103    14.365103
     15  R2-(1)     23.2302    15.9994     35.326973    35.326973

* Irrep-resolved Hessian at R *
  irrep       dim         trace  eigenvalues (eV/A^2)
  R5-           3     -0.231926  -0.077309 -0.077309 -0.077309
  R4-           6     48.993615  5.558094 5.558094 5.558094 10.773111 10.773111 10.773111
  R5+           3     80.276591  26.758864 26.758864 26.758864
  R3-           2     28.730205  14.365103 14.365103
  R2-           1     35.326973  35.326973

* Mode-resolved force constants at X *
  q = [0.0000, 0.5000, 0.0000]
   band  irrep   freq (THz)   mu (amu)    k (eV/A^2)         k/fu
    1-2  X5-(2)      3.1516    87.5430      3.557895     3.557895
    3-4  X5+(2)      3.7902    47.8547      2.812808     2.812808
      5  X3-(1)      4.6879    84.7645      7.622089     7.622089
    6-7  X5+(2)      5.3846    16.0001      1.898142     1.898142
      8  X2+(1)      7.8417    15.9994      4.025504     4.025504
      9  X1+(1)      7.8498    22.3040      5.623341     5.623341
  10-11  X5-(2)      9.0357    16.0020      5.345626     5.345626
     12  X1+(1)     13.8180    25.9346     20.261224    20.261224
  13-14  X5+(2)     14.2275    16.0000     13.251874    13.251874
     15  X3-(1)     21.2464    16.0984     29.733893    29.733893

* Irrep-resolved Hessian at X *
  irrep       dim         trace  eigenvalues (eV/A^2)
  X5-           4     17.819851  3.552835 3.552835 5.357091 5.357091
  X5+           6     35.929054  1.897783 1.897783 2.813536 2.813536 13.253208 13.253208
  X3-           2     38.376867  7.553658 30.823209
  X2+           1      4.025504  4.025504
  X1+           2     34.270369  5.186667 29.083702

* Mode-resolved force constants at M *
  q = [0.5000, 0.5000, 0.0000]
   band  irrep   freq (THz)   mu (amu)    k (eV/A^2)         k/fu
      1  M2+(1)      1.7234    15.9994      0.194446     0.194446
      2  M3-(1)      3.0662    87.6200      3.370568     3.370568
    3-4  M5-(2)      3.3562    83.8869      3.866328     3.866328
      5  M2-(1)      3.5013    47.8468      2.400002     2.400002
    6-7  M5-(2)      7.4462    18.5162      4.200731     4.200731
    8-9  M5+(2)      9.2179    15.9994      5.562412     5.562412
     10  M2-(1)     12.7399    16.0017     10.626714    10.626714
  11-12  M5-(2)     12.8629    34.6272     23.442043    23.442043
     13  M1+(1)     13.1307    15.9994     11.287044    11.287044
     14  M3+(1)     14.9420    15.9994     14.615704    14.615704
     15  M4+(1)     22.4200    15.9994     32.905736    32.905736

* Irrep-resolved Hessian at M *
  irrep       dim         trace  eigenvalues (eV/A^2)
  M2+           1      0.194446  0.194446
  M3-           1      3.370568  3.370568
  M5-           6     76.621191  3.776806 3.776806 4.137657 4.137657 30.396131 30.396131
  M2-           2     13.030379  2.399805 10.630574
  M5+           2     11.124824  5.562412 5.562412
  M1+           1     11.287044  11.287044
  M3+           1     14.615704  14.615704
  M4+           1     32.905736  32.905736

* Output files *
  Mode-resolved force constants written to: mode-resolved-fc.yaml
