Examples Overview

This section provides complete, ready-to-run examples for locating MECPs with OpenMECP. All examples are also available in the examples/ directory of the repository.

Test System: Phenylcation (C₆H₅⁺)

The primary test case used throughout these examples is the phenylcation, a well-studied 11-atom aromatic cation. The goal is to locate the minimum energy crossing point between the triplet (S = 3) and open-shell singlet (S = 1) spin states.

This system is an excellent benchmark: it is small enough for rapid testing on any hardware, yet exercises all parts of the MECP optimizer, including gradient combination, Hessian updates, and DIIS extrapolation.

Geometry

Save the following as phenylcation.xyz (or embed it directly in the *geom section of your input):

11

C     0.000000000000      1.396613000000      0.000000000000
C     1.209503000000      0.698307000000      0.000000000000
C     1.209503000000     -0.698307000000      0.000000000000
C     0.000000000000     -1.396613000000      0.000000000000
C    -1.209503000000     -0.698307000000      0.000000000000
C    -1.209503000000      0.698307000000      0.000000000000
H     2.150882000000      1.241812000000      0.000000000000
H     2.150882000000     -1.241812000000      0.000000000000
H     0.000000000000     -2.483625000000      0.000000000000
H    -2.150882000000     -1.241812000000      0.000000000000
H    -2.150882000000      1.241812000000      0.000000000000

How to Run

omecp input.inp > output.log

OpenMECP writes a summary line to stdout at each step. Key fields:

ColumnMeaning
StepIteration number
ΔEEnergy difference between the two states (target: → 0)
RMS gradRMS effective gradient (target: < rms_grad threshold)
RMS dispRMS Cartesian displacement from previous step
Max dispLargest single atomic displacement

Output Files

FileContents
{basename}_mecp.xyzFinal optimized MECP geometry
running_dir/All intermediate QM input/output files
{basename}_omecp_debug.logStep-by-step debug log (if file_logging = true)

Available Examples

PageSystemProgramOptimizer
Gaussian ExamplesC₆H₅⁺GaussianGDIIS, Sequential Hybrid, GDIIS_blend
ORCA ExamplesC₆H₅⁺ORCAGDIIS, GDIIS_blend