to_kPa function

Requirements.Units.Conversions.to_kPa  ยท source

Icon of to_kPa

Convert from pascal to kilopascal

Extends Modelica.Units.Icons.Conversion

Convert from pascal to kilopascal: kPa := Pa/1000. The input Pa is the value in pascal (type Modelica.Units.SI.Pressure), the output kPa the value in kilopascal (type NonSI.Pressure_kPa). The inverse is from_kPa.

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_kPa(from_kPa(7)).

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

Inputs

NameTypeDescription
Pa inputSI.PressureValue in pascal

Outputs

NameTypeDescription
kPa outputNonSI.Pressure_kPaValue in kilopascal