Ignore:
Timestamp:
Jul 24, 2008, 10:45:34 AM (15 years ago)
Author:
Rafael de Pelegrini Soares
Message:

valve_flow model simplified and now the Sample_Flowsheet is running fast

File:
1 edited

Legend:

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

    r558 r567  
    218218        Pallete         = true;
    219219        Icon            = "icon/Valve";
    220         Brief           = "Model of a very simple valve - used in distillation column models.";
     220        Brief           = "Model of a very simple valve for setting the flow with a controller.";
    221221        Info            =
    222222"== Assumptions ==
    223 * no flashing liquid in the valve;
    224 * the flow in the valve is adiabatic;
    225 * dynamics in the valve are neglected;
    226 * linear flow type.
     223* nothing happens in this valve
    227224       
    228225== Specify ==
    229226* the inlet stream
    230 * the plug position (x) OR outlet temperature (Outlet.T) OR outlet pressure (Outlet.P)
    231        
    232         OR             
    233        
    234 * the inlet stream excluding its flow (Inlet.F)
    235 * the outlet pressure (Outlet.P) OR outlet flow (Outlet.F)
    236 * the plug position (x)
     227* the flow fraction
    237228";
    238229
     
    246237        VARIABLES
    247238in      Inlet   as stream       (Brief = "Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}");
    248 out     Outlet  as streamPH     (Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}");
     239out     Outlet  as stream       (Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}");
    249240in      FlowFraction as fraction (Brief="Flow Signal", PosX=0.5, PosY=0);
    250241       
    251242        EQUATIONS
    252243        "Overall Molar Balance"
    253         Inlet.F = Outlet.F;
    254        
     244        Outlet.F = Inlet.F;
     245        "Temperature"
     246        Outlet.T = Inlet.T;
     247        "Pressure"
     248        Outlet.P = Inlet.P;
     249        "Energy Balance"
     250        Outlet.h = Inlet.h;
     251        "Vapour fraction"
     252        Outlet.v = Inlet.v;
     253
    255254        "Componente Molar Balance"
    256         Inlet.z = Outlet.z;
    257        
    258         "Energy Balance"
    259         Inlet.h = Outlet.h;
    260 
    261         "Pressure"
    262         Outlet.P  = Inlet.P;
    263 
    264         "Flow"
     255        Outlet.z = Inlet.z;
     256
     257        "Flow computation"
    265258        Outlet.F = MinFlow + FlowFraction*(MaxFlow-MinFlow);
    266259end
Note: See TracChangeset for help on using the changeset viewer.