to_kJpkg function

Requirements.Units.Conversions.to_kJpkg  ยท source

Icon of to_kJpkg

Convert from joule per kilogram to kilojoule per kilogram

Extends Modelica.Units.Icons.Conversion

Convert from joule per kilogram to kilojoule per kilogram: kJpkg := (1/1000)*Jpkg. The input Jpkg is the value in joule per kilogram (type Modelica.Units.SI.SpecificEnergy), the output kJpkg the value in kilojoule per kilogram (type NonSI.SpecificEnergy_kJpkg). The inverse is from_kJpkg.

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_kJpkg(from_kJpkg(7)).

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

Inputs

NameTypeDescription
Jpkg inputSI.SpecificEnergyValue in joule per kilogram

Outputs

NameTypeDescription
kJpkg outputNonSI.SpecificEnergy_kJpkgValue in kilojoule per kilogram