Ignore:
Timestamp:
Jul 21, 2008, 5:41:41 PM (14 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Added some simple PI controllers and another signal models

File:
1 edited

Legend:

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

    r372 r558  
    212212        end
    213213end
     214
     215
     216Model valve_flow
     217        ATTRIBUTES
     218        Pallete         = true;
     219        Icon            = "icon/Valve";
     220        Brief           = "Model of a very simple valve - used in distillation column models.";
     221        Info            =
     222"== 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.
     227       
     228== Specify ==
     229* 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)
     237";
     238
     239        PARAMETERS
     240outer PP as Plugin(Type="PP");
     241outer NComp as Integer;
     242
     243        MinFlow as flow_mol(Default=0);
     244        MaxFlow as flow_mol(Default=1000);
     245       
     246        VARIABLES
     247in      Inlet   as stream       (Brief = "Inlet stream", PosX=0, PosY=0.7365, Symbol="_{in}");
     248out     Outlet  as streamPH     (Brief = "Outlet stream", PosX=1, PosY=0.7365, Symbol="_{out}");
     249in      FlowFraction as fraction (Brief="Flow Signal", PosX=0.5, PosY=0);
     250       
     251        EQUATIONS
     252        "Overall Molar Balance"
     253        Inlet.F = Outlet.F;
     254       
     255        "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"
     265        Outlet.F = MinFlow + FlowFraction*(MaxFlow-MinFlow);
     266end
     267
Note: See TracChangeset for help on using the changeset viewer.