Changeset 282:8ad358a8938d for source


Ignore:
Timestamp:
Aug 31, 2011, 9:12:09 PM (13 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

Allow for varying P_r in plotting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Application.js

    r281 r282  
    14231423                xlabel = "T<sub>i,r</sub> (eV)"
    14241424                break;
     1425            case "P_r":
     1426                par0 = this.plasma.P_r;
     1427                au_f = 100;
     1428                xlabel = "P<sub>r</sub> (%)"
     1429                break;
    14251430            case "B":
    14261431                par0 = this.plasma.B;
     
    15011506                        this.plasma.r.setT(par);
    15021507                        break;
     1508                    case "P_r":
     1509                        this.plasma.P_r = par;
     1510                        this.updatePlasmaParameters();
     1511                        break;
    15031512                    case "B":
    15041513                        this.plasma.B = par;
     
    15541563                this.plasma.r.setT(par0);
    15551564                break;
     1565            case "P_r":
     1566                this.plasma.P_r = par0;
     1567                this.updatePlasmaParameters();
     1568                break;
    15561569            case "B":
    15571570                this.plasma.B = par0;
     
    17051718            e.addItem("T<sub>r</sub>",   "T_r", true);
    17061719            e.addItem("T<sub>i,r</sub>", "T_i,r", true);
     1720            e.addItem("P<sub>r</sub>",   "P_r", true);
    17071721            e.addItem("B",               "B");
    17081722            e.selectByValue("N_e");
Note: See TracChangeset for help on using the changeset viewer.