PrincetonUniversity / SPEC

The Stepped-Pressure Equilibrium Code, an advanced MRxMHD equilibrium solver.
https://princetonuniversity.github.io/SPEC/
GNU General Public License v3.0
24 stars 4 forks source link

Additional Routines #182

Closed salomon73 closed 1 year ago

salomon73 commented 2 years ago

I added a few Matlab routines essentially related to straight field line coordinates, as well as boozer coordinates. Others are related to the magnetic shear and enable to extract it from spec output, as well as scan this parameter over some plasma boundary Fourier modes.

Finally, some python routines were added, enabling to achieve Boozer coordinates transformation, and plot modB in this coordinates system, from SPEC output (.h5 file)

salomon73 commented 2 years ago

Only Utilities directory has been changed

abaillod commented 1 year ago

Hi Salomon,

I did not see you started a PR! I will add some reviewers so we can move forward with this. Thanks for the time you took to prepare these new tools.

I think we can safely merge this, it is only additional routines, and there are no modifications of other parts of the code. We should probably remove the file Utilities/matlabtools/scan_shear_auto_optim.m though, this is specific to the study you did.

salomon73 commented 1 year ago

Hi all, anything left that I should do in order for the pull request to be merged ? Best, Salomon

abaillod commented 1 year ago

I think you don't have the access to press the green button. I will do it for you!