Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
6237270
🔄 Rename TFcoil class and references to TFCoil for consistency
chris-ashe Mar 26, 2025
4bffc54
✨Add ResistiveTFCoil class to handle resistive TF coil operations
chris-ashe Mar 26, 2025
52279f4
🔄 Rename Sctfcoil class to SuperconductingTFCoil for clarity and cons…
chris-ashe Mar 26, 2025
9b7c25f
Implement resistive toroidal field coil model integration into caller.py
chris-ashe Mar 26, 2025
92116ce
🚚 Refactor TF coil geometry calculations by moving tf_global_geometry…
chris-ashe Mar 26, 2025
5745992
🚚 Move tf_current method from SuperconductingTFCoil to TFCoil class f…
chris-ashe Mar 26, 2025
14d1b7c
🚚 Implement resistive TF coil geometry calculations in ResistiveTFCoi…
chris-ashe Mar 26, 2025
c0be4af
🚚 Move coilshape and circumference methods to tfcoil file and move tests
chris-ashe Mar 26, 2025
2de7df3
🚚 Move resistive tf calcs and cpost function into resistive file alon…
chris-ashe Mar 26, 2025
42db67c
🚚 Add tf_field_and_force method to TFCoil class for calculating field…
chris-ashe Mar 27, 2025
15ae569
🚚 Refactor tfcind test and move it to tfcoil test file; remove redund…
chris-ashe Mar 27, 2025
f39cd47
🚚 Move tf_coil_area_and_masses method to TFCoil class for calculation
chris-ashe Mar 27, 2025
046e03d
Refactor peak field calculation in SuperconductingTFCoil class; strea…
chris-ashe Mar 27, 2025
515aef9
🚚 Move stress calc and tests to generic tf coil file
chris-ashe Mar 27, 2025
0fe7a21
🚚 Refactor TFCoil initialization and remove SuperconductingTFCoil dep…
chris-ashe Mar 28, 2025
12a943c
🚚 Update ResistiveTFCoil run method to control output; streamline str…
chris-ashe Mar 28, 2025
cf923b6
🔄 Rename tfcoil module to tf_coil for consistency across the codebase
chris-ashe Mar 28, 2025
2c38f09
🔄 Rename sctfcoil module to superconducting_tf_coil for consistency
chris-ashe Mar 28, 2025
ef57263
🚚 Replace TF_TYPES with SUPERCONDUCTING_TF_TYPES for clarity and cons…
chris-ashe Mar 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion process/caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,16 @@ def _call_models_once(self, xc: np.ndarray) -> None:

# Toroidal field coil model

self.models.tfcoil.run()
# Toroidal field coil resistive model
if ft.tfcoil_variables.i_tf_sup != 1:
self.models.resistive_tf_coil.run(output=False)

# Toroidal field coil superconductor model
if ft.tfcoil_variables.i_tf_sup == 1:
self.models.sctfcoil.run(output=False)

self.models.build.portsz()

# Poloidal field and central solenoid model
self.models.pfcoil.run()

Expand Down
6 changes: 4 additions & 2 deletions process/io/plot_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
)
from process.impurity_radiation import read_impurity_file
from process.objectives import OBJECTIVE_NAMES
from process.tfcoil import TF_TYPES
from process.superconducting_tf_coil import SUPERCONDUCTING_TF_TYPES

if os.name == "posix" and "DISPLAY" not in os.environ:
mpl.use("Agg")
Expand Down Expand Up @@ -2849,7 +2849,9 @@ def plot_magnetics_info(axis, mfile_data, scan):
i_tf_sc_mat = 0

if i_tf_sc_mat > 0:
tftype = TF_TYPES[int(mfile_data.data["i_tf_sc_mat"].get_scan(scan))]
tftype = SUPERCONDUCTING_TF_TYPES[
int(mfile_data.data["i_tf_sc_mat"].get_scan(scan))
]
else:
tftype = "Resistive Copper"

Expand Down
10 changes: 6 additions & 4 deletions process/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@
from process.plasma_profiles import PlasmaProfile
from process.power import Power
from process.pulse import Pulse
from process.resistive_tf_coil import ResistiveTFCoil
from process.scan import Scan
from process.sctfcoil import Sctfcoil
from process.stellarator import Neoclassics, Stellarator
from process.structure import Structure
from process.tfcoil import TFcoil
from process.superconducting_tf_coil import SuperconductingTFCoil
from process.tf_coil import TFCoil
from process.utilities.f2py_string_patch import string_to_f2py_compatible
from process.vacuum import Vacuum
from process.water_use import WaterUse
Expand Down Expand Up @@ -657,8 +658,9 @@ def __init__(self):
self.power = Power()
self.cryostat = Cryostat()
self.build = Build()
self.sctfcoil = Sctfcoil()
self.tfcoil = TFcoil(build=self.build, sctfcoil=self.sctfcoil)
self.sctfcoil = SuperconductingTFCoil()
self.tfcoil = TFCoil(build=self.build)
self.resistive_tf_coil = ResistiveTFCoil()
self.divertor = Divertor()
self.structure = Structure()
self.plasma_geom = PlasmaGeom()
Expand Down
5 changes: 3 additions & 2 deletions process/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def write(models, _outfile):
# Cryostat build
models.cryostat.cryostat_output()

# Toroidal field coil model
models.tfcoil.output()
# Toroidal field coil resistive model
if ft.tfcoil_variables.i_tf_sup != 1:
models.resistive_tf_coil.run(output=True)

# Toroidal field coil superconductor model
if ft.tfcoil_variables.i_tf_sup == 1:
Expand Down
Loading
Loading