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

Updating tokamak_from_plasma to base vertical_build off of inboard bu… #352

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

tokasamwin
Copy link
Contributor

To address the issue of inboard build clashes from vertical build being based on outboard radial build.

Sorry for how many changes there are - it's the standard spaces vs tabs debacle. Relevant changes are on lines 179-184 original, 179-188 updated.

…ild rather than outboard build. When the outboard build is larger than the inboard build, the two options are:

1. Thicknesses to increase on inboard vertical runs (upper-left quadrant in +r being right, +z being up), which causes clashes with central solenoid/VV/TF coil items placed inboard of the IB shield/blanket
2. Thicknesses to increase on outboard vertical runs (upper right quadrant), which pushes out outer blanket. This pushes out the outboard build, which doesn't lead to clashes and is closer to design goals for tokamaks.

The other point is that increased thickness should match where neutron doses tend to be higher, which is more pronounced on the outboard side away from the upper/lower (i.e. divertor) regions
@shimwell
Copy link
Member

Many thanks for putting in a PR to fix this,
I don't really mind tabs or spaces but I think it is best to keep the code all in the same format.
We have spaces through out this repo so perhaps to keep everything consistent we can try to keep spaces in all the files.
Are you able to change the PR to space based indentation?

@tokasamwin
Copy link
Contributor Author

Sure thing. I'll make another commit later today

@tokasamwin tokasamwin closed this Oct 14, 2024
@tokasamwin tokasamwin reopened this Oct 14, 2024
@shimwell
Copy link
Member

shimwell commented Oct 15, 2024

Many thanks for this fix, I've run it locally and it looks much better.

@shimwell shimwell merged commit ff32ec1 into fusion-energy:main Oct 15, 2024
2 checks passed
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