![]() |
QMCPACK
|
Namespaces | |
charge | |
constants | |
count | |
distance | |
energy | |
force | |
mass | |
pressure | |
time | |
Typedefs | |
using | real = QMCTraits::RealType |
Enumerations | |
enum | units { mol = 0, A, B, m, nm, pm, fm, s, ms, ns, ps, fs, kg, me, mp, amu, Da, J, eV, Ry, Ha, kJ_mol, K, C, e, Pa, bar, Mbar, GPa, atm, N, pN, mole, angstrom, bohr, meter, nanometer, picometer, femtometer, second, millisecond, nanosecond, picosecond, femtosecond, kilogram, electron_mass, proton_mass, atomic_mass_unit, dalton, joule, electron_volt, rydberg, hartree, kilojoule_per_mole, kelvin, coulomb, proton_charge, pascal, megabar, gigapascal, atmosphere, newton, piconewton, nunits } |
Functions | |
units | count_unit (const std::string &su) |
convert from std::string to count unit More... | |
units | distance_unit (const std::string &su) |
convert from std::string to distance unit More... | |
units | time_unit (const std::string &su) |
convert from std::string to time unit More... | |
units | mass_unit (const std::string &su) |
convert from std::string to mass unit More... | |
units | energy_unit (const std::string &su) |
convert from std::string to energy unit More... | |
units | charge_unit (const std::string &su) |
convert from std::string to charge unit More... | |
units | pressure_unit (const std::string &su) |
convert from std::string to pressure unit More... | |
units | force_unit (const std::string &su) |
convert from std::string to force unit More... | |
real | convert (real value, units units_in, units units_out) |
template<typename array > | |
void | convert_array (array &values, units units_in, units units_out) |
Variables | |
const real | unit_values [nunits] |
using real = QMCTraits::RealType |
Definition at line 23 of file unit_conversion.h.
enum units |
Definition at line 97 of file unit_conversion.h.
units charge_unit | ( | const std::string & | su | ) |
convert from std::string to charge unit
Definition at line 169 of file unit_conversion.cpp.
References APP_ABORT, C, and e.
Definition at line 177 of file unit_conversion.h.
References unit_values.
Referenced by OrbitalImages::write_orbital_xsf().
Definition at line 184 of file unit_conversion.h.
References unit_values.
Referenced by SPOSetInputInfo::put().
units count_unit | ( | const std::string & | su | ) |
convert from std::string to count unit
Definition at line 22 of file unit_conversion.cpp.
References APP_ABORT, and mol.
units distance_unit | ( | const std::string & | su | ) |
convert from std::string to distance unit
Definition at line 36 of file unit_conversion.cpp.
References A, APP_ABORT, B, fm, m, nm, and pm.
units energy_unit | ( | const std::string & | su | ) |
convert from std::string to energy unit
Definition at line 133 of file unit_conversion.cpp.
References APP_ABORT, eV, Ha, J, K, kJ_mol, and Ry.
Referenced by SPOSetInputInfo::put().
units force_unit | ( | const std::string & | su | ) |
convert from std::string to force unit
Definition at line 216 of file unit_conversion.cpp.
References APP_ABORT, N, and pN.
units mass_unit | ( | const std::string & | su | ) |
convert from std::string to mass unit
Definition at line 102 of file unit_conversion.cpp.
References amu, APP_ABORT, Da, kg, me, and mp.
units pressure_unit | ( | const std::string & | su | ) |
convert from std::string to pressure unit
Definition at line 187 of file unit_conversion.cpp.
References APP_ABORT, atm, bar, GPa, Mbar, and Pa.
units time_unit | ( | const std::string & | su | ) |
convert from std::string to time unit
Definition at line 71 of file unit_conversion.cpp.
References APP_ABORT, fs, ms, ns, ps, and s.
Definition at line 166 of file unit_conversion.h.
Referenced by convert(), and convert_array().