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
5 changes: 2 additions & 3 deletions input/haleu/sensitivity-analysis/oat/mmr/mmr_share_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
duration,
reactor_prototypes,
demand_equation,
'MMR',
int(params['mmr']))
{'MMR':int(params['mmr'])})
Copy link
Contributor

Choose a reason for hiding this comment

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

You're passing a dictionary with an entry for each 'version' of the MMR, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The dictionary here defines the build share percent (the value) for each specified prototype (the key). This change is because of the updates to the determine_deployment_scheme function in scripts/create_AR_DeployInst.py in PR #143. This does not change the lifetime or any parameters about the MMR prototype.

cdi.write_deployinst(deploy_schedule,
"./cyclus-files/mmr_" +
str(int(params['mmr'])) + "_deployinst.xml")
Expand All @@ -52,4 +51,4 @@
# ----------------------------
# Return the results to Dakota
# ----------------------------
results = oup.get_all_results(results, output_sqlite)
results = oup.get_all_results(results, output_sqlite)
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

# Create DeployInst for advanced reactors
duration = 1500
reactor_prototypes = {'Xe-100': (76, 720), 'MMR': (5, 240), 'VOYGR': (73, 720)}
reactor_prototypes = {'Xe-100': (76, 840),
'MMR': (5,840),
'VOYGR': (73, 840)}
demand_equation = np.zeros(duration)
demand_equation[721:] = 87198.156
lwr_DI = cdi.convert_xml_to_dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Create DeployInst for advanced reactors
duration = 1500
reactor_prototypes = {'Xe-100': (76, 720), 'MMR': (5, 240), 'VOYGR': (73, 720)}
reactor_prototypes = {'Xe-100': (76, 840), 'MMR': (5, 840), 'VOYGR': (73, 840)}
demand_equation = np.zeros(duration)
demand_equation[721:] = 87198.156

Expand Down