NudgedElasticBandStepFinder
__init__(self, func, jacobian, hessian=None, spring_constants=0.1, distance_function=None, step_finder='gradient-descent', logger=None, step_size=None, line_search=None, **opts):
Relax NEB forces with fixed-step integration or a custom force search.
NEB forces are not the gradient of the per-image energy. An energy Armijo
search is therefore unsuitable, including for climbing images. The default
gradient-descent integration scale is .001; adapt it to the potential’s
curvature, as with StringMethodStepFinder.
get_dist(self, p1, p2):
LLM Docstring
Return the Euclidean distance between two image geometries.
p1:np.ndarraythe first geometry
p2:np.ndarraythe second geometry
:returns:np.ndarraythe distance
get_tangent(self, guess, mask, cur, prev, next):
Energy-weighted NEB tangents independently for each chain.
adjust_jacobian(self, jac, guess, mask, cur, prev, next):
climbing_node_step(self, guess, mask, gradient_modifer=None, projector=None):
LLM Docstring
Take a climbing-image step: invert the tangential force component so the image climbs toward the saddle along the path.
guess:np.ndarraythe climbing-image parameters
mask:np.ndarrayactive-member indices
gradient_modifer:Callable | Noneoptional gradient transformation
projector:np.ndarray | Noneoptional projector
:returns:tuple(step, gradient)
image_pairwise_contribution(self, guess, mask, cur, prev, next, order=0):
LLM Docstring
Compute the NEB spring contribution to the objective/gradient/Hessian from the difference of the distances to the two neighbouring images.
guess:np.ndarraythe full chain
mask:np.ndarrayactive-member indices
cur:intcurrent image index
prev:int | Noneprevious image index
next:int | Nonenext image index
order:intderivative order (
0=value,1=gradient,2=Hessian):returns:np.ndarray | intthe spring contribution