Skip to content
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

Support for current profiles that set I(s) directly instead of I'(s). #470

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

daringli
Copy link
Contributor

Simsopt current assumes that for any current profile, curtor in the input file is given by the integral of the profile.
However, there are advanced profiles (see https://princetonuniversity.github.io/STELLOPT/VMEC%20Advanced%20Profiles) that set I(s) directly, i.e. the total current inside the flux-surface s. For such profiles, no integration is necessary. They are also often smoother than the current density, which might make it easier to represent them with fewer degrees of freedom and thus render them suitable for optimization.

This simple pull request implements support for such profiles by adding a code-path where curtor is set by the value of the profile at I(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant