to_kW function
Requirements.Units.Conversions.to_kW
ยท source
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
| Name | Type | Description |
|---|---|---|
W input | SI.Power | Value in watt |
Outputs
| Name | Type | Description |
|---|---|---|
kW output | NonSI.Power_kW | Value in kilowatt |