to_mH function
Requirements.Units.Conversions.to_mH
ยท source
Convert from henry to millihenry
Extends Modelica.Units.Icons.Conversion
Convert from henry to millihenry: mH := 1000*H. The input H is the value in henry (type Modelica.Units.SI.Inductance), the output mH the value in millihenry (type NonSI.Inductance_mH). The inverse is from_mH.
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_mH(from_mH(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
H input | SI.Inductance | Value in henry |
Outputs
| Name | Type | Description |
|---|---|---|
mH output | NonSI.Inductance_mH | Value in millihenry |