Loading...
Searching...
No Matches
PeriodicBand.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
16
17#ifndef GPR_NEB_PERIODIC_BAND_H_
18#define GPR_NEB_PERIODIC_BAND_H_
19
20#include "gpr/neb/GPNEB.h"
21
22namespace gpr::neb {
23
25inline constexpr int kPeriodicBandImages = 8;
26
28inline constexpr double kPeriodicBandFmax = 0.05;
29
31inline constexpr int kPeriodicBandSteps = 1000;
32
35inline constexpr double kPeriodicBandMaxMove = 0.2;
36
38enum class PeriodicBandInitial { Linear = 0, Idpp = 1, Sidpp = 2 };
39
42{
43 GPNEBConfig cfg;
48 cfg.climbing_image = true;
51 cfg.use_idpp = false;
52 cfg.use_sidpp = false;
54 cfg.verbose = false;
55 cfg.force_stop_certificate = false;
56 return cfg;
57}
58
65 double spring_constant = 0.0;
66 bool climb = true;
67 unsigned seed = 0;
68 bool verbose = false;
70
72 {
74 out.config = periodicBandConfig();
75 out.spring_constant = out.config.spring_constant;
76 out.climb = out.config.climbing_image;
77 out.seed = out.config.seed;
78 out.verbose = out.config.verbose;
79 out.fmax = out.config.conv_tol;
80 out.steps = out.config.max_outer_iter;
81 out.max_move = out.config.lbfgs_max_move;
82 out.n_images = kPeriodicBandImages;
83 return out;
84 }
85};
86
87} // namespace gpr::neb
88
89#endif // GPR_NEB_PERIODIC_BAND_H_
GP-accelerated NEB: AIE and OIE variants.
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
constexpr int kPeriodicBandSteps
Outer-iteration budget of GPLocalBand.run.
constexpr double kPeriodicBandMaxMove
constexpr int kPeriodicBandImages
Images between the endpoints. GPLocalBand's constructor default.
GPNEBConfig periodicBandConfig()
GPNEBConfig of a periodic local band before the geometry is attached.
PeriodicBandInitial
How the initial path is built.
constexpr double kPeriodicBandFmax
Force tolerance of GPLocalBand.run, eV/Angstrom.
Configuration for GP-NEB.
Definition GPNEB.h:246
bool remove_molecular_rigid_motion
Definition GPNEB.h:379
double lbfgs_max_move
Definition GPNEB.h:960
bool force_stop_certificate
Definition GPNEB.h:847
bool climbing_image_converged_only
Definition GPNEB.h:328
double spring_constant
Definition GPNEB.h:313
double spring_constant_min
Definition GPNEB.h:315
The numbers a caller reads without building a band.
static PeriodicBandDefaults make()