Skip to content
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

Add a GUI script to the fuel cycle example #192

Merged
merged 10 commits into from
Oct 30, 2024
5 changes: 5 additions & 0 deletions doc/content/examples/fuel_cycle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,9 @@ lines are model results.

!listing test/tests/fuel-cycle/fuel_cycle.i

A python-based graphical interactive script is available at [/test/tests/fuel_cycle/fuel_cycle_gui.py](/scripts/fuel_cycle_gui.py) as a demonstration of the various effects of
ke7kto marked this conversation as resolved.
Show resolved Hide resolved
individual parameters. To use it, navigate to the scripts directory and run the script. All of the input parameters for the model can be changed by editing the associated entry,
then clicking the "Run" button. Once the simulation has run, checkboxes will appear for each system-level tritium inventory. Time units can also be adjusted by selecting the appropriate
timescale.

!bibtex bibliography
1 change: 1 addition & 0 deletions scripts/fuel_cycle_gui.py
cticenhour marked this conversation as resolved.
Show resolved Hide resolved
21 changes: 17 additions & 4 deletions test/tests/fuel-cycle/fuel_cycle.i
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
[residence8] #FCU
type = ConstantPostprocessor
execute_on = 'TIMESTEP_BEGIN INITIAL LINEAR NONLINEAR'
value = 1
value = 1
#value = 4680 # 1.3 h as per Day
#value = 5 h Coleman
#value = 8640 Abdou
Expand Down Expand Up @@ -471,7 +471,20 @@
values = 'T_BZ T_TES T_FW T_DIV T_HX T_CPS T_VAC T_FCU T_ISS T_EXO T_STO'
[]
[]

[UserObjects]
[terminator]
type = Terminator
expression = 'T_STO < 0'
fail_mode = 'HARD'
message = 'Tritium in storage has been depleted'
[]
[terminator2]
type = Terminator
expression = 'total_tritium < 0'
fail_mode = 'HARD'
message = 'Tritium in system has been depleted'
[]
[]
# The tritium breeding ratio is not directly given in the paper,
# but is specified as a "five year" doubling time from the initial
# inventory. As such, it may be necessary to force the simulation to
Expand All @@ -492,7 +505,7 @@
type = Transient
start_time = 0
dtmin = 1
end_time = 864000000.0
end_time = 946080000.0
[TimeStepper]
type = IterationAdaptiveDT
growth_factor = 1.4
Expand All @@ -506,7 +519,7 @@
nl_abs_tol = 1e-14
[]
[Outputs]
hide = 'T_BZ T_CPS T_DIV T_EXO T_FCU T_FW T_HX T_ISS T_STO T_TES T_VAC'
hide = "BZ_HX_leak_fraction CPS_FW_leak_fraction CPS_efficiency FCU_STO_fraction HX_CPS_leak_fraction HX_EXO_leak_fraction HX_FW_leak_fraction ISS_EXO_leak_fraction P_DIV_leak_fraction P_FW_leak_fraction TBR TES_efficiency T_BZ T_CPS T_DIV T_EXO T_FCU T_FW T_HX T_ISS T_STO T_TES T_VAC epsilon1 epsilon10 epsilon11 epsilon2 epsilon3 epsilon4 epsilon5 epsilon6 epsilon7 epsilon8 epsilon9 residence1 residence10 residence2 residence3 residence4 residence5 residence6 residence7 residence8 residence9 tdecay tritium_burn_fraction tritium_burn_rate tritium_fueling_efficiency"
csv = true
console = false
[]
Loading