from_kW function
Requirements.Units.Conversions.from_kW
ยท source
Convert from kilowatt to watt
Extends Modelica.Units.Icons.Conversion
Convert from kilowatt to watt: W := kW*1000. The input kW is the value in kilowatt (type NonSI.Power_kW), the output W the value in watt (type Modelica.Units.SI.Power). The inverse is to_kW.
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_kW(<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_kW(from_kW(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
kW input | NonSI.Power_kW | Value in kilowatt |
Outputs
| Name | Type | Description |
|---|---|---|
W output | SI.Power | Value in watt |