from_kJpkg function

Requirements.Units.Conversions.from_kJpkg  ยท source

Icon of from_kJpkg

Convert from kilojoule per kilogram to joule per kilogram

Extends Modelica.Units.Icons.Conversion

Convert from kilojoule per kilogram to joule per kilogram: Jpkg := 1000*kJpkg. The input kJpkg is the value in kilojoule per kilogram (type NonSI.SpecificEnergy_kJpkg), the output Jpkg the value in joule per kilogram (type Modelica.Units.SI.SpecificEnergy). The inverse is to_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 write a value of a requirement in the unit in which the requirement states it, from_kJpkg(<value as written>), so that the model reads like the statement; see Conversions. Examples.Elementary.Units.Conversions asserts its factor and the round trip to_kJpkg(from_kJpkg(7)).

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

Inputs

NameTypeDescription
kJpkg inputNonSI.SpecificEnergy_kJpkgValue in kilojoule per kilogram

Outputs

NameTypeDescription
Jpkg outputSI.SpecificEnergyValue in joule per kilogram