occ
Loading...
Searching...
No Matches
occ::units Namespace Reference

Functions

template<typename T>
constexpr auto radians (T x)
template<typename T>
constexpr auto degrees (T x)
template<typename T>
constexpr auto angstroms (T x)

Variables

constexpr double BOHR_TO_ANGSTROM = 0.52917721067
constexpr double ANGSTROM_TO_BOHR = 1.0 / BOHR_TO_ANGSTROM
constexpr double BOHR_TO_METER = BOHR_TO_ANGSTROM * 1e-10
constexpr double METER_TO_BOHR = 1.0 / BOHR_TO_METER
constexpr double AU_TO_JOULE = 4.3597447222071e-18
constexpr double JOULE_TO_AU = 1.0 / AU_TO_JOULE
constexpr double AU_TO_KJ_PER_MOL = AU_TO_JOULE * constants::avogadro<double> / 1000.0
constexpr double AU_TO_KCAL_PER_MOL = AU_TO_KJ_PER_MOL / 4.184
constexpr double AU_TO_EV = 27.211386245988
constexpr double AU_TO_KELVIN = AU_TO_JOULE / constants::boltzmann<double>
constexpr double EV_TO_JOULE = 1.602176634e-19
constexpr double EV_TO_KJ_PER_MOL = EV_TO_JOULE * constants::avogadro<double> / 1000.0
constexpr double KJ_PER_MOL_TO_EV = 1.0 / EV_TO_KJ_PER_MOL
constexpr double KJ_TO_KCAL = 1.0 / 4.184
constexpr double AU_TO_PER_CM = AU_TO_JOULE / (constants::planck<double> * constants::speed_of_light<double> * 100.0)
constexpr double PER_CM_TO_AU = 1.0 / AU_TO_PER_CM
constexpr double AMU_TO_KG = constants::molar_mass_constant<double> / constants::avogadro<double>
constexpr double AMU_TO_AU = 1822.888486209
constexpr double AU_TO_AMU = 1.0 / AMU_TO_AU
constexpr double SPEED_OF_LIGHT_CM_PER_S = constants::speed_of_light<double> * 100.0
constexpr double SPEED_OF_LIGHT_AU = 137.035999084
constexpr double PI = constants::pi<double>
constexpr double KJ_PER_MOL_PER_ANGSTROM3_TO_GPA = 1.6605388
constexpr double GPA_TO_PA = 1e9
constexpr double PA_TO_GPA = 1e-9
constexpr double G_CM3_TO_KG_M3 = 1000.0
constexpr double KG_M3_TO_G_CM3 = 1e-3

Function Documentation

◆ angstroms()

template<typename T>
auto occ::units::angstroms ( T x)
constexpr

◆ degrees()

template<typename T>
auto occ::units::degrees ( T x)
constexpr

◆ radians()

template<typename T>
auto occ::units::radians ( T x)
constexpr

Variable Documentation

◆ AMU_TO_AU

double occ::units::AMU_TO_AU = 1822.888486209
constexpr

◆ AMU_TO_KG

double occ::units::AMU_TO_KG = constants::molar_mass_constant<double> / constants::avogadro<double>
constexpr

◆ ANGSTROM_TO_BOHR

double occ::units::ANGSTROM_TO_BOHR = 1.0 / BOHR_TO_ANGSTROM
constexpr

◆ AU_TO_AMU

double occ::units::AU_TO_AMU = 1.0 / AMU_TO_AU
constexpr

◆ AU_TO_EV

double occ::units::AU_TO_EV = 27.211386245988
constexpr

◆ AU_TO_JOULE

double occ::units::AU_TO_JOULE = 4.3597447222071e-18
constexpr

◆ AU_TO_KCAL_PER_MOL

double occ::units::AU_TO_KCAL_PER_MOL = AU_TO_KJ_PER_MOL / 4.184
constexpr

◆ AU_TO_KELVIN

double occ::units::AU_TO_KELVIN = AU_TO_JOULE / constants::boltzmann<double>
constexpr

◆ AU_TO_KJ_PER_MOL

double occ::units::AU_TO_KJ_PER_MOL = AU_TO_JOULE * constants::avogadro<double> / 1000.0
constexpr

◆ AU_TO_PER_CM

double occ::units::AU_TO_PER_CM = AU_TO_JOULE / (constants::planck<double> * constants::speed_of_light<double> * 100.0)
constexpr

◆ BOHR_TO_ANGSTROM

double occ::units::BOHR_TO_ANGSTROM = 0.52917721067
constexpr

◆ BOHR_TO_METER

double occ::units::BOHR_TO_METER = BOHR_TO_ANGSTROM * 1e-10
constexpr

◆ EV_TO_JOULE

double occ::units::EV_TO_JOULE = 1.602176634e-19
constexpr

◆ EV_TO_KJ_PER_MOL

double occ::units::EV_TO_KJ_PER_MOL = EV_TO_JOULE * constants::avogadro<double> / 1000.0
constexpr

◆ G_CM3_TO_KG_M3

double occ::units::G_CM3_TO_KG_M3 = 1000.0
constexpr

◆ GPA_TO_PA

double occ::units::GPA_TO_PA = 1e9
constexpr

◆ JOULE_TO_AU

double occ::units::JOULE_TO_AU = 1.0 / AU_TO_JOULE
constexpr

◆ KG_M3_TO_G_CM3

double occ::units::KG_M3_TO_G_CM3 = 1e-3
constexpr

◆ KJ_PER_MOL_PER_ANGSTROM3_TO_GPA

double occ::units::KJ_PER_MOL_PER_ANGSTROM3_TO_GPA = 1.6605388
constexpr

◆ KJ_PER_MOL_TO_EV

double occ::units::KJ_PER_MOL_TO_EV = 1.0 / EV_TO_KJ_PER_MOL
constexpr

◆ KJ_TO_KCAL

double occ::units::KJ_TO_KCAL = 1.0 / 4.184
constexpr

◆ METER_TO_BOHR

double occ::units::METER_TO_BOHR = 1.0 / BOHR_TO_METER
constexpr

◆ PA_TO_GPA

double occ::units::PA_TO_GPA = 1e-9
constexpr

◆ PER_CM_TO_AU

double occ::units::PER_CM_TO_AU = 1.0 / AU_TO_PER_CM
constexpr

◆ PI

double occ::units::PI = constants::pi<double>
constexpr

◆ SPEED_OF_LIGHT_AU

double occ::units::SPEED_OF_LIGHT_AU = 137.035999084
constexpr

◆ SPEED_OF_LIGHT_CM_PER_S

double occ::units::SPEED_OF_LIGHT_CM_PER_S = constants::speed_of_light<double> * 100.0
constexpr