Repository navigation
Unified external aero recipe: rescale_geometry=true restores physical scale and position - #2344
Open
peterdsharpe wants to merge 6 commits into
Open
peterdsharpe wants to merge 6 commits into
peterdsharpe wants to merge 6 commits into
Conversation
…erMesh translation drivaer_ml_surface.yaml stores each case's CenterMesh center as global_data.center, and attach_and_save adds it back after the L_ref scaling, so saved geometry sits at its original position. Signed-off-by: Peter Sharpe <peterdsharpe@gmail.com>
Contributor
CODEOWNERS review mapCurrent for commit ⏳ @coreyjadams — 6 file(s)
⏳ @peterdsharpe — 6 file(s)
No CODEOWNER
Comment |
…nterMesh dataset's position The DrivAerML volume, HiLift surface and both SHIFT-SUV surface configs now store their CenterMesh center too, so attach_and_save restores their position as it does DrivAerML surface's. The YAML-introspection test is replaced by a behaviour test over the five configs: each one's own transforms on an off-origin case, then a save that must land back on the input points. Signed-off-by: Peter Sharpe <peterdsharpe@gmail.com>
rescale_geometry=true restores DrivAerML surface positionsrescale_geometry=true restores physical scale and position
peterdsharpe
marked this pull request as ready for review
December 2, 2026 21:47
Contributor
|
[Medium impact] This PR appears safe to merge. SummaryRestores saved geometry to its original scale and position when
No actionable issues found. Tests were inspected but not run. Reviews (1) · Last reviewed commit: "Unified external aero recipe: rescale_ge..." · Reviewed by Greptile |
…cale-center Signed-off-by: Peter Sharpe <peterdsharpe@gmail.com> # Conflicts: # CHANGELOG.md
…cale-center Signed-off-by: Peter Sharpe <peterdsharpe@gmail.com> # Conflicts: # CHANGELOG.md
melo-gonzo
self-requested a review
December 3, 2026 19:34
…cale-center Signed-off-by: Peter Sharpe <peterdsharpe@gmail.com> # Conflicts: # CHANGELOG.md # examples/cfd/external_aerodynamics/unified_external_aero_recipe/tests/test_infer.py
…cale-center Signed-off-by: Peter Sharpe <peterdsharpe@gmail.com> # Conflicts: # examples/cfd/external_aerodynamics/unified_external_aero_recipe/tests/test_infer.py
Collaborator
Author
|
/ok to test eccb1bc |
This branch has not been deployed
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.
The recipe's
infer.pywrites predictions onto each case's mesh. Withrescale_geometry=true, it multiplies coordinates byL_refbut leaves them centered at the origin.CenterMeshsubtracts each case's center, and onmainno dataset config stores it. So the saved geometry does not sit where the case's original mesh does.A synthetic case offset from the origin, run through each dataset config's own transforms and saved with
rescale_geometry=true:maindrivaer_ml_surfacedrivaer_ml_volumehighlift_surfaceshift_suv_estate_surfaceshift_suv_fastback_surfaceCenterMeshbeforeNonDimensionalizeByMetadata. Each now setsstore_center_as: center, so the center is stored in physical coordinates.attach_and_savescales byL_refas before, then translates byglobal_data.centerwhen it is present. This inverts the pipeline'sx* = (x - center) / L_ref.main's behaviour: its saved geometry stays centered at the origin.moment_centerstays in the centered frame. Theconf/infer.yamlcomment says so.The new
global_data.centerleaf reaches every model trained on these datasets. Apart from ISLA, they read only named leaves such asglobal_data.U_inf, or noglobal_dataat all. ISLA takesglobal_datawhole and selects the leaves it declares. With acenterleaf added to the synthetic surface and volume samples, collate and one forward pass succeed for all 21 configurations intest_synthetic_configs.py. DoMINO, not in that suite, reads onlyglobal_data.U_inf.Testing: a new test in
tests/test_infer.py, parametrized over the five configs, builds the table's case and checks the saved points. It fails onmainfor all five and passes here. A second new test checks that the saved points equalx * L_ref + center.test_merge_global_data.pynow expects thecenterleaf on the domain of both the plain and the ISLA surface sample. The recipe'stests/pass on CPU.Checklist
Dependencies
Review Process
All PRs are reviewed by the PhysicsNeMo team before merging.
Depending on which files are changed, GitHub may automatically assign a maintainer for review.
We are also testing AI-based code review tools (e.g., Greptile), which may add automated comments with a confidence score.
This score reflects the AI’s assessment of merge readiness and is not a qualitative judgment of your work, nor is
it an indication that the PR will be accepted / rejected.
AI-generated feedback should be reviewed critically for usefulness.
You are not required to respond to every AI comment, but they are intended to help both authors and reviewers.
Please react to Greptile comments with 👍 or 👎 to provide feedback on their accuracy.