to_kvar function

Requirements.Units.Conversions.to_kvar  ยท source

Icon of to_kvar

Convert from var to kilovar

Extends Modelica.Units.Icons.Conversion

Convert from var to kilovar: kvar := (1/1000)*var. The input var is the value in var (type Modelica.Units.SI.ReactivePower), the output kvar the value in kilovar (type NonSI.ReactivePower_kvar). The inverse is from_kvar.

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_kvar(from_kvar(7)).

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

Inputs

NameTypeDescription
var inputSI.ReactivePowerValue in var

Outputs

NameTypeDescription
kvar outputNonSI.ReactivePower_kvarValue in kilovar