Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::mlip::MLIPOutput Struct Reference

Output container for machine learning interatomic potential calculations. More...

#include <MLIPInterface.hpp>

Collaboration diagram for correlation::mlip::MLIPOutput:

Public Member Functions

std::span< const real_t > getLdos (size_t atom_idx) const noexcept
 Returns a const span over the LDOS spectrum for a specific atom.
std::span< real_t > getLdos (size_t atom_idx) noexcept
 Returns a mutable span over the LDOS spectrum for a specific atom.

Public Attributes

real_t total_energy {static_cast<real_t>(0.0)}
std::vector< real_t > per_atom_energy
std::vector< correlation::math::Vector3< real_t > > forces
correlation::math::Matrix3< real_t > stress
std::vector< real_t > ldos
size_t ldos_bins {0}
real_t ldos_e_min {static_cast<real_t>(-30.0)}
real_t ldos_e_max {static_cast<real_t>(15.0)}
real_t ldos_sigma {static_cast<real_t>(0.2)}
std::vector< real_t > charges
std::vector< correlation::math::Vector3< real_t > > magmoms
real_t energy_variance
std::vector< real_t > force_variances

Detailed Description

Output container for machine learning interatomic potential calculations.

Member Function Documentation

◆ getLdos() [1/2]

std::span< const real_t > correlation::mlip::MLIPOutput::getLdos ( size_t atom_idx) const
inlinenodiscardnoexcept

Returns a const span over the LDOS spectrum for a specific atom.

Parameters
atom_idxIndex of the target atom.
Returns
Const span over the energy bins.

◆ getLdos() [2/2]

std::span< real_t > correlation::mlip::MLIPOutput::getLdos ( size_t atom_idx)
inlinenodiscardnoexcept

Returns a mutable span over the LDOS spectrum for a specific atom.

Parameters
atom_idxIndex of the target atom.
Returns
Mutable span over the energy bins.

Member Data Documentation

◆ charges

std::vector<real_t> correlation::mlip::MLIPOutput::charges

Per-atom partial or Born effective charges (elementary charges e).

◆ energy_variance

real_t correlation::mlip::MLIPOutput::energy_variance
Initial value:
{
static_cast<real_t>(0.0),
}
double real_t
Definition Precision.hpp:18

Committee or ensemble energy prediction variance (eV^2).

◆ force_variances

std::vector<real_t> correlation::mlip::MLIPOutput::force_variances

Committee or ensemble per-atom force variance ((eV/A)^2).

◆ forces

std::vector<correlation::math::Vector3<real_t> > correlation::mlip::MLIPOutput::forces

Atomic forces acting on each atom.

◆ ldos

std::vector<real_t> correlation::mlip::MLIPOutput::ldos

Contiguous Local Density of States [N_atoms * N_bins].

◆ ldos_bins

size_t correlation::mlip::MLIPOutput::ldos_bins {0}

Number of energy bins in LDOS spectrum.

◆ ldos_e_max

real_t correlation::mlip::MLIPOutput::ldos_e_max {static_cast<real_t>(15.0)}

Upper energy bound of LDOS grid (eV).

◆ ldos_e_min

real_t correlation::mlip::MLIPOutput::ldos_e_min {static_cast<real_t>(-30.0)}

Lower energy bound of LDOS grid (eV).

◆ ldos_sigma

real_t correlation::mlip::MLIPOutput::ldos_sigma {static_cast<real_t>(0.2)}

Gaussian broadening width of LDOS grid (eV).

◆ magmoms

std::vector<correlation::math::Vector3<real_t> > correlation::mlip::MLIPOutput::magmoms

Per-atom site magnetic moment vectors (Bohr magnetons mu_B).

◆ per_atom_energy

std::vector<real_t> correlation::mlip::MLIPOutput::per_atom_energy

Site-resolved per-atom energy.

◆ stress

correlation::math::Matrix3<real_t> correlation::mlip::MLIPOutput::stress

Virial stress tensor.

◆ total_energy

real_t correlation::mlip::MLIPOutput::total_energy {static_cast<real_t>(0.0)}

Total energy of the system.


The documentation for this struct was generated from the following file: