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

Adding the KRUSTY tutorial to the Cardinal website #883

Open
wants to merge 25 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
22 changes: 22 additions & 0 deletions doc/content/bib/cardinal.bib
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,25 @@ @inproceedings{eltawila
booktitle = {Proceedings of Physor},
year = 2024
}
@misc{wikiHP,
author = "Wikimedia Commons",
title = "File:Heat Pipe Mechanism.png --- Wikimedia Commons{,} the free media repository",
year = "2023",
url = "https://commons.wikimedia.org/w/index.php?title=File:Heat_Pipe_Mechanism.png&oldid=733530043",
note = "[Online; accessed 21-May-2024]"
}
@article{PostonGibsonGodfroy2020,
abstract = {The Kilowatt Reactor Using Stirling TechnologY (KRUSTY) was a reactor design, development, and test program to demonstrate the nuclear operation of a Kilopower reactor. Kilopower systems are intended to provide between 1 and 10 kW(electric) in space, or on the surface of planets or moons, with a clear evolution to substantially higher power systems. KRUSTY was a prototype of a 1-kW(electric) highly enriched uranium–fueled Kilopower system. In March of 2018, KRUSTY successfully operated as a fission power system and was the first nuclear-powered operation of any truly new reactor concept in the United States in over 40 years. This paper discusses the design of the KRUSTY reactor along with the philosophy, goals, and engineering work that ultimately led to KRUSTY’s success.},
author = {David I. Poston and Marc A. Gibson and Thomas Godfroy and Patrick R. McClure},
doi = {10.1080/00295450.2020.1725382},
issn = {19437471},
issue = {sup1},
journal = {Nuclear Technology},
keywords = {KRUSTY,Kilopower,fission power system,space nuclear power,space reactor},
month = {6},
pages = {13-30},
publisher = {Taylor and Francis Inc.},
title = {KRUSTY Reactor Design},
volume = {206},
year = {2020},
}
Binary file added doc/content/media/core_height.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/content/media/fig_heat_pipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/content/media/krusty_mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/content/media/krusty_solid_mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/content/media/power_krusty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/content/media/temp_krusty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
885 changes: 885 additions & 0 deletions doc/content/tutorials/KRUSTY.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions doc/content/tutorials/openmc_solid.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Four examples are provided:
- [Solid UO$_2$ pebbles](triso.md)
- [TRISO compacts](gas_compact.md)
- [DAGMC pincell](dagmc.md)
- [KRUSTY](KRUSTY.md)

Note that many of the features that are introduced in these
tutorials are *general* features that also apply to density feedback in OpenMC.
Expand Down
8 changes: 8 additions & 0 deletions tutorials/krusty/KRUSTY/hp_centers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
5.175000000000000 0.000000000000000 10.00000000000000
3.659000000000000 3.659000000000000 10.00000000000000
0.000000000000000 5.175000000000000 10.00000000000000
-3.659000000000000 3.659000000000000 10.00000000000000
-5.175000000000000 0.000000000000000 10.00000000000000
-3.659000000000000 -3.659000000000000 10.00000000000000
0.000000000000000 -5.175000000000000 10.00000000000000
3.659000000000000 -3.659000000000000 10.00000000000000
373 changes: 373 additions & 0 deletions tutorials/krusty/KRUSTY/model03.py

Large diffs are not rendered by default.

151 changes: 151 additions & 0 deletions tutorials/krusty/KRUSTY/openmc.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
################################################################################
## KRUSTY ##
## Heat Pipe Microreactor Steady State ##
## ##
## Mahmoud (3/25) (openmc.i/solid.i/model03.py/krusty_scale.e) ##
################################################################################

power = 4000 # (W)

[Mesh]
[fmg]
type = FileMeshGenerator
file = krusty_scale.e
[]
# [scale]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd remove anything which is commented out -- for part B, we can just add more input files. People often get confused by commented-out stuff

# type = TransformGenerator
# transform = SCALE
# vector_value = '0.01 0.01 0.01'
# input = fmg
# []
[]

[AuxVariables]
[cell_temperature]
family = MONOMIAL
order = CONSTANT
[]
[cell_in]
family = MONOMIAL
order = CONSTANT
[]
[material_id]
family = MONOMIAL
order = CONSTANT
[]
[]

[AuxKernels]
[cell_temperature]
type = CellTemperatureAux
variable = cell_temperature
[]
[cell_in]
type = CellInstanceAux
variable = cell_in
[]
[material_id]
type = CellMaterialIDAux
variable = material_id
[]
[]

[ICs]
[temp]
type = FunctionIC
variable = temp
function = temp_ic
[]
[]

[Functions]
[temp_ic]
type = ConstantFunction
value = 1073
[]
[]

# [Problem]
# type = FEProblem
# solve = false
# []

[Problem]
type = OpenMCCellAverageProblem
power = ${power}
scaling = 100.0
output = 'unrelaxed_tally_std_dev'
# temperature_blocks = 'cavity_center clamp core gap_clamp gap_ref gap_sleeve gap_vaccan mli ref_bottom ref_top sleeve vacuum_can'
temperature_blocks = '12 5 14 4 11 9 6 7 13 15 10 8'
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we use subdomain names instead of numbers? I find this is a bit more intuitive

tally_type = mesh
mesh_template = krusty_scale.e
tally_name = heat_source
cell_level = 0
# check_zero_tallies = false
# check_equal_mapped_tally_volumes = false
# initial_properties=xml
inactive_batches = 100 # 5 # 100
batches = 500 # 20 # 500
# particles = 5000
first_iteration_particles = 500000
reuse_source = true
relaxation = dufek_gudowski
verbose= true
[]

[MultiApps]
# active = ' '
[solid]
type = TransientMultiApp
app_type = CardinalApp
input_files = 'solide.i'
execute_on = timestep_end
sub_cycling = true
[]
[]

[Transfers]
[heat_source_to_solid]
type = MultiAppGeneralFieldShapeEvaluationTransfer
to_multi_app = solid
variable = power
source_variable = heat_source
[]
[temperature_to_openmc]
type = MultiAppGeneralFieldShapeEvaluationTransfer
from_multi_app = solid
variable = temp
source_variable = T
[]
[]

[Postprocessors]
[k]
type = KEigenvalue
[]
[heat_source_integral]
type = ElementIntegralVariablePostprocessor
variable = heat_source
execute_on = 'transfer initial timestep_end'
[]
[tally_err]
type = TallyRelativeError
[]
[]


[Executioner]
type = Transient
dt = 5000

steady_state_detection = true
check_aux = true
steady_state_tolerance = 1e-06
[]


[Outputs]
csv = true
exodus = true
perf_graph = true
[]
Loading