Loading...
Searching...
No Matches
eonc::tunneling::EnergyBias Class Reference

delta sigma(xi) between two minima, xi = (q - start) . More...

#include <Tunneling.h>

Public Member Functions

 EnergyBias (const VectorXd &start, const VectorXd &end, double delta)
double value (const VectorXd &q) const
VectorXd gradient (const VectorXd &q) const
MatrixXd hessian (const VectorXd &q) const
double delta () const

Private Member Functions

double xi (const VectorXd &q) const

Private Attributes

VectorXd start_
VectorXd d_
double dd_ = 0.0
double delta_ = 0.0

Detailed Description

delta sigma(xi) between two minima, xi = (q - start) .

d / |d|^2 with d = end - start, and sigma = 6 xi^5 - 15 xi^4 + 10 xi^3 clamped to [0, 1]. sigma, sigma' and sigma'' vanish at both ends, so V - bias keeps both minima stationary with their Hessians, and with delta = V(end) - V(start) it puts the two wells at one energy. The instanton of that surface gives the tunnelling matrix element of a pair whose minima differ in energy, the bias moved out of the path and into the asymmetry; it stays a perturbation while |delta| is small against the barrier, the regime of a two-level system.

Definition at line 308 of file Tunneling.h.

Constructor & Destructor Documentation

◆ EnergyBias()

eonc::tunneling::EnergyBias::EnergyBias ( const VectorXd & start,
const VectorXd & end,
double delta )

Definition at line 1286 of file Tunneling.cpp.

1287 : start_(start),
1288 d_(end - start),
1289 dd_(d_.squaredNorm()),
1290 delta_(delta) {
1291 if (start.size() != end.size() || !(dd_ > 0.0) || !std::isfinite(delta)) {
1292 throw std::invalid_argument(
1293 "EnergyBias: two distinct minima of one dimension and a finite delta");
1294 }
1295}

Member Function Documentation

◆ delta()

double eonc::tunneling::EnergyBias::delta ( ) const
inline

Definition at line 314 of file Tunneling.h.

314{ return delta_; }

◆ gradient()

VectorXd eonc::tunneling::EnergyBias::gradient ( const VectorXd & q) const

Definition at line 1306 of file Tunneling.cpp.

1306 {
1307 const double x = xi(q);
1308 return (delta_ * 30.0 * x * x * (1.0 - x) * (1.0 - x) / dd_) * d_;
1309}
double xi(const VectorXd &q) const

◆ hessian()

MatrixXd eonc::tunneling::EnergyBias::hessian ( const VectorXd & q) const

Definition at line 1311 of file Tunneling.cpp.

1311 {
1312 const double x = xi(q);
1313 return (delta_ * 60.0 * x * (1.0 - x) * (1.0 - 2.0 * x) / (dd_ * dd_)) *
1314 (d_ * d_.transpose());
1315}

◆ value()

double eonc::tunneling::EnergyBias::value ( const VectorXd & q) const

Definition at line 1301 of file Tunneling.cpp.

1301 {
1302 const double x = xi(q);
1303 return delta_ * x * x * x * (10.0 + x * (-15.0 + 6.0 * x));
1304}

◆ xi()

double eonc::tunneling::EnergyBias::xi ( const VectorXd & q) const
private

Definition at line 1297 of file Tunneling.cpp.

1297 {
1298 return std::clamp((q - start_).dot(d_) / dd_, 0.0, 1.0);
1299}
double dot(const double *x, const double *y, std::size_t n)
Round-to-nearest-even value of the exact sum of x[i] * y[i].

Member Data Documentation

◆ d_

VectorXd eonc::tunneling::EnergyBias::d_
private

Definition at line 318 of file Tunneling.h.

◆ dd_

double eonc::tunneling::EnergyBias::dd_ = 0.0
private

Definition at line 319 of file Tunneling.h.

◆ delta_

double eonc::tunneling::EnergyBias::delta_ = 0.0
private

Definition at line 320 of file Tunneling.h.

◆ start_

VectorXd eonc::tunneling::EnergyBias::start_
private

Definition at line 318 of file Tunneling.h.


The documentation for this class was generated from the following files: