to_mT function
Requirements.Units.Conversions.to_mT
ยท source
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
| Name | Type | Description |
|---|---|---|
T input | SI.MagneticFluxDensity | Value in tesla |
Outputs
| Name | Type | Description |
|---|---|---|
mT output | NonSI.MagneticFluxDensity_mT | Value in millitesla |