-
Notifications
You must be signed in to change notification settings - Fork 18
♻️ Refactor CS coil #4262
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
base: main
Are you sure you want to change the base?
♻️ Refactor CS coil #4262
Changes from all commits
c2b0246
f3a842d
1c116e3
2392be2
cae09dc
b736a02
2cc4fe9
15cd5ba
cf25008
c104b6a
ebca687
2784d3c
ead9cce
7c9f17c
5f925f3
f3e3861
3b1576b
3e2d4e4
7490951
b7c88ef
ebafb43
6c3c978
951f2be
41cc3df
51034bf
ce7e640
3e33e93
e97aa88
b01e3b1
39ad4a9
fcc432b
4218c94
691e184
df47454
3cd0b37
098de75
5e2e418
905b38f
27b0aac
b9af917
eb6a14e
d128a38
5ef3d42
7c9ef8f
6536bde
9d4d67f
5474f67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -33,7 +33,7 @@ This method calculates the CS geometry parameters. The CS is assumed to be a per | |||||
| 2. The half height of the CS is set relative to that of the inside height of the TF and can be scaled by changing the input value of `f_z_cs_tf_internal`: | ||||||
|
|
||||||
| $$ | ||||||
| \overbrace{z_{\text{CS,half}}}^{\texttt{z_cs_inside_half}} = \overbrace{z_{\text{TF,inside-half}}}^{\texttt{z_tf_inside_half}} \times \texttt{f_z_cs_tf_internal} | ||||||
| \overbrace{z_{\text{CS,half}}}^{\texttt{z_cs_half}} = \overbrace{z_{\text{TF,inside-half}}}^{\texttt{z_tf_inside_half}} \times \texttt{f_z_cs_tf_internal} | ||||||
| $$ | ||||||
|
|
||||||
| 3. The full height of the CS is thus simply given by | ||||||
|
|
@@ -42,17 +42,91 @@ This method calculates the CS geometry parameters. The CS is assumed to be a per | |||||
| \overbrace{dz_{\text{CS}}}^{\texttt{dz_cs_full}} = z_{\text{CS,half}} \times 2 | ||||||
| $$ | ||||||
|
|
||||||
| Along with the upper and lower dimensions: | ||||||
|
|
||||||
| $$ | ||||||
| z_{\text{CS,upper}} = z_{\text{CS,half}} | ||||||
| $$ | ||||||
|
|
||||||
| $$ | ||||||
| z_{\text{CS,lower}} = -z_{\text{CS,upper}} | ||||||
| $$ | ||||||
|
|
||||||
|
|
||||||
| 4. The outboard edge of the CS is given by: | ||||||
|
|
||||||
|
|
||||||
| $$ | ||||||
| r_{\text{CS,outer}} = r_{\text{CS,middle}} + \frac{dr_{\text{CS}}}{2} | ||||||
| $$ | ||||||
|
|
||||||
| 5. The full poloidal cross-sectional area is given by: | ||||||
| 5. The inboard edge of the CS is given by: | ||||||
|
|
||||||
| $$ | ||||||
| r_{\text{CS,inner}} = r_{\text{CS,outer}} - dr_{\text{CS}} | ||||||
| $$ | ||||||
|
|
||||||
| 6. The full radial width of the CS is given by: | ||||||
|
|
||||||
| $$ | ||||||
| dr_{\text{CS,full}} = 2 \times r_{\text{CS,outer}} | ||||||
| $$ | ||||||
|
|
||||||
|
|
||||||
| 7. The full poloidal cross-sectional area is given by: | ||||||
|
|
||||||
| $$ | ||||||
| \overbrace{A_{\text{CS,poloidal}}}^{\texttt{a_cs_poloidal}} = 2 \times dr_{\text{CS}} \times dz_{\text{CS}} | ||||||
| \overbrace{A_{\text{CS,poloidal}}}^{\texttt{a_cs_poloidal}} = dr_{\text{CS}} \times dz_{\text{CS}} | ||||||
| $$ | ||||||
|
|
||||||
| 8. The full top-down toroidal cross-sectional area is given by: | ||||||
|
|
||||||
| $$ | ||||||
| \overbrace{A_{\text{CS,toroidal}}}^{\texttt{a_cs_toroidal}} = \pi \left(r_{\text{CS,outer}}^2 - r_{\text{CS,inner}}^2 \right) | ||||||
| $$ | ||||||
|
|
||||||
| ------------ | ||||||
|
|
||||||
| ### EU-DEMO Turn Geometry | `calculate_cs_turn_geometry_eu_demo()` | ||||||
|
|
||||||
| This superconducting turn structure for the CS assumes a rectangular turn shape with a "stadium"-shaped cable area[^eu_demo_turn]. | ||||||
|
|
||||||
|
|
||||||
|  | ||||||
|
|
||||||
| The turn geometry is calculated as follows: | ||||||
|
|
||||||
| 1. The vertical height of the turn is given by: | ||||||
|
|
||||||
| $$ | ||||||
| dz_{\text{CS,turn}} = \sqrt{\frac{A_{\text{CS,turn}}}{\texttt{f_dr_dz_cs_turn}}} | ||||||
| $$ | ||||||
|
|
||||||
| $\texttt{f_dr_dz_cs_turn}$ is the intended length to height ratio of the turn | ||||||
|
|
||||||
| 2. The radial width or length of the turn is now given by: | ||||||
|
|
||||||
| $$ | ||||||
| dr_{\text{CS,turn}} = \texttt{f_dr_dz_cs_turn} \times dz_{\text{CS,turn}} | ||||||
| $$ | ||||||
|
|
||||||
| 3. The radius of the corners of the cable space is given by: | ||||||
|
|
||||||
| $$ | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this already scrolls across, could this eq be rendered in one line instead of in 2 lines? |
||||||
| r_{\text{CS,cable space corner}} = - \frac{dr_{\text{CS,turn}}-dz_{\text{CS,turn}}}{\pi} \\ | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| + \sqrt{\left(\frac{dr_{\text{CS,turn}}-dz_{\text{CS,turn}}}{\pi}\right)^2+ \frac{dr_{\text{CS,turn}}dz_{\text{CS,turn}}(4-\pi)r_{\text{CS,turn corners}}^2 - (A_{\text{CS,turn}}\times \texttt{f_a_cs_turn_steel})}{\pi}} | ||||||
| $$ | ||||||
|
|
||||||
| 4. The thickness of the conduit around the cable space is given by: | ||||||
|
|
||||||
| $$ | ||||||
| dz_{\text{CS,turn conduit}} = \frac{dz_{\text{CS,turn}}}{2} - r_{\text{CS,cable space corner}} | ||||||
| $$ | ||||||
|
|
||||||
| In this model the vertical and radial conduit thicknesses are equal so: | ||||||
|
|
||||||
| $$ | ||||||
| dr_{\text{CS,turn conduit}} = dz_{\text{CS,turn conduit}} | ||||||
| $$ | ||||||
|
|
||||||
|
|
||||||
|
|
@@ -66,21 +140,32 @@ This method calculates the CS geometry parameters. The CS is assumed to be a per | |||||
|
|
||||||
| ----------- | ||||||
|
|
||||||
| ### Self peak magnetic field | `calculate_cs_self_peak_magnetic_field()` | ||||||
| ### Self peak bore magnetic field | `calculate_cs_bore_magnetic_field()` | ||||||
|
|
||||||
| The general form for the field at the very centre of the central solenoid bore with uniform current density and rectangular cross-section is given by: | ||||||
| The self induced peak field at the central bore of a homogenous current density rectangular cross-section solenoid is given by: | ||||||
|
|
||||||
| $$ | ||||||
| B_0 = J_{\text{CS}}aF(\alpha,\beta) | ||||||
| B_0 = J_{\text{CS}}r_{\text{CS,inner}}F(\alpha,\beta) | ||||||
| $$ | ||||||
|
|
||||||
| $$ | ||||||
| F(\alpha,\beta) = \mu_0\beta \ln{\left[\frac{\alpha+\sqrt{\alpha^2+\beta^2}}{1+\sqrt{1+\beta^2}}\right]} | ||||||
| $$ | ||||||
|
|
||||||
| where $\alpha = \frac{r_{\text{CS,outer}}}{r_{\text{CS,inner}}}$, is the ratio of the outer and inner radii of the solenoid and $\beta = \frac{z_{\text{CS,half}}}{r_{\text{CS,outer}}}$, is the ratio of the solenoid half height to its inboard radius. | ||||||
| where $\alpha = \frac{r_{\text{CS,outer}}}{r_{\text{CS,inner}}}$, is the ratio of the outer and inner radii of the solenoid and $\beta = \frac{z_{\text{CS,half}}}{r_{\text{CS,inner}}}$, is the ratio of the solenoid half height to its inboard radius. | ||||||
|
|
||||||
| This is Equation 3.13 from "Case Studies in Superconducting Magnets"[^2]. | ||||||
|
|
||||||
| ------------- | ||||||
|
|
||||||
| The peak field at the bore of the central solenoid will not be the same as that felt by the conductors inside the structures. We require to know the peak field on the conductor if we are to design a superconducting central solenoid that has enough margin. Fits to data[^1] for different ranges of $\beta$ have been calculated as follows: | ||||||
| ### Self peak on coil magnetic field | `calculate_cs_self_peak_magnetic_field()` | ||||||
|
|
||||||
| The peak field at the bore of the central solenoid will not be the same as that felt by the | ||||||
| conductors inside the structures. So we cannot use the bore value directly calculated by | ||||||
| [`calculate_cs_bore_magnetic_field()`](#self-peak-bore-magnetic-field--calculate_cs_bore_magnetic_field). | ||||||
| We need to know the peak field on the conductor if we are to design a superconducting | ||||||
| central solenoid that has enough margin. Fits to data[^1] for different ranges of $\beta$ | ||||||
| have been calculated as follows to scale the bore field value by: | ||||||
|
|
||||||
| - $\beta > 3.0$ | ||||||
|
|
||||||
|
|
@@ -89,23 +174,23 @@ The peak field at the bore of the central solenoid will not be the same as that | |||||
| +\left(1.0- \left(\frac{3}{\beta}\right)^2\right) \times (J_{\text{CS}}dr_{\text{CS}}) | ||||||
| $$ | ||||||
|
|
||||||
| - $\beta > 2.0$ | ||||||
| - $2.0 < \beta \le 3.0$ | ||||||
|
|
||||||
| $$ | ||||||
| B_{\text{conductor,peak}} = B_0 \times \left(1.025-(\beta-2.0)\times 0.018\right) + (\alpha -1.0) \\ | ||||||
| \times (0.01-(\beta-2.0)\times 0.0045) | ||||||
| $$ | ||||||
|
|
||||||
|
|
||||||
| - $\beta > 1.0$ | ||||||
| - $1.0 < \beta \le 2.0$ | ||||||
|
|
||||||
| $$ | ||||||
| B_{\text{conductor,peak}} = B_0 \times \left(1.117-(\beta-1.0)\times 0.092\right) + (\alpha -1.0) \\ | ||||||
| \times ((\beta-1.0)\times 0.01) | ||||||
| $$ | ||||||
|
|
||||||
|
|
||||||
| - $\beta > 0.75$ | ||||||
| - $0.75 < \beta \le 1.0$ | ||||||
|
|
||||||
| $$ | ||||||
| B_{\text{conductor,peak}} = B_0 \times \left(1.3-0.732(\beta-0.75)\right) + (\alpha -1.0) \\ | ||||||
|
|
@@ -123,10 +208,10 @@ The peak field at the bore of the central solenoid will not be the same as that | |||||
|
|
||||||
| ----------- | ||||||
|
|
||||||
| ### Axial stresses | `calculate_cs_self_peak_midplane_axial_stress()` | ||||||
| ### Peak Axial Stresses | `calculate_cs_self_peak_midplane_axial_stress()` | ||||||
|
|
||||||
|
|
||||||
| The vertical (axial) force for a "thin-walled" solenoid ($\alpha = 1$) at the midplane is given by[^2]: | ||||||
| The vertical (axial) force for a "thin-walled" solenoid ($\alpha = 1$) at the midplane where the force is maximum is given by Equation 3.41 in "Case studies in superconducting magnets" [^2]: | ||||||
|
|
||||||
| $$ | ||||||
| F_{z}(0)=\frac{\mu_0}{2}\left(\frac{N I}{2 \times dz_{\text{half}}}\right) \times \\ | ||||||
|
|
@@ -148,41 +233,99 @@ $$ | |||||
|
|
||||||
| Here $K(k)$ and $E(k)$ are the complete elliptic integrals, respectively of the first and second kinds. | ||||||
|
|
||||||
| !!! info "Non thin-walled solenoids" | ||||||
|
|
||||||
| For solenoids that can be classed as "thick-walled" ($\alpha > 1$), the coil has to be divided radially into several thin-walled solenoids. This is not currently performed though more info can be found in Section 3.5.5 of "Case studies in superconducting magnets" [^2]. | ||||||
|
|
||||||
| The axial compressive force at $z$ in an isolated solenoid increases from 0 at $z = dz_{\text{half}}$ | ||||||
| to the maximum at the midplane, $F_{z}(0)$. | ||||||
|
|
||||||
| The axial stress in the steel is given by: | ||||||
|
|
||||||
| $$ | ||||||
| \sigma_z = \frac{F_z}{f_z A_z} | ||||||
| $$ | ||||||
|
|
||||||
| where $F_z$ is the axial force, $f_z$ is the fraction of the horizontal cross-section occupied by | ||||||
| steel, and $A_z$ is the area of the horizontal cross-section. | ||||||
|
|
||||||
| The fraction of the horizontal cross-section occupied by steel is calculated assuming that the | ||||||
| conductor is square and has a steel jacket with the same thickness on all four sides, giving: | ||||||
|
|
||||||
| $$ | ||||||
| f_z = 0.5. | ||||||
| $$ | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
| -------------------------- | ||||||
|
|
||||||
|
|
||||||
| ### Hoop stress | `hoop_stress()` | ||||||
| ### Radial stress | `calculate_cs_radial_stress()` | ||||||
|
|
||||||
|
|
||||||
| The self induced radial stress is calculated using Equation 4.11 from "Superconducting magnets" [^1]. | ||||||
|
|
||||||
| $$ | ||||||
| \sigma_{r} = \frac{K(2+v)}{3(\alpha+1)}\times \left(\alpha^2+\alpha+1-\frac{\alpha^2}{\epsilon^2}-\epsilon(\alpha+1)\right) \\ | ||||||
| - \frac{M(3+v)}{8}\left(\alpha^2+1-\frac{\alpha^2}{\epsilon^2}-\epsilon^2\right) | ||||||
| $$ | ||||||
|
|
||||||
| The hoop stress is calculated using equations 4.10 and 4.11 from "Superconducting magnets", Martin N. | ||||||
| Wilson (1983). This is divided by the fraction of the area occupied by steel to obtain the hoop | ||||||
| stress in the steel, $\sigma_{hoop}$. | ||||||
| Where: | ||||||
|
|
||||||
| The axial stress can be calculated using "Case studies in superconducting magnets", Y. Iwasa, p. | ||||||
| 86, 3.5.2, Special Case 4: Midplane force. This applies exactly only to a thin-walled solenoid. | ||||||
| The axial stress in the steel is given by: | ||||||
| - $\epsilon = \frac{r}{r_{\text{CS,inner}}}$ | ||||||
| - $\alpha = \frac{r_{\text{CS,outer}}}{r_{\text{CS,inner}}}$ | ||||||
|
|
||||||
| The terms $K$ and $M$ are given by: | ||||||
|
|
||||||
| $$ | ||||||
| \sigma_z = \frac{F_z}{f_z A_z} | ||||||
| K = \frac{J r_{\text{CS,inner}}\left(\alpha B_{\text{CS,inner}} - B_{\text{CS,outer}}\right)}{(\alpha-1)} | ||||||
| $$ | ||||||
|
|
||||||
| where $F_z$ is the axial force, $f_z$ is the fraction of the horizontal cross-section occupied by | ||||||
| steel, and $A_z$ is the area of the horizontal cross-section. | ||||||
| $$ | ||||||
| M = \frac{J r_{\text{CS,inner}}\left(B_{\text{CS,inner}} - B_{\text{CS,outer}}\right)}{(\alpha-1)} | ||||||
| $$ | ||||||
|
|
||||||
| ------------- | ||||||
|
|
||||||
|
|
||||||
| ### Hoop stress | `calculate_cs_hoop_stress()` | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
| The fraction of the horizontal cross-section occupied by steel is calculated assuming that the | ||||||
| conductor is square and has a steel jacket with the same thickness on all four sides, giving: | ||||||
|
|
||||||
| The hoop stress is calculated using Equation 4.10 from "Superconducting magnets" [^1]. This is divided by the fraction of the area occupied by steel to obtain the hoop | ||||||
| stress in the steel, $\sigma_{\theta}$. | ||||||
|
|
||||||
| $$ | ||||||
| \sigma_{\theta} = \frac{K(2+v)}{3(\alpha+1)}\times \left(\alpha^2+\alpha+1+\frac{\alpha^2}{\epsilon^2}-\epsilon \frac{(1+2v)(\alpha+1)}{(2+v)}\right) \\ | ||||||
| - \frac{M(3+v)}{8}\left(\alpha^2+1+\frac{\alpha^2}{\epsilon^2}-\frac{(1+3v)}{(3+v)}\epsilon^2\right) | ||||||
| $$ | ||||||
| f_z = \frac{f_V}{2}. | ||||||
|
|
||||||
| Where: | ||||||
|
|
||||||
| - $\epsilon = \frac{r}{r_{\text{CS,inner}}}$ | ||||||
| - $\alpha = \frac{r_{\text{CS,outer}}}{r_{\text{CS,inner}}}$ | ||||||
|
|
||||||
| The terms $K$ and $M$ are given by: | ||||||
|
|
||||||
| $$ | ||||||
| K = \frac{J r_{\text{CS,inner}}\left(\alpha B_{\text{CS,inner}} - B_{\text{CS,outer}}\right)}{(\alpha-1)} | ||||||
| $$ | ||||||
|
|
||||||
| $$ | ||||||
| M = \frac{J r_{\text{CS,inner}}\left(B_{\text{CS,inner}} - B_{\text{CS,outer}}\right)}{(\alpha-1)} | ||||||
| $$ | ||||||
|
|
||||||
| !!! warning "Assumption of outer field, $B_{\text{CS,outer}}$" | ||||||
|
|
||||||
| In this case we currently assume that $B_{\text{CS,outer}} = 0$. This is the same as that for an infinite solenoid. Approximation of the outboard field is currently not performed. | ||||||
|
|
||||||
| -------------------------- | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
| The radial stress is neglected. The hoop and axial stresses are combined to give the maximum shear | ||||||
| stress, as required by the Tresca stress criterion: | ||||||
|
|
@@ -320,4 +463,5 @@ constraints (26 and 27) are activated. | |||||
|
|
||||||
| [^1]: M. N. Wilson, Superconducting Magnets. Oxford University Press, USA, 1983, ISBN 13: 9780198548102 | ||||||
| [^2]: Case Studies in Superconducting Magnets. Boston, MA: Springer US, 2009. doi: https://doi.org/10.1007/b112047. | ||||||
| [^eu_demo_turn]: R. Wesche et al., “Central solenoid winding pack design for DEMO,” Fusion Engineering and Design, vol. 124, pp. 82-85, Apr. 2017, doi: https://doi.org/10.1016/j.fusengdes.2017.04.052. | ||||||
| | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is taken as a screenshot from
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be fixed as it fits in the scope of this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting some errors for the equations below, are they displaying ok for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You normally need to just refresh the page and they load