Package ffx.utilities
Class Constants
java.lang.Object
ffx.utilities.Constants
Library class containing constants such as Avogadro's number.
SI units: kg, m, s, C, K, mol, lm
Our typical units: g/mol, Angstrom, psec, elementary charges (+1 proton charge), K, mol, N/A
- Since:
- 1.0
- Author:
- Jacob M. Litman, Michael J. Schnieders
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
ConstantANG_TO_NM=0.1
static final double
ConstantATM_TO_BAR=1.01325
static final double
Avogadro's number, defining the mol.static final double
Conversion from Bohr to Angstroms.static final double
Conversion from Bohr^2 to Angstroms^2.static final double
Boltzmann's constant in J/K, defining the Kelvin.static final double
Coulomb constant in units of kcal*Ang/(mol*electron^2)static final double
Degrees per radian.static final long
Hyperfine transition frequency of cesium in Hertz, defining the second.static final double
Permittivity of water at STP.static final double
Conversion from electron-Angstroms to Debye.static final double
Conversion from electron-Angstroms^2 to Buckinghams.static final double
Coulomb constant in units of kcal*Ang/(mol*electron^2), as derived from CODATA 2018 permittivity of free space measured at 8.8541878128*10^-12 F/mELECTRIC_CODATA_2018=332.063713299
static final double
Elementary charge in Coulombs, defining the Coulomb.static final double
ConstantFSEC_TO_PSEC=0.001
static final double
Convert Hartree to kcal/mol.static final int
Luminous efficacy in lm/W, defining the lumen.static final double
Boltzmann/ideal gas constant in units of g*Ang^2/(mol*psec^2*K).static final double
Conversion from kcal/mole to g*Ang**2/ps**2.static final double
ConstantKCAL_TO_KJ=4.184
static final double
ConstantKG_TO_GRAMS=1000
static final double
ConstantKJ_TO_KCAL=1.0 / KCAL_TO_KJ
static final double
ConstantLITERS_PER_CUBIC_ANGSTROM=1E-30
static final double
ConstantMETERS_TO_ANG=1E10
static final double
ConstantNM_TO_ANG=10
static final double
Convert nanoseconds to seconds.static final double
Planck constant in J*s, defining the kilogram (by defining the derived Joule).static final double
Conversion from kcal/mol/Ang^3 to Atm.static final double
ConstantPSEC_TO_FSEC=1000
static final double
Ideal gas constant in kcal/(mol*K)R = BOLTZMANN_SI * AVOGADRO * 0.001 * KJ_TO_KCAL
R = 0.0019872042586408316
static final double
Room temperature ~= 298.15 Kelvins.static final double
ConstantSEC_TO_PSEC=1E12
static final int
Speed of light in m/s, defining the meter. -
Method Summary
-
Field Details
-
DEL_V_Cs_SI
public static final long DEL_V_Cs_SIHyperfine transition frequency of cesium in Hertz, defining the second.DEL_V_Cs_SI = 9192631770L
- See Also:
-
SPEED_OF_LIGHT_SI
public static final int SPEED_OF_LIGHT_SISpeed of light in m/s, defining the meter.SPEED_OF_LIGHT_SI = 299792458
- See Also:
-
PLANCK_CONSTANT_SI
public static final double PLANCK_CONSTANT_SIPlanck constant in J*s, defining the kilogram (by defining the derived Joule).PLANCK_CONSTANT_SI = 6.62607015E-34d
- See Also:
-
ELEMENTARY_CHARGE_SI
public static final double ELEMENTARY_CHARGE_SIElementary charge in Coulombs, defining the Coulomb.ELEMENTARY_CHARGE_SI = 1.602176634E-19d
- See Also:
-
BOLTZMANN_SI
public static final double BOLTZMANN_SIBoltzmann's constant in J/K, defining the Kelvin.BOLTZMANN_SI = 1.380649E-23d
- See Also:
-
AVOGADRO
public static final double AVOGADROAvogadro's number, defining the mol.AVOGADRO = 6.02214076E23d
- See Also:
-
K_CD_SI
public static final int K_CD_SILuminous efficacy in lm/W, defining the lumen.K_CD_SI = 683
- See Also:
-
LITERS_PER_CUBIC_ANGSTROM
public static final double LITERS_PER_CUBIC_ANGSTROMConstantLITERS_PER_CUBIC_ANGSTROM=1E-30
- See Also:
-
ATM_TO_BAR
public static final double ATM_TO_BARConstantATM_TO_BAR=1.01325
- See Also:
-
KCAL_TO_KJ
public static final double KCAL_TO_KJConstantKCAL_TO_KJ=4.184
- See Also:
-
KJ_TO_KCAL
public static final double KJ_TO_KCALConstantKJ_TO_KCAL=1.0 / KCAL_TO_KJ
- See Also:
-
METERS_TO_ANG
public static final double METERS_TO_ANGConstantMETERS_TO_ANG=1E10
- See Also:
-
NM_TO_ANG
public static final double NM_TO_ANGConstantNM_TO_ANG=10
- See Also:
-
ANG_TO_NM
public static final double ANG_TO_NMConstantANG_TO_NM=0.1
- See Also:
-
SEC_TO_PSEC
public static final double SEC_TO_PSECConstantSEC_TO_PSEC=1E12
- See Also:
-
KG_TO_GRAMS
public static final double KG_TO_GRAMSConstantKG_TO_GRAMS=1000
- See Also:
-
PSEC_TO_FSEC
public static final double PSEC_TO_FSECConstantPSEC_TO_FSEC=1000
- See Also:
-
FSEC_TO_PSEC
public static final double FSEC_TO_PSECConstantFSEC_TO_PSEC=0.001
- See Also:
-
R
public static final double RIdeal gas constant in kcal/(mol*K)R = BOLTZMANN_SI * AVOGADRO * 0.001 * KJ_TO_KCAL
R = 0.0019872042586408316
- See Also:
-
kB
public static final double kBBoltzmann/ideal gas constant in units of g*Ang^2/(mol*psec^2*K).kB = BOLTZMANN_SI * KG_TO_GRAMS * METERS_TO_ANG * METERS_TO_ANG * AVOGADRO / (SEC_TO_PSEC * SEC_TO_PSEC)
kB = 0.831446261815324
- See Also:
-
PRESCON
public static final double PRESCONConversion from kcal/mol/Ang^3 to Atm.PRESCON=6.85684112e4
- See Also:
-
dWater
public static final double dWaterPermittivity of water at STP.dWater=78.3
- See Also:
-
NS2SEC
public static final double NS2SECConvert nanoseconds to seconds.NS2SEC=1e-9
- See Also:
-
ROOM_TEMPERATURE
public static final double ROOM_TEMPERATURERoom temperature ~= 298.15 Kelvins.ROOM_TEMPERATURE=298.15
- See Also:
-
ELECTRIC_CODATA_2018
public static final double ELECTRIC_CODATA_2018Coulomb constant in units of kcal*Ang/(mol*electron^2), as derived from CODATA 2018 permittivity of free space measured at 8.8541878128*10^-12 F/mELECTRIC_CODATA_2018=332.063713299
- See Also:
-
DEFAULT_ELECTRIC
public static final double DEFAULT_ELECTRICCoulomb constant in units of kcal*Ang/(mol*electron^2)Note -- this value varies slightly between force field definitions and can be set using the ELECTRIC property. As such, it's not updated to SI/CODATA standards, but rather kept up-to-date with the coulomb parameter in Tinker/source/units.f. At present, the Tinker value is a truncated version of the Coulomb constant derived from CODATA 2018.
DEFAULT_ELECTRIC=332.0637133
- See Also:
-
ELEC_ANG_TO_DEBYE
public static final double ELEC_ANG_TO_DEBYEConversion from electron-Angstroms to Debye.ELEC_ANG_TO_DEBYE=4.80321
- See Also:
-
ELEC_ANG2_TO_BUCKINGHAMS
public static final double ELEC_ANG2_TO_BUCKINGHAMSConversion from electron-Angstroms^2 to Buckinghams.ELEC_ANG2_TO_BUCKINGHAMS = ELEC_ANG_TO_DEBYE * ELEC_ANG_TO_DEBYE
- See Also:
-
KCAL_TO_GRAM_ANG2_PER_PS2
public static final double KCAL_TO_GRAM_ANG2_PER_PS2Conversion from kcal/mole to g*Ang**2/ps**2.KCAL_TO_GRAM_ANG2_PER_PS2=4.1840e2
- See Also:
-
BOHR
public static final double BOHRConversion from Bohr to Angstroms.BOHR=0.529177210903
- See Also:
-
BOHR2
public static final double BOHR2Conversion from Bohr^2 to Angstroms^2.BOHR2 = BOHR * BOHR
- See Also:
-
HARTREE_TO_KCAL_PER_MOL
public static final double HARTREE_TO_KCAL_PER_MOLConvert Hartree to kcal/mol.- See Also:
-
DEGREES_PER_RADIAN
public static final double DEGREES_PER_RADIANDegrees per radian.- See Also:
-