carnot_efficiency: Calculate Carnot efficiencies from heat types

View source: R/utilities.R

carnot_efficiencyR Documentation

Calculate Carnot efficiencies from heat types

Description

In societal exergy analysis, converting heat to exergy requires knowledge of the temperature of that heat and application of the Carnot efficiency. This function first converts heat types (e.g., "HTH.600.C") to temperatures by extracting the temperature from the middle of the string, in a unit-aware manner. Then, the Carnot efficiency is calculated from the temperature of the heat by applying the Carnot efficiency equation: abs(1 - T_0/T), where T_0 and T are expected to be in kelvin units.

Usage

carnot_efficiency(heat_types, T_0 = 298.15)

Arguments

heat_types

a string vector of heat types of the form "HTH.600.C"

T_0

dead state temperature in kelvin. Default is 298.15 kelvin (25 C).

Details

When the heat temperature is less than T_0, the Carnot efficiency is calculated as ⁠1 - (heat temperature)/T_0⁠.

T_0 can be supplied as a numeric vector of ambient temperatures of same length as heat_types.

Value

a numeric vector of Carnot efficiencies of same length as heat_types

See Also

extract_TK()

Examples

carnot_efficiency(c("HTH.600.C", "MTH.200.C", "MTH.100.C", "LTH.20.C", "LTH.-10.C"))
carnot_efficiency("LTH.-30.F")

MatthewHeun/IEATools documentation built on Feb. 6, 2024, 3:29 p.m.