from_MOhm function
Requirements.Units.Conversions.from_MOhm
ยท source
Convert from megohm to ohm
Extends Modelica.Units.Icons.Conversion
Convert from megohm to ohm: Ohm := 1000000*MOhm. The input MOhm is the value in megohm (type NonSI.Resistance_MOhm), the output Ohm the value in ohm (type Modelica.Units.SI.Resistance). The inverse is to_MOhm.
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 write a value of a requirement in the unit in which the requirement states it, from_MOhm(<value as written>), so that the model reads like the statement; see Conversions. Examples.Elementary.Units.Conversions asserts its factor and the round trip to_MOhm(from_MOhm(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
MOhm input | NonSI.Resistance_MOhm | Value in megohm |
Outputs
| Name | Type | Description |
|---|---|---|
Ohm output | SI.Resistance | Value in ohm |