Skip to main content

carnot_efficiency_kernel

Function carnot_efficiency_kernel 

Source
pub fn carnot_efficiency_kernel(
    temp_hot: Temperature,
    temp_cold: Temperature,
) -> Result<f64, PhysicsError>
Expand description

Calculates Carnot Efficiency: $\eta = 1 - \frac{T_C}{T_H}$.

§Arguments

  • temp_hot - Hot reservoir temperature $T_H$.
  • temp_cold - Cold reservoir temperature $T_C$.

§Returns

  • Ok(f64) - Efficiency $\eta$.