-
Notifications
You must be signed in to change notification settings - Fork 27
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
Adding a separate factor for NFP to calculate umbilic configurations #819
Draft
rahulgaur104
wants to merge
369
commits into
master
Choose a base branch
from
rg/NFP_fac
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
369 commits
Select commit
Hold shift + click to select a range
95ce834
Wrap jit at outer level
unalmis fe0b099
Avoid unnecessary intermediate computation in computing ripple
unalmis 34ff754
Use uniform quadrature over pitch integral because fat banana orbits …
unalmis e6183c5
Add neemov gamma_c
unalmis c5b5d69
Fix units and naming schemes, remove jit around compute fun
unalmis c333a53
Merge branch 'bounce' into ripple
unalmis c264cff
Integrate over λ instead of b.
unalmis 599f895
making progress on neoclassical stuff
unalmis bc6b982
Fix math, results look kinda good now
unalmis beade78
Merge branch 'bounce' into ripple
unalmis 808806c
Fix units after change of variables
unalmis b87ca1a
Fix comment discussing Nemov and Velasco Gamma_c
unalmis 169af3a
Add neo comparison utitilies
unalmis f2687b6
Merge branch 'bounce' into ripple
unalmis 50a0810
Merge branch 'bounce' into ripple
unalmis a9feffd
Detach Gamma_c
unalmis b7bd540
adding new objectives.... testing now
rahulgaur104 f704326
Merge branch 'master' into rg/NFP_fac
rahulgaur104 34b0857
trying to change files without running
rahulgaur104 47ee84a
Merge branch 'rg/NFP_fac' of https://github.com/PlasmaControl/DESC in…
rahulgaur104 7d81004
adding some comments to desc/objectives/_geometry.py
rahulgaur104 f3a03f4
modifying __init__.py
rahulgaur104 02e6a25
small changes, bug fixes
rahulgaur104 a8162e0
small changes, bug fixes2
rahulgaur104 6dae027
small changes, bug fixes3
rahulgaur104 59dea2f
fixing mini bugs
rahulgaur104 ae700f0
Merge branch 'bounce' into ripple
unalmis b45c0dc
Update things after merge
unalmis 45493ae
Merge branch 'bounce' into ripple
unalmis f757c43
rerunning examples with NFP_umbilic_factor
rahulgaur104 bc17c5d
Merge branch 'bounce' into ripple
unalmis 72c61c1
removing NFP_umbilic_factor from equilibrium/surface/boozer plotting …
rahulgaur104 7f309ba
more changes, trying something else, curve parameters not changing at…
rahulgaur104 a2903cb
Normalize effective ripple by B_0 = max_tz |B| instead of B_0 = 1.
unalmis 9d58c4e
Merge branch 'bounce' into ripple
unalmis 545d76d
new changes, trying different things
rahulgaur104 c5b1fbf
Merge branch 'bounce' into ripple
unalmis 57d6f7f
Add test and notes
unalmis 2737194
Add baseline image test for W7-X effective ripple
unalmis 104b3b4
Reduce memory usage in tests_neoclassical
unalmis 4454500
Interpolate |∇ψ| κ_g together since it is smoother than κ_g alone.
unalmis db8b7be
Merge branch 'bounce' into ripple
unalmis 66b24a5
Add effective ripple objective function
unalmis bf981dd
Add effective ripple magnetic axis limit
unalmis 3c2aabd
Fix effective ripple label
unalmis 4db2468
Fix doc build, and reduce first order dependency amount for effective…
unalmis 7b5b7c0
Fix wrong alpha_t calculation and add grad(|B|)*b test
unalmis 2dbfeb0
Add quantities in attempt to debug length derivative along field line…
unalmis 2d01ef4
Add finite difference test or parallel gradient
unalmis cce1018
Merge branch 'bounce' into ripple
unalmis 12b39c9
Fix bug with sign of derivative in effective ripple...
unalmis 2e730bd
Partially undo previous commit --
unalmis d1c7d4a
Merge branch 'bounce' into ripple
unalmis 9c68b41
No more nan in effective ripple gradient
unalmis f0ac159
Merge branch 'bounce' into ripple
unalmis 6a3965c
Merge branch 'bounce' into ripple
unalmis fc1be1c
Add equilibrium.rtz_grid method to avoid circular import and update d…
unalmis 0319dca
Mark test_parallel_grad xfail
unalmis 9dc81b3
Merge branch 'bounce' into ripple
unalmis 38d82a7
average before integration to reduce computation
unalmis 381543f
Merge branch bounce into ripple
unalmis 54dab1a
Merge branch 'bounce' into ripple
unalmis 4b3983e
Do review suggestions, remove Quadrature grid from ripple objective
unalmis 3f75c09
Merge branch 'bounce' into ripple
unalmis ee437ea
Merge branch 'bounce' into ripple
unalmis 84a4508
merging master + resolving conflicts
rahulgaur104 fd16fb1
trying to pass tests
rahulgaur104 e60f186
trying to pass tests 2
rahulgaur104 470f94c
trying to pass tests 3
rahulgaur104 363826c
trying to pass tests 4, replacing example h5 files with master
rahulgaur104 b7ba63e
trying to pass tests 5
rahulgaur104 4cc2600
Merge branch 'master' into rg/NFP_fac
rahulgaur104 4d01a27
trying to pass tests 6
rahulgaur104 3545bf8
Merge branch 'rg/NFP_fac' of https://github.com/PlasmaControl/DESC in…
rahulgaur104 640c22b
Merge branch 'better_warning' into rg/NFP_fac
unalmis 9bf401f
Add setup method
unalmis d55002f
Merge branch 'better_warning' into rg/NFP_fac
unalmis 50e467d
trying to pass tests 7; adding NFP_umbilic_factor to FourierRZCurve o…
rahulgaur104 a79ff5b
trying to pass tests 8; small fixes to geometry and tests
rahulgaur104 f8d99c2
trying to pass tests 9
rahulgaur104 891df62
trying to pass tests 10
rahulgaur104 939c2ee
trying to pass tests 11; focusing on omnigenity
rahulgaur104 7f6e232
trying to pass tests 12; adding umbilic objective to test_objective_funs
rahulgaur104 dfabb73
trying to fix tests 13; adding NFP_umbilic_factor to more equilibria
rahulgaur104 a0f2e56
Merge branch 'master' into rg/NFP_fac
rahulgaur104 d64c149
trying to fix tests 14; correcting fourier calles from desc/basis.py
rahulgaur104 74f50e2
Merge branch 'rg/NFP_fac' of https://github.com/PlasmaControl/DESC in…
rahulgaur104 dd2af9f
trying to fix tests 15; fixed test_from_input_file
rahulgaur104 a58e3f6
Merge branch 'master' into rg/NFP_fac
rahulgaur104 11aa91e
trying to fix tests 16
rahulgaur104 6e74392
trying to fix tests 16; removing warning to forcefully fix tests
rahulgaur104 06a3810
trying to fix tests 17
rahulgaur104 06a054a
Merge branch 'master' into rg/NFP_fac
rahulgaur104 96ac3e9
Merge branch 'bounce' into ripple
unalmis 6827fcd
Fix comment
unalmis 0c995d1
Merge with Clebsch branch
unalmis ec4d2b9
Merge branch 'dp/hotfix-fourierrzcoil-from-values' into rg/NFP_fac
dpanici 98c6dc1
add umbilic fac to from values of rzcoil
dpanici d83ef84
Merge branch 'dp/hotfix-fourierrzcoil-from-values' into rg/NFP_fac
dpanici 227ef05
adding UmbilicHighCurvature3 to test a different idea
rahulgaur104 d324bdc
making changes suggested by @dpanici
rahulgaur104 33c3322
Merge branch 'master' into rg/NFP_fac
rahulgaur104 c417568
Replacing the old, bloated logic with a different idea
rahulgaur104 8a8d9de
Merge branch 'bounce' into ripple and clean up bloated test so that I…
unalmis 85ffee8
Merge branch 'master' into rg/NFP_fac
rahulgaur104 97e081f
Leftover merge conflicts
unalmis bbdc694
trying to fix tests 1
rahulgaur104 9f1371b
Merge branch 'clebsh_basis' into ripple
unalmis 1335af3
Merge branch 'master' into rg/NFP_fac
rahulgaur104 17a012c
generalizing to any umbilic factor value
rahulgaur104 bc903fc
Merge branch 'rg/NFP_fac' of https://github.com/PlasmaControl/DESC in…
rahulgaur104 6430b05
merging master _+ resolving conflicts
rahulgaur104 3e836a1
better way to tile phi_arr for an umbilic grid
rahulgaur104 4aab276
trying to pass tests 1
rahulgaur104 ae1bcdd
merging master again
rahulgaur104 a3b414c
modifying desc/grid.py and adding suggestion by @unalmis
rahulgaur104 ce1c280
Merge branch 'bounce' into ripple
unalmis a28dade
Remove no longer needed jitable argument in get_profiles
unalmis 8b4662f
Merge branch 'master' into rg/NFP_fac
rahulgaur104 4fec399
fixing bad merge
rahulgaur104 0fd56fb
Merge branch 'rg/NFP_fac' of https://github.com/PlasmaControl/DESC in…
rahulgaur104 fd4c90c
trying to pass tests 1
rahulgaur104 6c6d630
trying to pass tests 2
rahulgaur104 c434bc9
trying to pass tests 3
rahulgaur104 2a579e5
small changes; should pass all tests now!
rahulgaur104 72e87ad
Merge branch 'master' into rg/NFP_fac
rahulgaur104 ea6e0dc
Merge branch 'bounce' into ripple
unalmis 5409b40
Merge branch 'bounce' into ripple
unalmis 10ac679
Update master compute data
unalmis f54abb4
Update master compute data again
unalmis 5d61f58
Only get profiles in build of objective
unalmis 51f3eb9
Merge branch 'master' into rg/NFP_fac
rahulgaur104 3e49a8b
Merge branch 'bounce' into ripple
unalmis 84d1134
Merge branch 'bounce' into ripple
unalmis 68efde6
Add num_wells parameter to increase performance
unalmis a8bbbc9
Merge branch 'bounce' into ripple
unalmis 5fb62bf
Add num_wells to objective
unalmis c1c6c16
Merge branch 'bounce' into ripple
unalmis a603df2
Add num_wells as static variables to compute fun
unalmis 70a3e43
Use kwargs in simpson integral to match API change in quadax from las…
unalmis d2aa516
merging master + resolving conflicts; test_compute_everything still f…
rahulgaur104 661e6cd
Merge branch 'bounce' into ripple
unalmis 8e3da2a
Merge branch 'master' into rg/NFP_fac
rahulgaur104 aa736c6
trying to fix test_compute_everything
rahulgaur104 7fb4108
merging master
rahulgaur104 a74ecc7
Merge branch 'master' into rg/NFP_fac
rahulgaur104 b055f69
Merge branch 'master' into rg/NFP_fac
rahulgaur104 a3e1ba4
Take mean later since doesn't matter for speed and easier to do multi…
unalmis fb13f31
Merge branch 'bounce' into ripple
unalmis cbeda22
Merge branch 'ku/root_3d' into ripple
unalmis 0133d89
merging master manually
rahulgaur104 060c3df
trying to fix test compute everything
rahulgaur104 5b0393e
Merge branch 'bounce' into ripple
unalmis a0e5db1
Merge branch 'master' into rg/NFP_fac
rahulgaur104 85c0e5a
trying to fix tests 2
rahulgaur104 dc96488
fixing more tests
rahulgaur104 7fd499f
Merge branch 'master' into rg/NFP_fac
rahulgaur104 c1adee8
Update desc/grid.py 1
rahulgaur104 93cd89b
Update desc/grid.py 2
rahulgaur104 90f0cf8
merging master
rahulgaur104 bea5c58
some more changes
rahulgaur104 2f42c57
Merge branch 'master' into rg/NFP_fac
rahulgaur104 6d3c6c3
plotting re-change
rahulgaur104 b1441e1
merging master manually
rahulgaur104 70017ae
removing UmbilicLowCurvature and adding ability to have any rational …
rahulgaur104 5495574
merging master manually
rahulgaur104 b73582c
small changes; desc plotting does not allow FourierRZCurves!
rahulgaur104 36428d3
Merge branch 'bounce' into ripple
unalmis d952252
Merge branch 'bounce' into ripple
unalmis 4e9ebb9
Update effective ripple computation for all changes in upstream branches
unalmis c1e7aec
decoupling umbilic stuff from FourierRZCurve as much as possible; cre…
rahulgaur104 a526797
Merge branch 'master' into rg/NFP_fac
rahulgaur104 9ff79da
Merge branch 'utils' into ripple
unalmis 04a0d52
Remove test that is now redue to test with effective ripple
unalmis b383358
Merge branch 'bounce' into ripple
unalmis 654a5ff
Same as commit f596dc6 and d382df3
unalmis 9e80037
Fixing Pycharm's automated refactor
unalmis a93a6da
Merge branch 'master' into ripple
unalmis fb1fe2c
making more changes; adding a registered compute function A for umbil…
rahulgaur104 8bdcb8f
Merge branch 'rg/NFP_fac' of https://github.com/PlasmaControl/DESC in…
rahulgaur104 1833a89
commenting parametrization in the register compute function
rahulgaur104 0f319e0
Merge branch 'utils' into ripple
unalmis 8d5f3d3
Remove adaptive quadrature for now
unalmis 3b1ffc0
Merge branch 'utils' into ripple
unalmis 3b5441f
Allow kwargs to bounce.plot
unalmis fd914e8
Merge branch 'utils' into ripple
unalmis f2c26d9
Merge branch 'utils' into ripple
unalmis 9d981ff
Update effective ripple objective to work with recent changes to master
unalmis a841067
recent changes
rahulgaur104 f4a94f5
MAJOR REFACTORING HERE! CREATING AN UMBILICURVE CLASS INDEPENDENT OF …
rahulgaur104 1b17023
MAJOR REFACTORING HERE! CREATING AN UMBILICURVE CLASS INDEPENDENT OF …
rahulgaur104 6fdff0b
merging master manually
rahulgaur104 456d1a8
atone for pycharm's bad automated refactor commit number 3
unalmis a459f4e
changing the umbiliccurve API to directly take in phi and A
rahulgaur104 df484c0
pre-committing
rahulgaur104 fc8b393
Merge branch 'master' into ripple
f0uriest 598009f
Merge commit 'fc8b393' into ripple
unalmis d266505
Merge branch 'master' into ripple
unalmis 9a968e6
Compute quadrature nodes once outside objective.compute
unalmis b4151d9
Fix nan leak in reverse mode ad for bounce integral
unalmis 8b656f2
Fix comment that one poloidal transit is sufficient if axissymetric
unalmis 3a93117
Use _constants instead of constants
unalmis 52adba9
Improve quadrature over velocity coordiante for effective ripple
unalmis 8d9b605
Cleaner solution to b4151d9
unalmis 5bc4b35
Simplify computation of quad points
unalmis 6146dc4
Remove now unnecessary code
unalmis 0366137
Better quadrature for weakly singular bounce integrals
unalmis 6a46efb
fix comment about change of variable
unalmis bd68679
Use interior nodes only for more fair test
unalmis 06d5061
Add documentation on which quadrature to use
unalmis 53fd368
Merge branch 'master' into ripple
unalmis 454bf3b
Merge branch 'master' into ripple
unalmis 41f3727
Increase test_compute_everything tolerance
unalmis 6e3b0e7
Merge branch 'master' into ripple
unalmis e2b58c7
Removing period argument
unalmis 44ef80f
adding another objective to make umbilic curve field aligned
rahulgaur104 df0590b
Merge branch 'ku/fourier_bounce_part1' into ripple
unalmis 4756c38
Merge branch 'ku/fourier_bounce_part1' into ripple
unalmis 2073547
Avoid redundant computation of bounce points
unalmis e5d150c
Merge branch 'ku/fourier_bounce_part1' into ripple
unalmis 1edd349
Complete @f0uriest 's request to compare against Neo
unalmis 850001a
Add neo out file to desc repository
unalmis 0ae5c9a
Do remaining review suggestion
unalmis 8cb2a28
Fix linear interpolation for bad neo values
unalmis 21235b4
Fix neo script
unalmis 098db02
Merge branch 'ku/fourier_bounce_part1' into ripple
unalmis eb3370b
Merge branch 'ku/fourier_bounce_part1' into ripple
unalmis 56a88a8
Update _write_neo
unalmis 9e88270
Merge branch 'master' into ripple
unalmis 8840c9c
Review suggestions
unalmis 2dffde2
Add epsilon 3/2 and effective ripple as distinct
unalmis 73a6b48
Increase entropy of test compute everything to pass test
unalmis 6c1cd12
Fix DESC docs variable name
unalmis 5b4456d
Merge branch 'master' into ripple
unalmis 7d88eac
Simplify latex label
unalmis c819e32
Merge branch 'master' into ripple
unalmis 157e57b
Add chunk size option
unalmis 883b34d
Merge branch 'master' into ripple
unalmis 1b3b6f2
Fix name in test
unalmis a2a3d71
Merge branch 'master' into ripple
rahulgaur104 384670d
manually merging ripple into rg/NFP_fac
rahulgaur104 3e4c0ab
Review requests and refactor to avoid explicit broadcast
unalmis 998c830
Clean up
unalmis 499a6c7
Move changes from downstream branch here
unalmis 71b42bd
Merge branch 'master' into ripple
unalmis e5bfd38
Merge branch 'master' into ripple
rahulgaur104 1466bfb
manually merging ripple into rg/NFP_fac
rahulgaur104 ae939e9
Merge branch 'master' into ripple
unalmis 1e1089d
Merge branch 'ripple' into rg/NFP_fac
rahulgaur104 466e478
Merge branch 'master' into rg/NFP_fac
rahulgaur104 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may need to add logic to def _set_up to set this factor for old equilibrium. Sometimes it might be as simple as
self._NFP_umbilic_factor = self.NFP_umbilic_factor
The setup method will be called automatically when you load an old file with examples.get("W7-X"). (The code that does this is here
DESC/desc/io/optimizable_io.py
Line 75 in 4745460
You may need to do this for every object that adds the new NFP attribute