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

Update OAT sensitivity analysis #144

Merged
merged 18 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
17 changes: 11 additions & 6 deletions input/haleu/sensitivity-analysis/oat/mmr_burnup/dakota.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ environment,
write_restart 'mmr_burnup.rst'

method,
multidim_parameter_study
partitions = 10
list_parameter_study
list_of_points = 41
62
74
78
82
86
90

Comment on lines +11 to +19
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain what this change is? I'm not understanding from the commit message. It could also be my lack of familiarity with dakota.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the other variations (transition start time, lwr lifetimes, and build shares) I am sweeping over a grid of evenly spaced points. However, the points I want to use for the burnup variations (applied to the MMR or Xe-100) are not evenly spaced. So I am telling Dakota to use these specific values instead of an even grid like I do when varying the parameters.


variables,
continuous_design = 1
lower_bounds 0
upper_bounds 50
descriptors 'mmr_bu'
continuous_design = 1
descriptors 'mmr_burnup'

interface,
fork
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

# Edit Cyclus input file
cyclus_template = 'mmr_burnup_input.xml.in'
scenario_name = 'mmr_burnup' + str(round(params['mmr_burnup']))
scenario_name = 'mmr_burnup_' + str(int(params['mmr_burnup']))
Copy link
Contributor

Choose a reason for hiding this comment

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

good naming scheme

variable_dict = {'handle': scenario_name,
'mmr_burnup': str(int(params['mmr_burnup']))}
output_xml = './cyclus-files/mmr_burnup' + str(params['mmr_burnup']) + '.xml'
output_xml = './cyclus-files/' + scenario_name + '.xml'
output_sqlite = './cyclus-files/' + scenario_name + '.sqlite'

inp.render_input(cyclus_template, variable_dict, output_xml)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<xi:include href="united_states/buildtimes/inclusions.xml#xpointer(/inclusions/child::*)"/>
<xi:include href="united_states/reactors/xenergy_xe100.xml"/>
<xi:include href="../sensitivity-analysis/oat//mmr_burnup/cyclus-files/mmr_burnup_{{mmr_burnup}}.xml"/>
<xi:include href="../sensitivity-analysis/oat//mmr_burnup/cyclus-files/mmr_{{mmr_burnup}}.xml"/>
<xi:include href="united_states/reactors/nuscale_voygr.xml"/>
<facility>
<name>Sink_HLW</name>
Expand Down