SBConstant#
This class provides a set of standard physical constants. You can access them in the following way:
SBConstant.Pi
SBConstant.Pi * SBConstant.RadToDeg
SBConstant.kB
See also
SAMSON SDK: SBDQuantityConstant
- class samson.SBConstant#
Bases:
pybind11_object
This class holds several useful physical constants.
- static getDegreesFromRadians(angle: samson.SBQuantity.unitsSI) samson.SBQuantity.unitsSI #
Converts radians in degrees in the interval [-180, 180]
- Parameters:
angle (samson.SBQuantity) – An angle in radians
- Returns:
An angle in degrees in the interval [-180, 180]
- Return type:
samson.SBQuantity
- DegToRad = 0.017453292519943295#
- NA = 6.02214e+23 mol^-1#
- Pi = 3.141592653589793#
- RadToDeg = 57.29577951308232#
- avogadroConstant = 6.02214e+23 mol^-1#
- bohrRadius = 52.9177 pm#
- boltzmannConstant = 0.0138065 pm^2.yg.fs^-2.K^-1#
- c = 2.99792e+08 m.s^-1#
- coulombConstant = 8.98755e+09 m^3.kg.s^-4.A^-2#
- electronMass = 0.000910938 yg#
- kB = 0.0138065 pm^2.yg.fs^-2.K^-1#
- neutronMass = 1.67493 yg#
- protonMass = 1.67262 yg#
- speedOfLight = 2.99792e+08 m.s^-1#