Skip to content

Commit

Permalink
chore: update zero efficiency error message (#258)
Browse files Browse the repository at this point in the history
ECALC-19
  • Loading branch information
markusrf committed Oct 30, 2023
1 parent e497245 commit 5be6fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libecalc/core/models/compressor/train/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def evaluate(
chart_area_flag = compressor_chart_head_and_efficiency_result.chart_area_flag

if polytropic_efficiency == 0.0:
raise ValueError("Division by zero error. Polytropic efficiency from compressor chart is 0.")
raise ValueError("Division by zero error. Efficiency from compressor chart is 0.")

# Enthalpy change
enthalpy_change_J_per_kg = polytropic_head_J_per_kg / polytropic_efficiency
Expand Down

0 comments on commit 5be6fe4

Please sign in to comment.