Skip to content

Remove incorrect effectiveness from discretized HX#74

Merged
dyreby merged 1 commit into
mainfrom
fix/remove-discretized-hx-effectiveness
Mar 5, 2026
Merged

Remove incorrect effectiveness from discretized HX#74
dyreby merged 1 commit into
mainfrom
fix/remove-discretized-hx-effectiveness

Conversation

@dyreby

@dyreby dyreby commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Removes the Effectiveness type and computation from the discretized heat exchanger.

The per-segment effectiveness calculation was incorrect for variable-property fluids (#73). It picked C_min independently per segment, so for fluids like sCO₂ near the critical point where C_min flips between streams, more segments produced a larger q_max denominator and lower effectiveness — diverging instead of converging. The doc comments claimed the opposite.

This is a breaking change to Results, RecuperatorGivenUaOutput, and RecuperatorGivenOutletOutput. Consumers who need effectiveness can compute it externally by finding the outlet temperature where min_delta_t = 0 using RecuperatorGivenOutlet, as described in the issue.

Closes #73

The per-segment effectiveness calculation produced incorrect results for
variable-property fluids. Effectiveness decreased as segment count
increased — the opposite of what the doc comments claimed — because the
per-segment C_min sum cherry-picks the minimum stream independently per
segment, inflating q_max for fluids where C_min flips between streams.

Rather than replace the calculation with a correct but expensive
iterative approach, remove it entirely. Consumers who need effectiveness
can compute it externally using RecuperatorGivenOutlet to find the outlet
temperature where min_delta_t = 0.

Closes #73
@dyreby dyreby requested a review from gdtroszak March 5, 2026 03:08
@dyreby dyreby merged commit e5a73fa into main Mar 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discretized HX effectiveness is incorrect for variable-property fluids

2 participants