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