Simbody  3.7
Unit Conversion Factors

In each case here, given a value in the units mentioned first in the name, you should multiply by the given constant to produce the equivalent quantity measured in the units that appear second in the name. More...

## Macros

#define SimTK_NS_TO_S   1e-9L
Convert nanoseconds to seconds. More...

#define SimTK_S_TO_NS   1e9L
Convert seconds to nanoseconds. More...

#define SimTK_KCAL_TO_KJOULE   4.184L /* exact */
Convert Kcal to Kjoule (also Kcal/mol to Kjoule/mol). More...

#define SimTK_KJOULE_TO_KCAL   2.390057361376673040152963671128107074569789674952198852772466539e-1L
Convert Kjoule to Kcal (also Kjoule/mol to Kcal/mol). More...

#define SimTK_DALTON_TO_GRAM   1.66053886e-24L
Convert atomic mass unit (amu, Dalton) to g. More...

#define SimTK_E_TO_COULOMB   SimTK_CHARGE_OF_PROTON_IN_SI
Convert proton charge units to Coulombs. More...

#define SimTK_EV_TO_JOULE   SimTK_CHARGE_OF_PROTON_IN_SI
Convert electron volts to Joules. More...

## Detailed Description

In each case here, given a value in the units mentioned first in the name, you should multiply by the given constant to produce the equivalent quantity measured in the units that appear second in the name.

You can perform the reverse conversion by dividing by the constant, or by using another conversion constant with the names reversed if one is supplied here.

## Macro Definition Documentation

uncertainty
approximation of an exact quantity

uncertainty
approximation of an exact quantity

## ◆ SimTK_NS_TO_S

 #define SimTK_NS_TO_S   1e-9L

Convert nanoseconds to seconds.

uncertainty
exact
SimTK_S_TO_NS

## ◆ SimTK_S_TO_NS

 #define SimTK_S_TO_NS   1e9L

Convert seconds to nanoseconds.

uncertainty
exact
SimTK_NS_TO_S

## ◆ SimTK_KCAL_TO_KJOULE

 #define SimTK_KCAL_TO_KJOULE   4.184L /* exact */

Convert Kcal to Kjoule (also Kcal/mol to Kjoule/mol).

uncertainty
exact
SimTK_KJOULE_TO_KCAL

## ◆ SimTK_KJOULE_TO_KCAL

 #define SimTK_KJOULE_TO_KCAL   2.390057361376673040152963671128107074569789674952198852772466539e-1L

Convert Kjoule to Kcal (also Kjoule/mol to Kcal/mol).

uncertainty
approximation of an exact quantity
SimTK_KCAL_TO_KJOULE

## ◆ SimTK_DALTON_TO_GRAM

 #define SimTK_DALTON_TO_GRAM   1.66053886e-24L

Convert atomic mass unit (amu, Dalton) to g.

uncertainty
28e-32

## ◆ SimTK_E_TO_COULOMB

 #define SimTK_E_TO_COULOMB   SimTK_CHARGE_OF_PROTON_IN_SI

Convert proton charge units to Coulombs.

This is the same as the conversion from electron volts to Joules, and both are just the charge of a proton in SI units.

SimTK_CHARGE_OF_PROTON_IN_SI
SimTK_EV_TO_JOULE

## ◆ SimTK_EV_TO_JOULE

 #define SimTK_EV_TO_JOULE   SimTK_CHARGE_OF_PROTON_IN_SI

Convert electron volts to Joules.

This is the same as the conversion from proton charge units to Coulombs, and both are just the charge of a proton in SI units.