.. index:: pair: namespace; forcefields::unit_system .. _doxid-namespaceforcefields_1_1unit__system: namespace forcefields::unit_system ================================== .. toctree:: :hidden: Overview ~~~~~~~~ Physical constants and unit conversion. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace unit_system { // global variables const double :target:`R_gas` = 8.314472; const double :target:`k_boltzmann` = 1.3806505e-23; const double :target:`Na_avogadro` = 6.0221415e23; const double :target:`calory` = 4.1868; const double :target:`e_charge` = 1.60217653e-19; const double :target:`debye` = 3.33564e-30; const double :ref:`one_over_4_pi_epsilon0` = 8.98755178495272255e+09; const double :ref:`sqrt_one_over_4_pi_epsilon0` = 9.48026992492973368e+04; const double :target:`pi` = 3.14159265358979312; const double :target:`MOL` = Na_avogadro; const double :target:`DEGREE` = pi / 180; const char :target:`LENGTH`[] = "A"; const char :target:`TIME`[] = "fs"; const char :target:`MASS`[] = "eV A^-2 fs^2"; const char :target:`CURRENT`[] = "e/fs"; const char :target:`VELOCITY`[] = "A fs^-1"; const char :target:`ACCELERATION`[] = "A fs^-2"; const char :target:`FORCE`[] = "eV/A"; const char :target:`ENERGY`[] = "eV"; const char :target:`PRESSURE`[] = "eV A^-3"; const char :target:`CHARGE`[] = "(eV A)^(-1/2)"; const double :target:`METRE` = 1e10; const double :target:`KG` = 1e10 / e_charge; const double :target:`SECOND` = 1e15; const double :target:`AMPERE` = 1e-15 / e_charge; const char*const :target:`TEMPERATURE` = ENERGY; const double :target:`METRE_PER_SECOND` = METRE / SECOND; const double :target:`METRE_PER_SECOND2` = METRE_PER_SECOND / SECOND; const double :target:`NEWTON` = KG* METRE_PER_SECOND2; const double :target:`JOULE` = NEWTON* METRE; const double :target:`COULOMB` = AMPERE* SECOND; const double :target:`WATT` = JOULE / SECOND; const double :target:`VOLT` = WATT / AMPERE; const double :target:`KELVIN` = k_boltzmann* JOULE; const double :target:`KILO` = 1e3; const double :target:`NANO` = 1e-9; const double :target:`FEMTO` = 1e-15; const double :target:`NM` = NANO* METRE; const double :target:`GRAM` = KG / KILO; const double :target:`GRAM_PER_MOL` = GRAM / MOL; const double :target:`G_PER_MOL` = GRAM_PER_MOL; const double :target:`KJ_PER_MOL` = KILO* JOULE / MOL; const double :target:`KJ` = KILO* JOULE; const double :target:`FS` = FEMTO* SECOND; const double :target:`ANGSTROM` = 1e-10* METRE; const double :target:`ANGSTROM2` = ANGSTROM* ANGSTROM; const double :target:`ANGSTROM3` = ANGSTROM* ANGSTROM* ANGSTROM; const double :target:`ECHARGE` = e_charge* COULOMB; const double :target:`EV` = ECHARGE* VOLT; const double :target:`CALORY` = calory* JOULE; const double :target:`KCAL_PER_MOL` = KILO* CALORY / MOL; const double :target:`BOHR` = 5.291772108e-11* METRE; const double :target:`HARTREE` = 4.35974417e-18* JOULE; const double :target:`ERGS` = 1e-7* JOULE; const double :target:`ONE_OVER_4_PI_EPSILON0` = :ref:`one_over_4_pi_epsilon0`* METRE* JOULE / COULOMB / COULOMB; } // namespace unit_system .. _details-namespaceforcefields_1_1unit__system: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Physical constants and unit conversion. Global Variables ---------------- .. index:: pair: variable; one_over_4_pi_epsilon0 .. _doxid-namespaceforcefields_1_1unit__system_1a942fdd56ff6b1014b3d43de2301a0579: .. ref-code-block:: cpp :class: doxyrest-title-code-block const double one_over_4_pi_epsilon0 = 8.98755178495272255e+09 This is the quantity 1/(4\*pi\*epsilon0) in SI units. .. index:: pair: variable; sqrt_one_over_4_pi_epsilon0 .. _doxid-namespaceforcefields_1_1unit__system_1a71889d7c431221d4ca1a11f4a8c12188: .. ref-code-block:: cpp :class: doxyrest-title-code-block const double sqrt_one_over_4_pi_epsilon0 = 9.48026992492973368e+04 This is the quantity 1/sqrt(4\*pi\*epsilon0) in SI units.