-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparent mismatch between ballooning objective output and direct calculation of growth rates #1424
Comments
Different normalizations due to different values of data["a"] The easiest fix would be do exactly what the objective does: calculate "a" on a boundary grid and do I'll create a hotfix and add a test today. |
Actually the data["a"] in the objective is incorrect and I can't figure out the reason. Have you seen this before? Could "constants" be causing issues? |
I thought stuff like |
What I mean by "a" the effective minor radius which only depends on the boundary shape. Why would it need a quadrature(volume) grid? We just calculate the effective A(z) on the boundary and from that, calculate "a". |
DESC/desc/compute/_geometry.py Lines 154 to 180 in 4fd41f1
I think to only use a boundary grid needs #1094 |
Ok, then let me use quadrature grid for "a" inside the BallooningObjective. For calculating the eigenvalue using eq.compute, I'll pass "a" as data computed on a quadrature grid. |
The documentation for adding objectives would benefit from a section that tells the developer to make sure their dependencies are computed on the right grids, as it is not done automatically as is done through |
Resolves #1424 (#1424 (comment)) and resolves #1614.
setup:
We expect the following 3 to give the same answer since the objective has target=0 and weight=1
which gives
which seems fine
But if we then compute the growth rates directly and apply the same reduction as in the objective function:
gives
which is way smaller. Am I missing something?
The text was updated successfully, but these errors were encountered: