Morse Pt NEB (built-in potential)

A compact Pt surface / adatom band on the built-in morse_pt potential. Geometries match benchmarks/data/neb_morse_pt/. Both plot cells pass --ira-kmax 1.8. That value is the usual factor on the basis search for similar structures. A larger factor leaves this match unchanged and the search then dominates the plot.

Workflow:

  1. write config.ini and copy endpoints

  2. run eonclient

  3. plot 1D profiles and a 2D reaction-valley landscape with the current rgpycrumbs eon plt-neb conventions (full history, 1:1 Å panel, structure strip)

Prerequisites

which eonclient
python -c "import rgpycrumbs, chemparseplot, readcon"

Setup and run

1D energy profiles (full history)

Plot every optimization step, mark the final band, and attach a structure strip for all images on the path (--plot-structures all). The saddle is marked with a gold star on the final profile.

neb_profile = plot_dir / "neb_1d.png"
run_rgpycrumbs(
    "eon",
    "plt-neb",
    "--con-file",
    str(work / "neb.con"),
    "--input-dat-pattern",
    str(work / "neb_*.dat"),
    "--ira-kmax",
    "1.8",
    "--plot-type",
    "profile",
    "--highlight-last",
    "--show-pts",
    "--plot-structures",
    "all",
    "--strip-renderer",
    "xyzrender",
    "--strip-dividers",
    "--xyzrender-config",
    "paton",
    "--rotation",
    "90x,0y,0z",
    "--show-legend",
    "--title",
    "Morse Pt NEB path optimization",
    "--dpi",
    "150",
    "--output-file",
    str(neb_profile),
    cwd=work,
)
show_plot(neb_profile)
$ /home/runner/work/eOn/eOn/.pixi/envs/docs-mta/bin/python3.12 -m rgpycrumbs.cli eon plt-neb --con-file /tmp/eon_morse_pt_neb_r_09oyji/neb.con --input-dat-pattern /tmp/eon_morse_pt_neb_r_09oyji/neb_*.dat --ira-kmax 1.8 --plot-type profile --highlight-last --show-pts --plot-structures all --strip-renderer xyzrender --strip-dividers --xyzrender-config paton --rotation 90x,0y,0z --show-legend --title Morse Pt NEB path optimization --dpi 150 --output-file /tmp/eon_morse_pt_neb_r_09oyji/plots/neb_1d.png
--> Dispatching to: /home/runner/work/eOn/eOn/.pixi/envs/docs-mta/bin/python3.12 /home/runner/work/eOn/eOn/.pixi/envs/docs-mta/lib/python3.12/site-packages/rgpycrumbs/eon/plt_neb.py --con-file /tmp/eon_morse_pt_neb_r_09oyji/neb.con --input-dat-pattern /tmp/eon_morse_pt_neb_r_09oyji/neb_*.dat --ira-kmax 1.8 --plot-type profile --highlight-last --show-pts --plot-structures all --strip-renderer xyzrender --strip-dividers --xyzrender-config paton --rotation 90x,0y,0z --show-legend --title Morse Pt NEB path optimization --dpi 150 --output-file /tmp/eon_morse_pt_neb_r_09oyji/plots/neb_1d.png
[12/03/26 21:57:46] INFO     INFO - Setting global rcParams for ruhi theme      
                    WARNING  WARNING - Font 'Atkinson Hyperlegible' not found.  
                             Falling back to 'sans-serif'.                      
                    INFO     INFO - Reading structures from                     
                             /tmp/eon_morse_pt_neb_r_09oyji/neb.con             
                    INFO     INFO - Loaded 9 structures.                        
                    INFO     INFO - Loading explicit saddle point from sp.con   
                    INFO     INFO - Searching for files with pattern:           
                             '/tmp/eon_morse_pt_neb_r_09oyji/neb_*.dat'         
                    INFO     INFO - Found 26 file(s).                           
                    INFO     INFO - Loading /tmp/tmpbwstza4h.xyz                
[12/03/26 21:57:47] INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:57:48] INFO     INFO - Loading /tmp/tmpknk2dctw.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:57:49] INFO     INFO - Loading /tmp/tmpcm4s83xj.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:57:51] INFO     INFO - Loading /tmp/tmpgmd8se6w.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1628 bonds          
[12/03/26 21:57:52] INFO     INFO - Loading /tmp/tmp9rhtrbek.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1629 bonds          
[12/03/26 21:57:53] INFO     INFO - Loading /tmp/tmpzhl6fvor.xyz                
[12/03/26 21:57:54] INFO     INFO - Built graph: 343 atoms, 1628 bonds          
[12/03/26 21:57:55] INFO     INFO - Loading /tmp/tmpwamfdfyn.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:57:56] INFO     INFO - Loading /tmp/tmpetuwlgto.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:57:58] INFO     INFO - Loading /tmp/tmpqnup3xwj.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:57:59] INFO     INFO - Profile content layout: main=3.55 in,       
                             strip=1.95 in, figsize=(6.40, 6.91)                
--> Using active interpreter (readcon/plot stack present or --dev)
../../_images/97bbb0afd86d9e06244f515768e7195790e1dd6a6ace9b197b686a849ca8dcac.png

2D reaction-valley landscape

Use the full optimization history for the surface (--landscape-path all), project into progress / orthogonal deviation (--project-path), and keep a true 1:1 Å panel (Δs = Δd). The strip under the map shows every band image in two rows when there are many structures.

neb_land = plot_dir / "neb_2d.png"
run_rgpycrumbs(
    "eon",
    "plt-neb",
    "--con-file",
    str(work / "neb.con"),
    "--input-dat-pattern",
    str(work / "neb_*.dat"),
    "--input-path-pattern",
    str(work / "neb_path_*.con"),
    "--ira-kmax",
    "1.8",
    "--plot-type",
    "landscape",
    "--rc-mode",
    "path",
    "--landscape-mode",
    "surface",
    "--landscape-path",
    "all",
    "--surface-type",
    "grad_imq",
    "--project-path",
    "--show-pts",
    "--highlight-last",
    "--plot-structures",
    "all",
    "--strip-renderer",
    "xyzrender",
    "--strip-dividers",
    "--xyzrender-config",
    "paton",
    "--rotation",
    "90x,0y,0z",
    "--show-legend",
    "--title",
    "Morse Pt NEB-RMSD surface",
    "--dpi",
    "150",
    "--output-file",
    str(neb_land),
    cwd=work,
)
show_plot(neb_land)
$ /home/runner/work/eOn/eOn/.pixi/envs/docs-mta/bin/python3.12 -m rgpycrumbs.cli eon plt-neb --con-file /tmp/eon_morse_pt_neb_r_09oyji/neb.con --input-dat-pattern /tmp/eon_morse_pt_neb_r_09oyji/neb_*.dat --input-path-pattern /tmp/eon_morse_pt_neb_r_09oyji/neb_path_*.con --ira-kmax 1.8 --plot-type landscape --rc-mode path --landscape-mode surface --landscape-path all --surface-type grad_imq --project-path --show-pts --highlight-last --plot-structures all --strip-renderer xyzrender --strip-dividers --xyzrender-config paton --rotation 90x,0y,0z --show-legend --title Morse Pt NEB-RMSD surface --dpi 150 --output-file /tmp/eon_morse_pt_neb_r_09oyji/plots/neb_2d.png
--> Dispatching to: /home/runner/work/eOn/eOn/.pixi/envs/docs-mta/bin/python3.12 /home/runner/work/eOn/eOn/.pixi/envs/docs-mta/lib/python3.12/site-packages/rgpycrumbs/eon/plt_neb.py --con-file /tmp/eon_morse_pt_neb_r_09oyji/neb.con --input-dat-pattern /tmp/eon_morse_pt_neb_r_09oyji/neb_*.dat --input-path-pattern /tmp/eon_morse_pt_neb_r_09oyji/neb_path_*.con --ira-kmax 1.8 --plot-type landscape --rc-mode path --landscape-mode surface --landscape-path all --surface-type grad_imq --project-path --show-pts --highlight-last --plot-structures all --strip-renderer xyzrender --strip-dividers --xyzrender-config paton --rotation 90x,0y,0z --show-legend --title Morse Pt NEB-RMSD surface --dpi 150 --output-file /tmp/eon_morse_pt_neb_r_09oyji/plots/neb_2d.png
[12/03/26 21:58:02] INFO     INFO - Setting global rcParams for ruhi theme      
                    WARNING  WARNING - Font 'Atkinson Hyperlegible' not found.  
                             Falling back to 'sans-serif'.                      
                    INFO     INFO - Reading structures from                     
                             /tmp/eon_morse_pt_neb_r_09oyji/neb.con             
                    INFO     INFO - Loaded 9 structures.                        
                    INFO     INFO - Loading explicit saddle point from sp.con   
                    INFO     INFO - Searching for files with pattern:           
                             '/tmp/eon_morse_pt_neb_r_09oyji/neb_*.dat'         
                    INFO     INFO - Found 26 file(s).                           
                    INFO     INFO - Searching for files with pattern:           
                             '/tmp/eon_morse_pt_neb_r_09oyji/neb_path_*.con'    
                    INFO     INFO - Found 26 file(s).                           
                    INFO     INFO - Computing Landscape data...                 
[12/03/26 21:58:15] INFO     INFO - Saving Landscape cache to                   
                             .neb_landscape.parquet...                          
                    INFO     INFO - Calculated heuristic RBF smoothing: 0.0395  
                    INFO     INFO - Generating 2D surface using grad_imq        
                             (Projected: True)...                               
[12/03/26 21:58:16] INFO     INFO - Unable to initialize backend 'tpu':         
                             INTERNAL: Failed to open libtpu.so: libtpu.so:     
                             cannot open shared object file: No such file or    
                             directory                                          
                    INFO     INFO - Unable to initialize backend 'proxy': The   
                             'proxy' backend requires the address of an IFRT    
                             Proxy server. Set it via the JAX_BACKEND_TARGET    
                             environment variable or the jax_backend_target     
                             config option, e.g.                                
                             JAX_BACKEND_TARGET=grpc://localhost:29000.         
[12/03/26 21:58:25] INFO     INFO - Plotting explicit SP at R=0.114, P=0.113    
                    WARNING  WARNING - Looks like you are using a tranform that 
                             doesn't support FancyArrowPatch, using ax.annotate 
                             instead. The arrows might strike through texts.    
                             Increasing shrinkA in arrowprops might help.       
                    INFO     INFO - Loading /tmp/tmpv4bs9mqh.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:58:26] INFO     INFO - Loading /tmp/tmptnb66vq9.xyz                
[12/03/26 21:58:27] INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:58:28] INFO     INFO - Loading /tmp/tmpjyongka0.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:58:29] INFO     INFO - Loading /tmp/tmp1r345tza.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1628 bonds          
[12/03/26 21:58:30] INFO     INFO - Loading /tmp/tmp4mqbe6zy.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1629 bonds          
[12/03/26 21:58:31] INFO     INFO - Loading /tmp/tmpdsw2h9fu.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1628 bonds          
[12/03/26 21:58:32] INFO     INFO - Loading /tmp/tmpuku7iqfy.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:58:33] INFO     INFO - Loading /tmp/tmpkx4pt5z2.xyz                
                    INFO     INFO - Built graph: 343 atoms, 1626 bonds          
[12/03/26 21:58:34] INFO     INFO - Loading /tmp/tmp0t6_463b.xyz                
[12/03/26 21:58:35] INFO     INFO - Built graph: 343 atoms, 1626 bonds          
                    INFO     INFO - Set 1:1 (s,d) square panel: Δs=Δd=0.422 Å   
                             (s=[-0.020, 0.402], d=[-0.211, 0.211]);            
                             strip_rows=2; figsize=(8.35, 10.48) in             
--> Using active interpreter (readcon/plot stack present or --dev)
../../_images/be457ee7313c3db6c6f5c5a93840faee56f002e34ec91f23ccd03ef20b72066e.png

See also