Skip to content

Addition of Stellarator to OPENPOPCON#31

Open
sushipand954 wants to merge 4 commits intohansec:mainfrom
sushipand954:feature/openpopcon-edits
Open

Addition of Stellarator to OPENPOPCON#31
sushipand954 wants to merge 4 commits intohansec:mainfrom
sushipand954:feature/openpopcon-edits

Conversation

@sushipand954
Copy link

Generalized openpopcon to stellarator geometry

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove .DS_Store files from the GitHub

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove .DS_Store files from the GitHub

.DS_Store Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove .DS_Store files from the GitHub

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove .DS_Store files from the GitHub

src/.DS_Store Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove .DS_Store files from the GitHub

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file? I think we should remove the .ipynb_checkpoints files from the GitHub. If they are important to running we should find a way to merge with the main example.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file? I think we should remove the .ipynb_checkpoints files from the GitHub. If they are important to running we should find a way to merge with the main example.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty file?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file? I think we should remove the .ipynb_checkpoints files from the GitHub. If they are important to running we should find a way to merge with the main example.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clean this up now that we don't need t3d?

@nelsonand nelsonand changed the title Feature/openpopcon edits Addition of Stellarator to OPENPOPCON Jan 12, 2026
@nelsonand
Copy link
Collaborator

@sushipand954 There are still a few unresolved comments from last time here

eg: https://github.com/hansec/OpenPOPCON/pull/31/files#r2617278022

Can you please clean these up?

Comment on lines +13 to +16
R: 4.55 # major radius in meters
a: 1.2 # minor radius in meters
kappa: 1.4 # elongation
delta: -0.5 # triangularity
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that these agree with the geometry in the vmec file


#----------------------
# I_P and q* can be calculated from each other. Pick one to specify:
I_P: 10. # plasma current in MA
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plasma current for a stellarator should be 0


#----------------------
# B_0 and B_coil can be calculated from each other. Pick one to specify:
B_0: 11.0 # on-axis magnetic field in Tesla
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure this agrees with the vmec file

Comment on lines +70 to +71
gfilename: "gMANTA"
profsfilename: "profsMANTA.csv"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These shouldn't be point to MANTA... this example should call the vmec file.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sushipand954 This is an important one - what is the difference between this and src/openpopcon.py

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping - Are these supposed to be the stellarator profiles? If so, call them as such

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there is some duplicate code between this and src/lib/test_vmec.py. We should avoid that to prevent the issue down the line of a user editing one and not the other. Can you clean this up?

My vote: all of the code needed to read the vmec equilibria should be in a file in src/lib. I agree that it would be good to keep a test_vmec script around, but this test should simply just call the class definition from the main script and employ it directly (avoid specifying any actual file-reading code twice.)

t3d
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping on this - do we really need t3d as a submodule?

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.

2 participants