from_mWb function

Requirements.Units.Conversions.from_mWb  ยท source

Icon of from_mWb

Convert from milliweber to weber

Extends Modelica.Units.Icons.Conversion

Convert from milliweber to weber: Wb := (1/1000)*mWb. The input mWb is the value in milliweber (type NonSI.MagneticFlux_mWb), the output Wb the value in weber (type Modelica.Units.SI.MagneticFlux). The inverse is to_mWb.

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_mWb(<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_mWb(from_mWb(7)).

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

Inputs

NameTypeDescription
mWb inputNonSI.MagneticFlux_mWbValue in milliweber

Outputs

NameTypeDescription
Wb outputSI.MagneticFluxValue in weber