to_kW function

Requirements.Units.Conversions.to_kW  ยท source

Icon of to_kW

Convert from watt to kilowatt

Extends Modelica.Units.Icons.Conversion

Convert from watt to kilowatt: kW := W/1000. The input W is the value in watt (type Modelica.Units.SI.Power), the output kW the value in kilowatt (type NonSI.Power_kW). The inverse is from_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 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_kW(from_kW(7)).

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

Inputs

NameTypeDescription
W inputSI.PowerValue in watt

Outputs

NameTypeDescription
kW outputNonSI.Power_kWValue in kilowatt