Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
c4affed
Move availability under models directory
timothy-nunn Feb 19, 2026
6e277fc
Move blanket_library to models/blankets
timothy-nunn Feb 19, 2026
0f0c536
Move build under models
timothy-nunn Feb 19, 2026
a7197e3
Move . buildings under models
timothy-nunn Feb 19, 2026
7f23c34
Move confinement_time to models/physics
timothy-nunn Feb 19, 2026
d8d3a08
Move costs_2015 under models/costs
timothy-nunn Feb 19, 2026
f8d31d8
Move costs under models/costs
timothy-nunn Feb 19, 2026
cc2e91b
Move cryostat under models
timothy-nunn Feb 19, 2026
95ee345
Move cs_fatigue under models
timothy-nunn Feb 19, 2026
48e49f3
Move current_drive under models/physics
timothy-nunn Feb 19, 2026
d2ce7c2
Move dcll under models/blankets
timothy-nunn Feb 19, 2026
88aace3
Move divertor under models
timothy-nunn Feb 19, 2026
e2eea3c
Move fusion_reactions under models/physics
timothy-nunn Feb 19, 2026
ece0b7d
Move fw under models
timothy-nunn Feb 19, 2026
6bbbdc1
Move hcpb under models/blankets
timothy-nunn Feb 19, 2026
486acb1
Move ife under models
timothy-nunn Feb 19, 2026
d601f44
Move impurity_radiation under models/physics
timothy-nunn Feb 19, 2026
453e857
Move l_h_transition under models/physics
timothy-nunn Feb 19, 2026
49fc09d
Move pfcoil under models
timothy-nunn Feb 19, 2026
047c1ae
Move physics_functions under models
timothy-nunn Feb 19, 2026
b499340
Move physics under models
timothy-nunn Feb 19, 2026
04e203c
Move plasma_profiles under models/physics
timothy-nunn Feb 19, 2026
5df4c8c
Move power under models
timothy-nunn Feb 19, 2026
9bf75ff
Move tfcoils under models/tfcoils
timothy-nunn Feb 19, 2026
76ad710
Move superconducting_tf_coils under models/tfcoils
timothy-nunn Feb 19, 2026
36803d3
Move profiles under models/physics
timothy-nunn Feb 19, 2026
7e5ec00
Move pulse under models
timothy-nunn Feb 19, 2026
82c209c
Move plasma_geometry under models/physics
timothy-nunn Feb 19, 2026
fc0ed66
Move quench under models/tfcoil
timothy-nunn Feb 19, 2026
2f5fb66
Move resistive_tf_coils under models/tfcoil
timothy-nunn Feb 19, 2026
4881e62
Move shield under models
timothy-nunn Feb 19, 2026
13486f8
Move structure under models
timothy-nunn Feb 19, 2026
fd51139
Move superconductors under models
timothy-nunn Feb 19, 2026
ac9db65
Move vacuum under models
timothy-nunn Feb 19, 2026
6801bd1
Move water_use under models
timothy-nunn Feb 19, 2026
fe2f247
Move stellarator under models
timothy-nunn Feb 19, 2026
10ca4b6
Make process/models a package
timothy-nunn Feb 19, 2026
a2e20e7
Move geometry under models
timothy-nunn Feb 19, 2026
f8c6237
Rename physics_functions to radiation_power
timothy-nunn Feb 19, 2026
2f8b785
Strip tf_coil from tf_coil models
timothy-nunn Feb 19, 2026
44553e1
Remove _geometry suffix from geometry files
timothy-nunn Feb 19, 2026
071da26
Rename tfcoil/tf_coil to tfcoil/base
timothy-nunn Feb 19, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

temp_c0max = 90.0 # Critical temperature (K) at zero field and strain
b_c20max = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

# Create a grid of temperature and field values
temp_conductor = np.linspace(1, 11.0, 50) # Temperature range (K)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

# Create a grid of temperature and field values
temp_conductor = np.linspace(1, 8.0, 50) # Temperature range (K)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

# Create a grid of temperature and field values
temp_conductor = np.linspace(4.2, 30.0, 50) # Temperature range (K)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

temp_c0max = 16.06 # Critical temperature (K) at zero field and strain
b_c20max = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

# Create a grid of temperature and field values
temp_conductor = np.linspace(4.2, 40.0, 50) # Temperature range (K)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

# Create a grid of temperature and field values
temp_conductor = np.linspace(1, 10.0, 50) # Temperature range (K)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import plotly.graph_objects as go

import process.superconductors as superconductors
import process.models.superconductors as superconductors

temp_c0max = 16.34 # Critical temperature (K) at zero field and strain
b_c20max = (
Expand Down
2 changes: 1 addition & 1 deletion process/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
from process.exceptions import ProcessValidationError
from process.input import parse_input_file
from process.log import logging_model_handler
from process.stellarator.initialization import st_init
from process.models.stellarator.initialization import st_init


def init_process():
Expand Down
30 changes: 15 additions & 15 deletions process/io/plot_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,41 +28,41 @@
from matplotlib.path import Path
from scipy.interpolate import interp1d

import process.confinement_time as confine
import process.constants as constants
import process.data_structure.pfcoil_variables as pfcoil_variables
import process.io.mfile as mf
import process.superconducting_tf_coil as sctf
from process.build import Build
from process.current_drive import ElectronBernstein, ElectronCyclotron
import process.models.physics.confinement_time as confine
import process.models.tfcoil.superconducting as sctf
from process.data_structure import impurity_radiation_module, physics_variables
from process.geometry.blanket_geometry import (
from process.io.mfile import MFileErrorClass
from process.models.build import Build
from process.models.geometry.blanket import (
blanket_geometry_double_null,
blanket_geometry_single_null,
)
from process.geometry.cryostat_geometry import cryostat_geometry
from process.geometry.firstwall_geometry import (
from process.models.geometry.cryostat import cryostat_geometry
from process.models.geometry.firstwall import (
first_wall_geometry_double_null,
first_wall_geometry_single_null,
)
from process.geometry.pfcoil_geometry import pfcoil_geometry
from process.geometry.plasma_geometry import plasma_geometry
from process.geometry.shield_geometry import (
from process.models.geometry.pfcoil import pfcoil_geometry
from process.models.geometry.plasma import plasma_geometry
from process.models.geometry.shield import (
shield_geometry_double_null,
shield_geometry_single_null,
)
from process.geometry.tfcoil_geometry import (
from process.models.geometry.tfcoil import (
tfcoil_geometry_d_shape,
tfcoil_geometry_rectangular_shape,
)
from process.geometry.vacuum_vessel_geometry import (
from process.models.geometry.vacuum_vessel import (
vacuum_vessel_geometry_double_null,
vacuum_vessel_geometry_single_null,
)
from process.impurity_radiation import read_impurity_file
from process.io.mfile import MFileErrorClass
from process.models.physics.current_drive import ElectronBernstein, ElectronCyclotron
from process.models.physics.impurity_radiation import read_impurity_file
from process.models.tfcoil.superconducting import SUPERCONDUCTING_TF_TYPES
from process.objectives import OBJECTIVE_NAMES
from process.superconducting_tf_coil import SUPERCONDUCTING_TF_TYPES

mpl.rcParams["figure.max_open_warning"] = 40

Expand Down
83 changes: 46 additions & 37 deletions process/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,6 @@
import process.data_structure as data_structure
import process.init as init
from process import constants
from process.availability import Availability
from process.blanket_library import BlanketLibrary
from process.build import Build
from process.buildings import Buildings
from process.costs import Costs
from process.costs_2015 import Costs2015
from process.cryostat import Cryostat
from process.cs_fatigue import CsFatigue
from process.current_drive import (
CurrentDrive,
ElectronBernstein,
ElectronCyclotron,
IonCyclotron,
LowerHybrid,
NeutralBeam,
)
from process.dcll import DCLL
from process.divertor import Divertor
from process.fw import FirstWall
from process.hcpb import CCFE_HCPB
from process.ife import IFE
from process.impurity_radiation import initialise_imprad
from process.io import (
mfile,
plot_plotly_sankey,
Expand All @@ -90,23 +68,54 @@
vary_iteration_variables,
)
from process.log import logging_model_handler, show_errors
from process.pfcoil import PFCoil
from process.physics import DetailedPhysics, Physics, PlasmaBeta, PlasmaInductance
from process.plasma_geometry import PlasmaGeom
from process.plasma_profiles import PlasmaProfile
from process.power import Power
from process.models.availability import Availability
from process.models.blankets.blanket_library import BlanketLibrary
from process.models.blankets.dcll import DCLL
from process.models.blankets.hcpb import CCFE_HCPB
from process.models.build import Build
from process.models.buildings import Buildings
from process.models.costs.costs import Costs
from process.models.costs.costs_2015 import Costs2015
from process.models.cryostat import Cryostat
from process.models.cs_fatigue import CsFatigue
from process.models.divertor import Divertor
from process.models.fw import FirstWall
from process.models.ife import IFE
from process.models.pfcoil import PFCoil
from process.models.physics.current_drive import (
CurrentDrive,
ElectronBernstein,
ElectronCyclotron,
IonCyclotron,
LowerHybrid,
NeutralBeam,
)
from process.models.physics.impurity_radiation import initialise_imprad
from process.models.physics.physics import (
DetailedPhysics,
Physics,
PlasmaBeta,
PlasmaInductance,
)
from process.models.physics.plasma_geometry import PlasmaGeom
from process.models.physics.plasma_profiles import PlasmaProfile
from process.models.power import Power
from process.models.pulse import Pulse
from process.models.shield import Shield
from process.models.stellarator.neoclassics import Neoclassics
from process.models.stellarator.stellarator import Stellarator
from process.models.structure import Structure
from process.models.tfcoil.base import TFCoil
from process.models.tfcoil.resistive import (
AluminiumTFCoil,
CopperTFCoil,
ResistiveTFCoil,
)
from process.models.tfcoil.superconducting import SuperconductingTFCoil
from process.models.vacuum import Vacuum, VacuumVessel
from process.models.water_use import WaterUse
from process.process_output import OutputFileManager, oheadr
from process.pulse import Pulse
from process.resistive_tf_coil import AluminiumTFCoil, CopperTFCoil, ResistiveTFCoil
from process.scan import Scan
from process.shield import Shield
from process.stellarator.neoclassics import Neoclassics
from process.stellarator.stellarator import Stellarator
from process.structure import Structure
from process.superconducting_tf_coil import SuperconductingTFCoil
from process.tf_coil import TFCoil
from process.vacuum import Vacuum, VacuumVessel
from process.water_use import WaterUse

os.environ["PYTHON_PROCESS_ROOT"] = os.path.join(os.path.dirname(__file__))

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions process/dcll.py → process/models/blankets/dcll.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import process.blanket_library as blanket_library
import process.models.blankets.blanket_library as blanket_library
from process import constants
from process import (
process_output as po,
)
from process.blanket_library import InboardBlanket, OutboardBlanket
from process.data_structure import (
build_variables,
current_drive_variables,
Expand All @@ -15,6 +14,7 @@
physics_variables,
primary_pumping_variables,
)
from process.models.blankets.blanket_library import InboardBlanket, OutboardBlanket


class DCLL(InboardBlanket, OutboardBlanket):
Expand Down
4 changes: 2 additions & 2 deletions process/hcpb.py → process/models/blankets/hcpb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

import numpy as np

import process.blanket_library as blanket_library
import process.data_structure.blanket_library as blanket_vars
import process.models.blankets.blanket_library as blanket_library
from process import constants
from process import (
process_output as po,
)
from process.blanket_library import InboardBlanket, OutboardBlanket
from process.coolprop_interface import FluidProperties
from process.data_structure import (
build_variables,
Expand All @@ -24,6 +23,7 @@
tfcoil_variables,
)
from process.exceptions import ProcessValueError
from process.models.blankets.blanket_library import InboardBlanket, OutboardBlanket

logger = logging.getLogger(__name__)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion process/fw.py → process/models/fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from process import constants
from process import process_output as po
from process.blanket_library import BlanketLibrary, dshellarea, eshellarea
from process.coolprop_interface import FluidProperties
from process.data_structure import (
blanket_library,
Expand All @@ -15,6 +14,11 @@
physics_variables,
)
from process.exceptions import ProcessValueError
from process.models.blankets.blanket_library import (
BlanketLibrary,
dshellarea,
eshellarea,
)

logger = logging.getLogger(__name__)

Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import numpy as np

from process.geometry.geometry_parameterisations import ArbitraryGeometry
from process.geometry.utils import dh_vertices, dhgap_vertices
from process.models.geometry.parameterisations import ArbitraryGeometry
from process.models.geometry.utils import dh_vertices, dhgap_vertices


def blanket_geometry_single_null(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Calculate cryostat geometries
"""

from process.geometry.geometry_parameterisations import RectangleGeometry
from process.models.geometry.parameterisations import RectangleGeometry


def cryostat_geometry(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import numpy as np

from process.geometry.geometry_parameterisations import ArbitraryGeometry
from process.geometry.utils import dh_vertices, dhgap_vertices
from process.models.geometry.parameterisations import ArbitraryGeometry
from process.models.geometry.utils import dh_vertices, dhgap_vertices


def first_wall_geometry_single_null(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np

from process.geometry.geometry_parameterisations import RectangleGeometry
from process.models.geometry.parameterisations import RectangleGeometry


def pfcoil_geometry(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import numpy as np

from process.geometry.geometry_parameterisations import ArbitraryGeometry
from process.geometry.utils import dh_vertices
from process.models.geometry.parameterisations import ArbitraryGeometry
from process.models.geometry.utils import dh_vertices


def shield_geometry_single_null(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Calculate radial and vertical coordinates for the geometry of the tf coils
"""

from process.geometry.geometry_parameterisations import RectangleGeometry
from process.geometry.utils import ellips_fill_vertices
from process.models.geometry.parameterisations import RectangleGeometry
from process.models.geometry.utils import ellips_fill_vertices


def tfcoil_geometry_rectangular_shape(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import numpy as np

from process.geometry.geometry_parameterisations import ArbitraryGeometry
from process.geometry.utils import dh_vertices
from process.models.geometry.parameterisations import ArbitraryGeometry
from process.models.geometry.utils import dh_vertices


def vacuum_vessel_geometry_single_null(
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion process/pfcoil.py → process/models/pfcoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from scipy.linalg import svd
from scipy.special import ellipe, ellipk

import process.superconductors as superconductors
import process.models.superconductors as superconductors
from process import constants
from process import process_output as op
from process.data_structure import build_variables as bv
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
physics_variables,
)
from process.exceptions import ProcessError, ProcessValueError
from process.plasma_profiles import PlasmaProfile
from process.models.physics.plasma_profiles import PlasmaProfile

logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from process import constants
from process.data_structure import physics_variables
from process.plasma_profiles import PlasmaProfile
from process.models.physics.plasma_profiles import PlasmaProfile

logger = logging.getLogger(__name__)

Expand Down
File renamed without changes.
Loading