Ground-state SCF cycleΒΆ

This example shows how to plot the results of the GS self-consistent cycle reported in the main output file.



/Users/gmatteo/git_repos/pymatgen/pymatgen/util/ UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

from abipy.abilab import abiopen
import as abidata

# Open the output file with GS calculation (Note the .abo extension).
# Alternatively, one can use ` run.abo -nb`
# to generate a jupyter notebook.
abo = abiopen(abidata.ref_file("refs/si_ebands/run.abo"))

# Plot all SCF-GS sections found in the output file.
# Use abo.next_d2de_scf_cycle() for DFPT cycles.
scf_cycle = abo.next_gs_scf_cycle()
if scf_cycle is not None:

# If timopt -1, we can extract the timing and plot the data.
timer = abo.get_timer()


Total running time of the script: ( 0 minutes 0.258 seconds)

Gallery generated by Sphinx-Gallery