Skip to content

Commit

Permalink
Commits are ready!
Browse files Browse the repository at this point in the history
  • Loading branch information
MendesMichael committed May 21, 2024
1 parent 649f397 commit 88e0756
Show file tree
Hide file tree
Showing 15 changed files with 6,939 additions and 0 deletions.
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]
# 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'
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

0 comments on commit 88e0756

Please sign in to comment.