Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 5 additions & 2 deletions process/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ def write(models, _outfile):
# Cryostat build
models.cryostat.cryostat_output()

# Standard TF info
models.tfcoil.output_tf_generic_info()

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

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

# Tight aspect ratio machine model
if ft.physics_variables.itart == 1 and ft.tfcoil_variables.i_tf_sup != 1:
Expand Down
6 changes: 5 additions & 1 deletion process/resistive_tf_coil.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import numba
import numpy as np

from process import process_output as po
from process.fortran import (
build_variables,
constants,
Expand Down Expand Up @@ -298,7 +299,7 @@ def run(self, output: bool):
tfcoil_variables.sig_tf_case = 0.0e0
tfcoil_variables.sig_tf_wp = 0.0e0
if output:
self.outtf(0)
self.output_tf_generic_info(0)

def res_tf_internal_geom(self):
"""
Expand Down Expand Up @@ -677,6 +678,9 @@ def tf_res_heating(self) -> None:
# No joints if physics_variables.itart = 0
tfcoil_variables.p_tf_joints_resistive = 0.0e0

def output_tf_resistive_info(self):
po.oheadr(self.outfile, "Resisitve TF coil parameters")

@staticmethod
@numba.njit(cache=True)
def cpost(
Expand Down
Loading
Loading