8000 Fixed htpmw_fw_blkt import by chris-ashe · Pull Request #2960 · ukaea/PROCESS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed htpmw_fw_blkt import #2960

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

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
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
6 changes: 1 addition & 5 deletions process/io/sankey_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
def plot_full_sankey(
mfilename="MFILE.DAT",
): # Plots the power flow from PROCESS as a Sankey Diagram

# ------------------------------- Pulling values from the MFILE -------------------------------

m_file = MFile(mfilename)
Expand Down Expand Up @@ -98,7 +97,6 @@ def plot_full_sankey(

# Loop 1 to get 'Plasma Heating' branch tip coords; loop 2 to match 'PLASMA' branch
for _ in range(2):

# The visual settings of the Sankey Plot
plt.rcParams.update({"font.size": 9})
fig = plt.figure()
Expand Down Expand Up @@ -451,7 +449,6 @@ def plot_full_sankey(


def plot_sankey(mfilename="MFILE.DAT"): # Plot simplified power flow Sankey Diagram

# ------------------------------- Pulling values from the MFILE -------------------------------

m_file = MFile(mfilename)
Expand Down Expand Up @@ -522,7 +519,7 @@ def plot_sankey(mfilename="MFILE.DAT"): # Plot simplified power flow Sankey Dia
pthermfw_blkt = m_file.data["pthermfw_blkt"].get_scan(
-1
) # Heat for electricity (MW)
htpmw_fw_blkt = m_file.data["htpmw_blkt_tot"].get_scan(
htpmw_fw_blkt = m_file.data["htpmw_fw_blkt"].get_scan(
-1
) # 1st wall & blanket pumping (MW)
pthermmw_p = pthermfw_blkt - htpmw_fw_blkt # Heat - pumping power (MW)
Expand Down Expand Up @@ -563,7 +560,6 @@ def plot_sankey(mfilename="MFILE.DAT"): # Plot simplified power flow Sankey Dia

# Loop 1 to get 'Plasma Heating' branch tip coords; loop 2 to match 'PLASMA' branch
for _ in range(2):

# ------------------------------------ Visual Settings ------------------------------------

plt.rcParams.update({"font.size": 9}) # Setting font size to 9
Expand Down
0