to_kJpkgK function
Requirements.Units.Conversions.to_kJpkgK
ยท source
Convert from joule per kilogram kelvin to kilojoule per kilogram kelvin
Extends Modelica.Units.Icons.Conversion
Convert from joule per kilogram kelvin to kilojoule per kilogram kelvin: kJ_kgK := (1/1000)*J_kgK. The input J_kgK is the value in joule per kilogram kelvin (type Modelica.Units.SI.SpecificHeatCapacity), the output kJ_kgK the value in kilojoule per kilogram kelvin (type NonSI.SpecificHeatCapacity_kJpkgK). The inverse is from_kJpkgK.
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_kJpkgK(from_kJpkgK(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
J_kgK input | SI.SpecificHeatCapacity | Value in joule per kilogram kelvin |
Outputs
| Name | Type | Description |
|---|---|---|
kJ_kgK output | NonSI.SpecificHeatCapacity_kJpkgK | Value in kilojoule per kilogram kelvin |