[Hotfix 25.9]: [FXC-7485] Bypass PorousJump interface check for farfield/CV overlapping face pairs#2031
Merged
benflexcompute merged 1 commit intorelease-candidate/25.9from May 5, 2026
Conversation
…eld/CV overlapping face pairs Why: PorousJump validation rejected pairs where one surface was only in farfield enclosed_entities and the other only in some CustomVolume bounding_entities. Such pairs represent two distinct geometry faces that the mesher merges into an interface, so they should be allowed. The existing _is_farfield_custom_volume_interface helper only handled the case where a single dual-belonging face is referenced on both sides; it did not cover the more typical scenario of two overlapping faces, each exclusive to its zone. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
angranl-flex
approved these changes
May 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.
Summary
entity_pairspair spans two overlapping geometry faces, one only inAutomatedFarfield.enclosed_entitiesand the other only in aCustomVolume.bounding_entities. The mesher merges them into an interface, so the pair is valid input._is_farfield_custom_volume_interfacehelper only handled a different (and rarer) case: a single face referenced in both sides via dual-belonging. The new_is_farfield_to_custom_volume_pairhelper is added alongside it and the two cases are kept conceptually separate, each with its own docstring explaining the meshing behavior it corresponds to.Failing case before this fix
PorousJump(entity_pairs=[(Intake, inside5)], ...)where:Intakeis only in farfieldenclosed_entitiesinside5is only in CustomVolumebounding_entitiesprivate_attribute_is_interface=nullat the params/validation stagePreviously failed with
Boundary 'Intake' is not an interface. Now passes.Test plan
test_porousJump_farfield_to_custom_volume_paircovering both pair orderings + a negative case (two farfield-only surfaces)test_porousJump_cross_custom_volume_interfaceandtest_porousJump_farfield_custom_volume_interfacestill pass (negative cases still raise as expected)tests/simulation/params/test_validators_params.py(63 tests) passes locally(Replaces #2030 — same commit, branch renamed to follow
BenY/convention.)🤖 Generated with Claude Code
Note
Medium Risk
Adjusts
PorousJumpboundary validation to bypass interface enforcement for a new farfield/CustomVolume pairing case, which could allow previously-rejected (and potentially misclassified) surface pairs through; impact is limited to param validation pre-meshing.Overview
Updates
PorousJump.ensure_surface_existenceto skip the interface check not only for cross-CustomVolume and farfield/CV dual-belonging cases, but also when anentity_pairsentry spans two overlapping geometry faces where one face is farfield-only (AutomatedFarfield.enclosed_entities) and the other is CustomVolume-only (CustomVolume.bounding_entities).Adds a unit test (
test_porousJump_farfield_to_custom_volume_pair) covering both orderings of this farfield/CV pair and a negative case to ensure non-interface farfield-only pairs still raise.Reviewed by Cursor Bugbot for commit 12110bc. Bugbot is set up for automated code reviews on this repo. Configure here.