Changeset 400 for trunk


Ignore:
Timestamp:
Nov 9, 2007, 7:41:38 PM (16 years ago)
Author:
gerson bicca
Message:

updated mixer model

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eml/mixers_splitters/mixer.mso

    r370 r400  
    1818*--------------------------------------------------------------------*#
    1919
    20 using "stage_separators/flash";
     20using "streams";
    2121
    2222Model mixer
     
    3838       
    3939        VARIABLES
    40 in  Inlet_mixer(Ninlet) as stream (Brief = "Inlet streams", PosX=0, PosY=0.5, Symbol="_{inMix}");
     40in  Inlet(Ninlet) as stream (Brief = "Inlet streams", PosX=0, PosY=0.5, Symbol="_{inMix}");
    4141out Outlet                      as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
    4242       
     
    4444       
    4545        "Flow"
    46         Outlet.F = sum(Inlet_mixer.F);
     46        Outlet.F = sum(Inlet.F);
    4747
    4848         for i in [1:NComp]
    4949       
    5050                "Composition"
    51         Outlet.F*Outlet.z(i) = sum(Inlet_mixer.F*Inlet_mixer.z(i));
     51        Outlet.F*Outlet.z(i) = sum(Inlet.F*Inlet.z(i));
    5252    end
    5353
    5454        "Energy Balance"
    55         Outlet.F*Outlet.h = sum(Inlet_mixer.F*Inlet_mixer.h);
     55        Outlet.F*Outlet.h = sum(Inlet.F*Inlet.h);
    5656
    5757        "Pressure"
    58         Outlet.P = min(Inlet_mixer.P);
     58        Outlet.P = min(Inlet.P);
    5959end
  • trunk/sample/mixers_splitters/sample_mixer.mso

    r366 r400  
    4646       
    4747        CONNECTIONS
    48         stream1.Outlet to mixer1.Inlet_mixer(1);
    49         stream2.Outlet to mixer1.Inlet_mixer(2);
     48        stream1.Outlet to mixer1.Inlet(1);
     49        stream2.Outlet to mixer1.Inlet(2);
    5050       
    5151        SPECIFY
Note: See TracChangeset for help on using the changeset viewer.