Skip to content
Open
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
4 changes: 1 addition & 3 deletions process/core/caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,7 @@ def _call_models_once(self, xc: np.ndarray):
if data_structure.fwbs_variables.i_blanket_type == 1:
# CCFE HCPB model
self.models.ccfe_hcpb.run(output=False)
# i_blanket_type = 2, KIT HCPB removed
# i_blanket_type = 3, CCFE HCPB with TBR calculation removed
# i_blanket_type = 4, KIT HCLL removed

elif data_structure.fwbs_variables.i_blanket_type == 5:
# DCLL model
self.models.dcll.run(output=False)
Expand Down
4 changes: 1 addition & 3 deletions process/core/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -1830,9 +1830,7 @@ def __post_init__(self):
"i_beta_fast_alpha": InputVariable(
data_structure.physics_variables, int, choices=[0, 1]
),
"i_blanket_type": InputVariable(
data_structure.fwbs_variables, int, choices=[1, 3, 5]
),
"i_blanket_type": InputVariable(data_structure.fwbs_variables, int, choices=[1, 5]),
"i_bldgs_size": InputVariable(
data_structure.buildings_variables, int, choices=[0, 1]
),
Expand Down
4 changes: 1 addition & 3 deletions process/core/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ def write(models, _outfile):
if data_structure.fwbs_variables.i_blanket_type == 1:
# CCFE HCPB model
models.ccfe_hcpb.run(output=True)
# i_blanket_type = 2, KIT HCPB removed
# i_blanket_type = 3, CCFE HCPB with TBR calculation removed
# i_blanket_type = 4, KIT HCLL removed

elif data_structure.fwbs_variables.i_blanket_type == 5:
# DCLL model
models.dcll.run(output=True)
Expand Down
44 changes: 22 additions & 22 deletions process/data_structure/fwbs_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"""switch for blanket model:
- =1 CCFE HCPB model
- =2 KIT HCPB model # REMOVED, no longer usable
- =3 CCFE HCPB model with Tritium Breeding Ratio calculation
- =3 CCFE HCPB model with Tritium Breeding Ratio calculation # REMOVED, no longer usable
- =4 KIT HCLL model # REMOVED, no longer usable
- =5 DCLL model - no nutronics model included (in development) please check/choose values for
'dual-coolant blanket' fractions (provided in this file).
Expand Down Expand Up @@ -182,19 +182,19 @@


vfcblkt: float = None
"""He coolant fraction of blanket by volume (`i_blanket_type= 1,3` (CCFE HCPB))"""
"""He coolant fraction of blanket by volume (`i_blanket_type= 1` (CCFE HCPB))"""


vfpblkt: float = None
"""He purge gas fraction of blanket by volume (`i_blanket_type= 1,3` (CCFE HCPB))"""
"""He purge gas fraction of blanket by volume (`i_blanket_type= 1` (CCFE HCPB))"""


m_blkt_li4sio4: float = None
"""mass of lithium orthosilicate in blanket [kg] (`i_blanket_type=1,3` (CCFE HCPB))"""
"""mass of lithium orthosilicate in blanket [kg] (`i_blanket_type=1` (CCFE HCPB))"""


m_blkt_tibe12: float = None
"""mass of titanium beryllide in blanket [kg] (`i_blanket_type=1,3` (CCFE HCPB))"""
"""mass of titanium beryllide in blanket [kg] (`i_blanket_type=1` (CCFE HCPB))"""


neut_flux_cp: float = None
Expand Down Expand Up @@ -244,78 +244,78 @@


breedmat: int = None
"""breeder material switch (i_blanket_type=2 (KIT HCPB)):
"""breeder material switch:
- =1 Lithium orthosilicate
- =2 Lithium methatitanate
- =3 Lithium zirconate
"""


densbreed: float = None
"""density of breeder material [kg m^-3] (`i_blanket_type=2` (KIT HCPB))"""
"""density of breeder material [kg m^-3]"""


fblbe: float = None
"""beryllium fraction of blanket by volume (if `i_blanket_type=2`, is Be fraction of breeding zone)"""
"""beryllium fraction of blanket by volume"""


fblbreed: float = None
"""breeder fraction of blanket breeding zone by volume (`i_blanket_type=2` (KIT HCPB))"""
"""breeder fraction of blanket breeding zone by volume"""


fblhebmi: float = None
"""helium fraction of inboard blanket box manifold by volume (`i_blanket_type=2` (KIT HCPB))"""
"""helium fraction of inboard blanket box manifold by volume"""


fblhebmo: float = None
"""helium fraction of outboard blanket box manifold by volume (`i_blanket_type=2` (KIT HCPB))"""
"""helium fraction of outboard blanket box manifold by volume """


fblhebpi: float = None
"""helium fraction of inboard blanket back plate by volume (`i_blanket_type=2` (KIT HCPB))"""
"""helium fraction of inboard blanket back plate by volume """


fblhebpo: float = None
"""helium fraction of outboard blanket back plate by volume (`i_blanket_type=2` (KIT HCPB))"""
"""helium fraction of outboard blanket back plate by volume """


hcdportsize: int = None
"""switch for size of heating/current drive ports (`i_blanket_type=2` (KIT HCPB)):
"""switch for size of heating/current drive ports :
- =1 'small'
- =2 'large'
"""


nflutf: float = None
"""peak fast neutron fluence on TF coil superconductor [n m^-2] (`i_blanket_type=2` (KIT HCPB))"""
"""peak fast neutron fluence on TF coil superconductor [n m^-2] """


npdiv: int = None
"""number of divertor ports (`i_blanket_type=2` (KIT HCPB))"""
"""number of divertor ports """


nphcdin: int = None
"""number of inboard ports for heating/current drive (`i_blanket_type=2` (KIT HCPB))"""
"""number of inboard ports for heating/current drive """


nphcdout: int = None
"""number of outboard ports for heating/current drive (`i_blanket_type=2` (KIT HCPB))"""
"""number of outboard ports for heating/current drive """


tbr: float = None
"""tritium breeding ratio (`i_blanket_type=2,3` (KIT HCPB/HCLL))"""
"""tritium breeding ratio"""


tritprate: float = None
"""tritium production rate [g day^-1] (`i_blanket_type=2` (KIT HCPB))"""
"""tritium production rate [g day^-1] """


wallpf: float = None
"""neutron wall load peaking factor (`i_blanket_type=2` (KIT HCPB))"""
"""neutron wall load peaking factor """


whtblbreed: float = None
"""mass of blanket - breeder part [kg] (`i_blanket_type=2` (KIT HCPB))"""
"""mass of blanket - breeder part [kg] """


m_blkt_beryllium: float = None
Expand Down
2 changes: 1 addition & 1 deletion process/data_structure/numerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
* (52) Tritium breeding ratio lower limit (itv 89,90,91)
* (53) Neutron fluence on TF coil upper limit (itv 92,93,94)
* (54) Peak TF coil nuclear heating upper limit (itv 95,93,94)
* (55) Vacuum vessel helium concentration upper limit i_blanket_type =2 (itv 96,93,94)
* (55) Vacuum vessel helium concentration upper limit #REMOVED i_blanket_type =2 (itv 96,93,94) #REMOVED
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* (55) Vacuum vessel helium concentration upper limit #REMOVED i_blanket_type =2 (itv 96,93,94) #REMOVED
* (55) NOT USED

* (56) Pseparatrix/Rmajor upper limit (itv 97,1,3)
* (57) NOT USED
* (58) NOT USED
Expand Down
71 changes: 20 additions & 51 deletions process/models/costs/costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,32 +278,18 @@ def output(self):
po.oshead(self.outfile, "Reactor Systems")
po.ocosts(self.outfile, "(c2211)", "First wall cost (M$)", cost_variables.c2211)
if ife_variables.ife != 1:
if fwbs_variables.i_blanket_type == 4:
po.ocosts(
self.outfile,
"(c22121)",
"Blanket lithium-lead cost (M$)",
cost_variables.c22121,
)
po.ocosts(
self.outfile,
"(c22122)",
"Blanket lithium cost (M$)",
cost_variables.c22122,
)
else:
po.ocosts(
self.outfile,
"(c22121)",
"Blanket beryllium cost (M$)",
cost_variables.c22121,
)
po.ocosts(
self.outfile,
"(c22122)",
"Blanket breeder material cost (M$)",
cost_variables.c22122,
)
po.ocosts(
self.outfile,
"(c22121)",
"Blanket beryllium cost (M$)",
cost_variables.c22121,
)
po.ocosts(
self.outfile,
"(c22122)",
"Blanket breeder material cost (M$)",
cost_variables.c22122,
)

po.ocosts(
self.outfile,
Expand Down Expand Up @@ -1263,32 +1249,15 @@ def acc2212(self):
cmlsa = [0.5000e0, 0.7500e0, 0.8750e0, 1.0000e0]

if ife_variables.ife != 1:
# i_blanket_type=4 is used for KIT HCLL model. i_blanket_type<4 are all
# HCPB (CCFE).
# Solid blanket (Li2O + Be)
cost_variables.c22121 = (
1.0e-6 * fwbs_variables.m_blkt_beryllium * cost_variables.ucblbe
)

if fwbs_variables.i_blanket_type == 4:
# Liquid blanket (LiPb + Li)
cost_variables.c22121 = (
1.0e-6 * fwbs_variables.wtbllipb * cost_variables.ucbllipb
)
cost_variables.c22122 = (
1.0e-6 * fwbs_variables.m_blkt_lithium * cost_variables.ucblli
)
else:
# Solid blanket (Li2O + Be)
cost_variables.c22121 = (
1.0e-6 * fwbs_variables.m_blkt_beryllium * cost_variables.ucblbe
)
if fwbs_variables.i_blanket_type == 2:
# KIT model
cost_variables.c22122 = (
1.0e-6 * fwbs_variables.whtblbreed * cost_variables.ucblbreed
)
else:
# CCFE model
cost_variables.c22122 = (
1.0e-6 * fwbs_variables.m_blkt_li2o * cost_variables.ucblli2o
)
# CCFE model
cost_variables.c22122 = (
1.0e-6 * fwbs_variables.m_blkt_li2o * cost_variables.ucblli2o
)

cost_variables.c22123 = (
1.0e-6 * fwbs_variables.m_blkt_steel_total * cost_variables.ucblss
Expand Down
6 changes: 3 additions & 3 deletions process/models/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ def plant_thermal_efficiency(self, eta_turbine):
# Feedheat & reheat cycle assumed
eta_turbine = 0.411e0
else:
logger.log(f"{'i_blanket_type does not have a value in range 1-3.'}")
logger.log(f"{'i_blanket_type is not equal to 1'}")

# Etath from reference. Div power to primary
elif fwbs_variables.i_thermal_electric_conversion == 1:
Expand All @@ -1661,7 +1661,7 @@ def plant_thermal_efficiency(self, eta_turbine):
# Feedheat & reheat cycle assumed
eta_turbine = 0.411e0 - power_variables.delta_eta
else:
logger.log(f"{'i_blanket_type does not have a value in range 1-3.'}")
logger.log(f"{'i_blanket_type is not equal to 1.'}")

# User input used, eta_turbine not changed
elif fwbs_variables.i_thermal_electric_conversion == 2:
Expand Down Expand Up @@ -1700,7 +1700,7 @@ def plant_thermal_efficiency(self, eta_turbine):
)

else:
logger.log(f"{'i_blanket_type does not have a value in range 1-3.'}")
logger.log(f"{'i_blanket_type is not equal to 1.'}")

# Supercritical CO2 cycle to be used
elif fwbs_variables.i_thermal_electric_conversion == 4:
Expand Down