Physics prior residual learning (predict deviation from potential flow Cp)#1208
Open
Physics prior residual learning (predict deviation from potential flow Cp)#1208
Conversation
|
I have read the CLA Document and I hereby sign the CLA 0 out of 2 committers have signed the CLA. |
Compute cp_proxy = -(dsdf_y / dsdf_norm) * is_surface from normalized dsdf gradient y-component. Append as input feature at position 25. Subtract from normalized pressure target during training; add back before denormalization during validation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Hypothesis
Predict residual from potential-flow Cp prior to reduce target variance. Lower variance target = easier learning and better generalization.
Implementation
cp_proxy = -(dsdf_y / dsdf_norm) * is_surface— y-component of unit surface normal (zero on volume nodes)fun_dimupdated fromX_DIM-2+1+32→X_DIM-2+1+32+1Results
W&B run:
fern/physics-prior-residual(8mxcs36w), best epoch 60, runtime 32 minAnalysis
The physics prior does not help on this branch. Key observations:
val_tandem_transfer is particularly high (38.94) — for tandem foils, the simple surface-normal prior doesn't capture the hydrodynamic interaction between the two foils. The model must predict a large residual for tandem cases, which likely hurts rather than helps.
The dsdf_y signal after normalization may not carry clean directional information since
x_mean/x_stdnormalization changes the scale of both dsdf components differently, distorting the unit normal direction.Single-foil splits improve slightly (in_dist 18.80, ood_cond 14.70) but not enough to compensate for tandem regression.
Recommendation
Close without merging. Potential improvement: compute cp_proxy from the raw (unnormalized) dsdf features, or restrict the prior subtraction to non-tandem samples only.