![]() |
QMCPACK
|
Go to the source code of this file.
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 | |
real | convert (real value, units units_in, units units_out) |
template<typename array > | |
void | convert_array (array &values, units units_in, units units_out) |
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... | |
Variables | |
const real | kb = 1.3806503e-23 |
const real | mol = 6.0221415e23 |
const real | m = 1.e0 |
const real | A = 1.e-10 * m |
const real | B = .52917720859e-10 * m |
const real | nm = 1.e-9 * m |
const real | pm = 1.e-12 * m |
const real | fm = 1.e-15 * m |
const real | s = 1.e0 |
const real | ms = 1.e-3 * s |
const real | ns = 1.e-9 * s |
const real | ps = 1.e-12 * s |
const real | fs = 1.e-15 * s |
const real | kg = 1.e0 |
const real | me = 9.10938291e-31 * kg |
const real | mp = 1.672621777e-27 * kg |
const real | amu = 1.660538921e-27 * kg |
const real | Da = amu |
const real | J = 1.e0 |
const real | eV = 1.60217646e-19 * J |
const real | Ry = 13.6056923 * eV |
const real | Ha = 2 * Ry |
const real | kJ_mol = 1000. * J / mol |
const real | K = J / kb |
const real | C = 1.e0 |
const real | e = 1.60217646e-19 * C |
const real | Pa = 1.e0 |
const real | bar = 1.e5 * Pa |
const real | Mbar = 1.e6 * bar |
const real | GPa = 1.e9 * Pa |
const real | atm = 1.01325e5 * Pa |
const real | N = 1.e0 |
const real | pN = 1e-12 * N |
const real | unit_values [nunits] |