">

deMonPy.modules.quench

Back to DeMonNanoPy API Reference

Description

Geometry optimization workflow (registry key "opt").

Source file: deMonPy/modules/quench.py

Classes

_relax_geometry (modules)

Optimization driver: quench/CG relaxations with convergence checks.

Methods

Method Signature Description
__init__ __init__(context, **kwargs) Attach the calculator context.
restart restart(**kwds) Restart an optimization from a previous state.
check_distances check_distances(threshold=0.7) Check atom distances below a threshold (bond sanity).
is_converged is_converged() True when the output no longer reports "optimization not converged".
forward forward(image, max=999, algo="CGRAD", out=1, restart=False, **args) Run one optimization cycle for an image with the given algorithm.