eOn 3.2.0
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
Lanczos.h
Go to the documentation of this file.
1
/*
2
** This file is part of eOn.
3
**
4
** SPDX-License-Identifier: BSD-3-Clause
5
**
6
** Copyright (c) 2010--present, eOn Development Team
7
** All rights reserved.
8
**
9
** Repo:
10
** https://github.com/TheochemUI/eOn
11
*/
12
#pragma once
13
#include "
Eigen.h
"
14
#include "
EonLogger.h
"
15
16
#include "
LowestEigenmode.h
"
17
#include "
Matter.h
"
18
#include "
Parameters.h
"
19
20
#include <memory>
21
22
namespace
eonc
{
23
24
// Lanczos method to find the lowest curvature mode.
25
// Default Krylov space = all free atoms ([Lanczos] phva_atoms = All).
26
// Optional mobile list (or phva_atoms) is the PHVA active set: free/fixed is
27
// the optimizer mask and is not redefined.
28
class
Lanczos
:
public
LowestEigenmode
{
29
30
public
:
31
Lanczos
(std::shared_ptr<Matter> matter,
const
Parameters
&
params
,
32
std::shared_ptr<Potential>
pot
);
33
~Lanczos
() =
default
;
34
void
compute
(std::shared_ptr<Matter> matter,
35
AtomMatrix
initialDirection)
override
;
38
void
compute
(std::shared_ptr<Matter> matter,
AtomMatrix
initialDirection,
39
const
VectorXi &mobileAtoms);
40
double
getEigenvalue
()
override
;
41
AtomMatrix
getEigenvector
()
override
;
44
void
evaluateWithProbe
(
const
std::shared_ptr<Matter> ¢re,
45
const
AtomMatrix
&direction)
override
;
46
47
private
:
48
// Displaced image evaluated together with its centre by
49
// evaluateWithProbe(); the first product of compute() takes it.
50
std::unique_ptr<Matter>
probe_
;
51
AtomMatrix
lowestEv
;
52
double
lowestEw
{0.0};
53
eonc::log::Scoped
log
;
54
};
55
56
}
// namespace eonc
Eigen.h
AtomMatrix
Eigen::Matrix< double, Eigen::Dynamic, 3, eOnStorageOrder > AtomMatrix
Definition
Eigen.h:37
EonLogger.h
LowestEigenmode.h
Matter.h
Parameters.h
eonc::Lanczos::~Lanczos
~Lanczos()=default
eonc::Lanczos::Lanczos
Lanczos(std::shared_ptr< Matter > matter, const Parameters ¶ms, std::shared_ptr< Potential > pot)
Definition
Lanczos.cpp:37
eonc::Lanczos::evaluateWithProbe
void evaluateWithProbe(const std::shared_ptr< Matter > ¢re, const AtomMatrix &direction) override
The probe is the first Krylov product's displaced image, for the one-sided product only.
Definition
Lanczos.cpp:75
eonc::Lanczos::lowestEv
AtomMatrix lowestEv
Definition
Lanczos.h:51
eonc::Lanczos::lowestEw
double lowestEw
Definition
Lanczos.h:52
eonc::Lanczos::getEigenvector
AtomMatrix getEigenvector() override
Definition
Lanczos.cpp:253
eonc::Lanczos::getEigenvalue
double getEigenvalue() override
Definition
Lanczos.cpp:251
eonc::Lanczos::compute
void compute(std::shared_ptr< Matter > matter, AtomMatrix initialDirection) override
Definition
Lanczos.cpp:45
eonc::Lanczos::probe_
std::unique_ptr< Matter > probe_
Definition
Lanczos.h:50
eonc::Lanczos::log
eonc::log::Scoped log
Definition
Lanczos.h:53
eonc::LowestEigenmode::params
const Parameters & params
Definition
LowestEigenmode.h:26
eonc::LowestEigenmode::pot
std::shared_ptr< Potential > pot
Definition
LowestEigenmode.h:25
eonc::LowestEigenmode::LowestEigenmode
LowestEigenmode(std::shared_ptr< Potential > potPassed, const Parameters ¶meters)
Definition
LowestEigenmode.h:41
eonc::Parameters
Definition
Parameters.h:35
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:23
eonc::log::Scoped
RAII helper for class-scoped logging.
Definition
EonLogger.h:238
include
eon
Lanczos.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf