Skip to content

plot_proc.py fails if heating is not ecrh or nbi #1139

@jonmaddock

Description

@jonmaddock

In GitLab by @asbrown on Oct 13, 2020, 15:00

In plot_proc.py the current drive function has options for ecrh and nbi, but if iefrf=4 (Ehst Lower Hybrid) is selected then plot_proc.py will fail as the array data is not created but later in the code data.append is used.

    if ecrh:
        data = [(pinjie, "Steady state auxiliary power", "MW"),
            ("pheat", "Power for heating only", "MW"),
            ("bootipf", "Bootstrap fraction", ""),
            ("faccd", "Auxiliary fraction", ""),
            ("facoh", "Inductive fraction", ""),
            ("powerht", "Plasma heating used for H factor", "MW"),
            (pdivr, r"$\frac{P_{\mathrm{div}}}{R_{0}}$", "MW m$^{-1}$"),
            (pdivnr, r"$\frac{P_{\mathrm{div}}}{<n> R_{0}}$",
             r"$\times 10^{-20}$ MW m$^{2}$"),
            (flh, r"$\frac{P_{\mathrm{div}}}{P_{\mathrm{LH}}}$", ""),
            (hstar, "H* (non-rad. corr.)", "")]

Another data array for Ehst Lower Hybrid to be made in the current drive function and an else statement to catch future current drive options.

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