Simbody
Defines

Unit Conversion Factors

Preprocessor Macro Constants

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...

Defines

#define SimTK_RADIAN_TO_DEGREE   5.729577951308232087679815481410517033240547246656432154916024386e+1L
 Convert radians to degrees.
#define SimTK_DEGREE_TO_RADIAN   1.745329251994329576923690768488612713442871888541725456097191440e-2L
 Convert degrees to radians.
#define SimTK_NS_TO_S   1e-9L
 Convert nanoseconds to seconds.
#define SimTK_S_TO_NS   1e9L
 Convert seconds to nanoseconds.
#define SimTK_KCAL_TO_KJOULE   4.184L
 Convert Kcal to Kjoule (also Kcal/mol to Kjoule/mol).
#define SimTK_KJOULE_TO_KCAL   2.390057361376673040152963671128107074569789674952198852772466539e-1L
 Convert Kjoule to Kcal (also Kjoule/mol to Kcal/mol).
#define SimTK_DALTON_TO_GRAM   1.66053886e-24L
 Convert atomic mass unit (amu, Dalton) to g.
#define SimTK_E_TO_COULOMB   SimTK_CHARGE_OF_PROTON_IN_SI
 Convert proton charge units to Coulombs.
#define SimTK_EV_TO_JOULE   SimTK_CHARGE_OF_PROTON_IN_SI
 Convert electron volts to Joules.

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.


Define Documentation

#define SimTK_RADIAN_TO_DEGREE   5.729577951308232087679815481410517033240547246656432154916024386e+1L

Convert radians to degrees.

uncertainty
approximation of an exact quantity
See also:
SimTK_DEGREE_TO_RADIAN
#define SimTK_DEGREE_TO_RADIAN   1.745329251994329576923690768488612713442871888541725456097191440e-2L

Convert degrees to radians.

uncertainty
approximation of an exact quantity
See also:
SimTK_RADIAN_TO_DEGREE
#define SimTK_NS_TO_S   1e-9L

Convert nanoseconds to seconds.

uncertainty
exact
See also:
SimTK_S_TO_NS
#define SimTK_S_TO_NS   1e9L

Convert seconds to nanoseconds.

uncertainty
exact
See also:
SimTK_NS_TO_S
#define SimTK_KCAL_TO_KJOULE   4.184L

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

uncertainty
exact
See also:
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
See also:
SimTK_KCAL_TO_KJOULE
#define SimTK_DALTON_TO_GRAM   1.66053886e-24L

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

This is 1/NA (NA=avogadro's number).

uncertainty
28e-32
See also:
SimTK_AVOGADROS_NUMBER
#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.

See also:
SimTK_CHARGE_OF_PROTON_IN_SI
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.

See also:
SimTK_CHARGE_OF_PROTON_IN_SI
SimTK_E_TO_COULOMB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines