8000 ✍️ Set up generic tf output by chris-ashe · Pull Request #3691 · ukaea/PROCESS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

✍️ Set up generic tf output #3691

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
8000 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
0