-
Notifications
You must be signed in to change notification settings - Fork 47
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
MendesMichael
wants to merge
25
commits into
neams-th-coe:devel
Choose a base branch
from
MendesMichael:patch-1
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
88e0756
Commits are ready!
MendesMichael b8646f1
Update cardinal.bib
MendesMichael 41d4d8a
Update KRUSTY.md
MendesMichael b7b9e1e
Update KRUSTY.md
MendesMichael f30a085
Add files via upload
MendesMichael 5140f68
Add files via upload
MendesMichael 62cd9e3
Update openmc_solid.md
MendesMichael d9fe4eb
Update and rename model03.py to model.py
MendesMichael 7cc0979
Update openmc.i
MendesMichael 410bce1
Update solide.i
MendesMichael bef8a17
Update openmc.i
MendesMichael 76aa994
Update cardinal.bib
MendesMichael 0f5e137
Update KRUSTY_index.md
MendesMichael 5d3d7b3
Update KRUSTY_index.md
MendesMichael 6878e66
Update KRUSTY_index.md
MendesMichael 9bc5456
Update KRUSTY_index.md
MendesMichael 1f3cf82
Update KRUSTY.md
MendesMichael 0ecca76
Update KRUSTY_index.md
MendesMichael 6c371cd
Change KRUSTY folder name to without_sockeye
MendesMichael a4043c2
Update KRUSTY.md
MendesMichael fa393fe
Update KRUSTY_index.md
MendesMichael 755d54b
Update cardinal.bib
MendesMichael faaae96
Add files via upload
MendesMichael 309797a
Add files via upload
MendesMichael 942aa4f
Update sockeye.i
MendesMichael File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
[] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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