to_kvar function
Requirements.Units.Conversions.to_kvar
ยท source
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
| Name | Type | Description |
|---|---|---|
var input | SI.ReactivePower | Value in var |
Outputs
| Name | Type | Description |
|---|---|---|
kvar output | NonSI.ReactivePower_kvar | Value in kilovar |