Ignore:
Timestamp:
Aug 3, 2009, 6:15:55 PM (13 years ago)
Author:
gerson bicca
Message:

updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/pressure_changers/valve.mso

    r690 r808  
    100100
    101101Model valve_flow
    102         ATTRIBUTES
    103         Pallete         = true;
    104         Icon            = "icon/Valve";
    105         Brief           = "Model of a very simple valve for setting the flow with a controller.";
    106         Info            =
    107 "== Assumptions ==
     102
     103ATTRIBUTES
     104        Pallete = true;
     105        Icon    = "icon/Valve";
     106        Brief   = "Model of a very simple valve for setting the flow with a controller.";
     107        Info    =
     108"== ASSUMPTIONS ==
    108109* nothing happens in this valve
    109        
    110 == Specify ==
    111 * the inlet stream
    112 * the flow fraction
     110
     111== SET ==
     112* MinFlow: the Minimum Flow Allowable in the valve;
     113* MaxFlow: the Maximum Flow Allowable in the valve;
     114
     115== SPECIFY ==
     116* the Inlet stream
     117* the FlowFraction (the model requires an inlet signal, also you can use a controller for setting the FlowFraction)
    113118";
    114119
    115         PARAMETERS
    116 outer PP as Plugin(Type="PP");
    117 outer NComp as Integer;
    118 
    119         MinFlow as flow_mol(Default=0);
    120         MaxFlow as flow_mol(Default=1000);
    121        
    122         VARIABLES
    123 in      Inlet   as stream       (Brief = "Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}");
    124 out     Outlet  as stream       (Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}");
    125 in      FlowFraction as fraction (Brief="Flow Signal", PosX=0.5, PosY=0);
    126        
    127         EQUATIONS
    128         "Overall Molar Balance"
     120PARAMETERS
     121        outer PP                as Plugin       (Brief = "External Physical Properties", Type="PP");
     122        outer NComp     as Integer      (Brief="Number of Components");
     123
     124        MinFlow as flow_mol(Brief="Minimum Flow Allowable in the valve", Default=0);
     125        MaxFlow as flow_mol(Brief="Maximum Flow Allowable in the valve", Default=1000);
     126       
     127VARIABLES
     128
     129in      Inlet                   as stream       (Brief ="Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}",Protected=true);
     130out     Outlet                  as stream       (Brief ="Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}",Protected=true);
     131in      FlowFraction    as fraction (Brief ="Flow Signal", PosX=0.5, PosY=0,Protected=true);
     132       
     133EQUATIONS
     134"Overall Molar Balance"
    129135        Outlet.F = Inlet.F;
    130         "Temperature"
     136
     137"Temperature"
    131138        Outlet.T = Inlet.T;
    132         "Pressure"
     139
     140"Pressure"
    133141        Outlet.P = Inlet.P;
    134         "Energy Balance"
     142
     143"Energy Balance"
    135144        Outlet.h = Inlet.h;
    136         "Vapour fraction"
     145
     146"Vapour fraction"
    137147        Outlet.v = Inlet.v;
    138148
    139         "Componente Molar Balance"
     149"Componente Molar Balance"
    140150        Outlet.z = Inlet.z;
    141151
    142         "Flow computation"
     152"Flow computation"
    143153        Outlet.F = MinFlow + FlowFraction*(MaxFlow-MinFlow);
     154
    144155end
    145156
Note: See TracChangeset for help on using the changeset viewer.