Remove incorrect effectiveness from discretized HX#74
Merged
Conversation
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
gdtroszak
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the
Effectivenesstype and computation from the discretized heat exchanger.The per-segment effectiveness calculation was incorrect for variable-property fluids (#73). It picked
C_minindependently per segment, so for fluids like sCO₂ near the critical point whereC_minflips between streams, more segments produced a largerq_maxdenominator and lower effectiveness — diverging instead of converging. The doc comments claimed the opposite.This is a breaking change to
Results,RecuperatorGivenUaOutput, andRecuperatorGivenOutletOutput. Consumers who need effectiveness can compute it externally by finding the outlet temperature wheremin_delta_t = 0usingRecuperatorGivenOutlet, as described in the issue.Closes #73