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

Add a new cost function to constrain the total current #89

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

zhucaoxiang
Copy link
Collaborator

Now, it is able to penalize the total current in coils with Ic=1. The formula is isum = ((SUM(I_i) - target_isum) / target_isum)**2. Users can use weight_isum to turn it on and the target current (unit in Ampere) for all coils WITH Ic=1 is specified by target_isum.

Using this new function, users can constrain the total poloidal current while letting the current in each coil differ.

@zhucaoxiang
Copy link
Collaborator Author

Merge for people to test.

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

Successfully merging this pull request may close these issues.

None yet

1 participant