GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
ChainRealign.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Copyright (c) gpridge developers
3
// See LICENSE for details.
4
//
5
// Mid-run chain re-alignment for gprn (--midrun-realign). Each interior
6
// image is IRA-matched onto its (already realigned) predecessor so the
7
// whole band sits in chain-consistent Cartesian frames after large
8
// moves or MMF bursts. This reconditions the band's tangents and
9
// spring forces, which are computed componentwise on raw Cartesian
10
// differences between neighbouring images.
11
//
12
// Why this is GP-transparent: the GP fingerprint is the inverse
13
// interatomic distance descriptor accumulated per pairtype
14
// (gpr/auxiliary/Distance.cpp), which is invariant under rigid
15
// rotations, rigid translations, and same-element permutations. IRA
16
// assignments are composed of exactly those three operations (libira
17
// matches like atom types onto like). A realigned image therefore
18
// presents an identical descriptor to the GP: the training set, the
19
// posterior mean/variance, and every acquisition score are unchanged.
20
// Only the Cartesian embedding of the band differs.
21
22
#ifndef GPR_AUXILIARY_CHAINREALIGN_H_
23
#define GPR_AUXILIARY_CHAINREALIGN_H_
24
25
#include <cstdint>
26
#include <vector>
27
28
namespace
gpr
{
29
namespace
neb
{
30
class
NEBPath
;
31
}
// namespace neb
32
}
// namespace gpr
33
34
namespace
aux
{
35
36
struct
ChainRealignStats
{
37
int
images_realigned
= 0;
38
int
images_failed
= 0;
39
};
40
57
ChainRealignStats
realignChainToPredecessors
(
58
gpr::neb::NEBPath
& path,
const
std::vector<int>& atomic_numbers,
59
std::vector<std::vector<uint64_t>>* image_ids,
double
kmax_factor = 1.8);
60
61
}
// namespace aux
62
63
#endif
// GPR_AUXILIARY_CHAINREALIGN_H_
gpr::neb::NEBPath
NEB path: chain of images between two endpoints.
Definition
NEBPath.h:57
aux
Definition
AdditionalFunctionality.h:18
aux::realignChainToPredecessors
ChainRealignStats realignChainToPredecessors(gpr::neb::NEBPath &path, const std::vector< int > &atomic_numbers, std::vector< std::vector< uint64_t > > *image_ids, double kmax_factor)
Definition
ChainRealign.cpp:12
gpr::neb
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
Definition
ChainRealign.h:29
gpr
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition
Macros.h:16
aux::ChainRealignStats
Definition
ChainRealign.h:36
aux::ChainRealignStats::images_failed
int images_failed
libira errors (image left untouched)
Definition
ChainRealign.h:38
aux::ChainRealignStats::images_realigned
int images_realigned
non-identity assignments applied
Definition
ChainRealign.h:37
gpr
auxiliary
ChainRealign.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf