Simbody  3.7

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_RADIAN_TO_DEGREE   5.729577951308232087679815481410517033240547246656432154916024386e+1L
 Convert radians to degrees. More...
 
#define SimTK_DEGREE_TO_RADIAN   1.745329251994329576923690768488612713442871888541725456097191440e-2L
 Convert degrees to radians. More...
 
#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

◆ SimTK_RADIAN_TO_DEGREE

#define SimTK_RADIAN_TO_DEGREE   5.729577951308232087679815481410517033240547246656432154916024386e+1L

Convert radians to degrees.

uncertainty
approximation of an exact quantity
See also
SimTK_DEGREE_TO_RADIAN

◆ 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

◆ SimTK_NS_TO_S

#define SimTK_NS_TO_S   1e-9L

Convert nanoseconds to seconds.

uncertainty
exact
See also
SimTK_S_TO_NS

◆ SimTK_S_TO_NS

#define SimTK_S_TO_NS   1e9L

Convert seconds to nanoseconds.

uncertainty
exact
See also
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
See also
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
See also
SimTK_KCAL_TO_KJOULE

◆ SimTK_DALTON_TO_GRAM

#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

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

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

See also
SimTK_CHARGE_OF_PROTON_IN_SI
SimTK_E_TO_COULOMB