to_mT function

Requirements.Units.Conversions.to_mT  ยท source

Icon of to_mT

Convert from tesla to millitesla

Extends Modelica.Units.Icons.Conversion

Convert from tesla to millitesla: mT := 1000*T. The input T is the value in tesla (type Modelica.Units.SI.MagneticFluxDensity), the output mT the value in millitesla (type NonSI.MagneticFluxDensity_mT). The inverse is from_mT.

The conversion is a multiplication by a constant factor, without offset, so it converts differences and rates alike; it is exact up to floating-point rounding and has no limits on the input. The function is inlined. A check model uses it to give a variable of the model in the unit in which the requirement states it; see Conversions. Examples.Elementary.Units.Conversions asserts it through the round trip to_mT(from_mT(7)).

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Inputs

NameTypeDescription
T inputSI.MagneticFluxDensityValue in tesla

Outputs

NameTypeDescription
mT outputNonSI.MagneticFluxDensity_mTValue in millitesla