Skip to content

Power imbalance in plot_sankey #2959

@chris-ashe

Description

@chris-ashe

In plot_sankey.py there is a discrepancy between the addition of the energy multiplication power and the blanket power into the primary heat.
During a run the warning is output to the terminal Key 'htpmw_blkt_tot' not in MFILE. KeyError! Check MFILE.
Inspecting the import statement, is :htpmw_fw_blkt = m_file.data["htpmw_blkt_tot"].get_scan(-1) .
htpmw_blkt_tot is not used in the calculation of;
BLANKETSETC = [totalblktetc + totaldivetc + totalcpetc, emultmw,-pthermmw_p - totaldivetc - totalcpetc - pnucshld,]

Investigation of the variables above shows that htpmw_fw_blkt is the required variable needed to fix the discrepepency though for some reason it is imported in as htpmw_blkt_tot which can not be found and so is returned as zero.

Changing the import to : htpmw_fw_blkt = m_file.data["htpmw_fw_blkt"].get_scan(-1) resolves the issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions