28#include <readcon-core.hpp>
50 std::shared_ptr<Matter> finalPassed,
52 std::shared_ptr<Potential> potPassed);
55 std::shared_ptr<Potential> potPassed);
89 [[nodiscard]] std::vector<readcon::ConFrame>
90 pathFrames(std::optional<size_t> bandIndex = std::nullopt);
97 [[nodiscard]]
long imageOwner(std::size_t i)
const noexcept {
98 const auto idx =
static_cast<long>(i);
109 std::vector<std::shared_ptr<Matter>>
path;
110 std::vector<std::shared_ptr<AtomMatrix>>
tangent;
131 std::shared_ptr<Potential>
pot;
163 VectorXd
difference(
const VectorXd &a,
const VectorXd &b);
Eigen::Matrix< double, 3, 3, eOnStorageOrder > Matrix3d
VectorXd getGradient(bool fdstep=false)
~NEBObjectiveFunction(void)
NudgedElasticBand::NEBStatus status
bool supportsFiniteDifferenceCurvature() const override
VectorXd difference(const VectorXd &a, const VectorXd &b)
bool gradientMatchesEnergy() const override
bool reuseDisplacementCurvature() const override
VectorXd getMasses() const override
NEBObjectiveFunction(NudgedElasticBand *nebPassed, const Parameters ¶metersPassed)
void setPositions(const VectorXd &x)
NudgedElasticBand::NEBStatus compute(void)
NudgedElasticBand(std::shared_ptr< Matter > initialPassed, std::shared_ptr< Matter > finalPassed, const Parameters ¶metersPassed, std::shared_ptr< Potential > potPassed)
std::vector< double > extremumEnergy
std::size_t maxEnergyImage
std::vector< std::shared_ptr< AtomMatrix > > tangent
void printImageData(bool writeToFile=false, size_t idx=0)
std::vector< std::shared_ptr< Matter > > path
bool perImagePotentials_
Whether per-image potential instances exist.
double solidJacobian() const noexcept
long lastIteration() const noexcept
Iteration count from the last compute(). Zero before compute() runs.
std::vector< double > extremumPosition
std::vector< std::shared_ptr< EigenmodeStrategy > > eigenmode_solvers
void projectSolidState(bool ci_active)
std::vector< readcon::ConFrame > pathFrames(std::optional< size_t > bandIndex=std::nullopt)
In-memory ConFrames with the same NEB stamps as writePathCon / neb.con.
const Matrix3d & cellForce(long image) const
double convergenceForce(void)
neb::TangentStrategy tangentStrat_
void adoptSessionProjection(long ciIndex)
Host bookkeeping for a band whose projected force came from the rgsaddle session: the highest interio...
std::vector< std::shared_ptr< AtomMatrix > > projectedForce
long imageOwner(std::size_t i) const noexcept
The identity band image i carries in a batch (forceBatchOwned): interior image i is i - 1,...
void setCIEnabled(bool enabled)
~NudgedElasticBand()=default
std::shared_ptr< Potential > pot
NudgedElasticBand::NEBStatus getStatus()
neb::ProjectionStrategy projectionStrat_
std::vector< double > extremumCurvature
bool solidState() const noexcept
std::vector< Matrix3d > projectedCellForce
ObjectiveFunction(const Parameters ¶msPassed)
std::variant< PlainEB, NEB_Projection, DNEB_Projection > ProjectionStrategy
std::variant< SimpleTangent, ImprovedTangent > TangentStrategy
RAII resource manager for the ARTn C library with global synchronization.
RAII helper for class-scoped logging.