to_mWb function

Requirements.Units.Conversions.to_mWb  ยท source

Icon of to_mWb

Convert from weber to milliweber

Extends Modelica.Units.Icons.Conversion

Convert from weber to milliweber: mWb := 1000*Wb. The input Wb is the value in weber (type Modelica.Units.SI.MagneticFlux), the output mWb the value in milliweber (type NonSI.MagneticFlux_mWb). The inverse is from_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 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_mWb(from_mWb(7)).

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

Inputs

NameTypeDescription
Wb inputSI.MagneticFluxValue in weber

Outputs

NameTypeDescription
mWb outputNonSI.MagneticFlux_mWbValue in milliweber