Modeller.unpackDimensionality


unpackDimensionality(packed, energyDim, forceDim, lengthDim, massDim, timeDim, temperatureDim, [perLengthDim])

Convert from a packed dimensionality back into its individual parts

packedintegerthe packed value
energyDiminteger exponent of energy
forceDiminteger exponent of force
lengthDiminteger exponent of length
massDiminteger exponent of mass
timeDiminteger exponent of time
temperatureDiminteger exponent of temperature
perLengthDimoptional integer 0 (the default) for most quantities. 1 for quantities that are 'per unit length' AND also have a non-zero exponent of length, such as "N.m/m". Similarly 2 and 3 for quantities that are per unit area or volume. It is possible to use a different UnitSet object to represent this 'extra' length/area/volume
Return valuenone 

See also packDimensionality

Back to Modeller

Back to Overview