Ignore:
Timestamp:
Feb 27, 2009, 7:18:32 PM (13 years ago)
Author:
gerson bicca
Message:

updates (changes in icons/models/samples)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/mixers_splitters/mixer.mso

    r574 r739  
    2121using "streams";
    2222
    23 Model mixer
     23Model mixer2
    2424        ATTRIBUTES
    2525        Pallete         = true;
    2626        Icon            = "icon/mixer";
    27         Brief           = "Model of a mixer";
     27        Brief           = "Model of a mixer with 2 inputs";
    2828        Info            =
    2929"== Assumptions ==
     
    3434* the inlet streams";
    3535       
    36         VARIABLES
     36VARIABLES
     37
    3738in  Inlet1 as stream (Brief = "Inlet stream 1", PosX=0, PosY=0.25, Symbol="_{in1}");
    3839in  Inlet2 as stream (Brief = "Inlet stream 2", PosX=0, PosY=0.75, Symbol="_{in2}");
    3940out Outlet as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
    4041       
    41         EQUATIONS
     42EQUATIONS
    4243       
    43         "Flow"
     44"Flow"
    4445        Outlet.F = Inlet1.F + Inlet2.F;
    4546
    46         "Composition"
     47"Composition"
    4748    Outlet.F*Outlet.z = Inlet1.F*Inlet1.z + Inlet2.F*Inlet2.z;
    4849
    49         "Energy Balance"
     50"Energy Balance"
    5051        Outlet.F*Outlet.h = Inlet1.F*Inlet1.h + Inlet2.F*Inlet2.h;
    5152
    52         "Pressure"
     53"Pressure"
    5354        Outlet.P = min([Inlet1.P, Inlet2.P]);
     55       
     56end
     57
     58Model mixer3
     59        ATTRIBUTES
     60        Pallete         = true;
     61        Icon            = "icon/mixer";
     62        Brief           = "Model of a mixer with 2 inputs";
     63        Info            =
     64"== Assumptions ==
     65* static
     66* adiabatic
     67
     68== Specify ==
     69* the inlet streams";
     70       
     71VARIABLES
     72in  Inlet1 as stream (Brief = "Inlet stream 1", PosX=0, PosY=0.25, Symbol="_{in1}");
     73in  Inlet2 as stream (Brief = "Inlet stream 2", PosX=0, PosY=0.5059, Symbol="_{in2}");
     74in  Inlet3 as stream (Brief = "Inlet stream 3", PosX=0, PosY=0.75, Symbol="_{in3}");
     75out Outlet as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
     76       
     77EQUATIONS
     78       
     79"Flow"
     80        Outlet.F = Inlet1.F + Inlet2.F + Inlet3.F;
     81
     82"Composition"
     83    Outlet.F*Outlet.z = Inlet1.F*Inlet1.z + Inlet2.F*Inlet2.z + Inlet3.F*Inlet3.z;
     84
     85"Energy Balance"
     86        Outlet.F*Outlet.h = Inlet1.F*Inlet1.h + Inlet2.F*Inlet2.h + Inlet3.F*Inlet3.h;
     87
     88"Pressure"
     89        Outlet.P = min([Inlet1.P, Inlet2.P , Inlet3.P]);
     90
    5491end
    5592
    5693Model mixer_n
    5794        ATTRIBUTES
    58         Pallete         = true;
     95        Pallete         = false;
    5996        Icon            = "icon/mixer";
    60         Brief           = "Model of a mixer";
     97        Brief           = "Model of a generic mixer (NOT Handled By the GUI) ";
    6198        Info            =
    6299"== Assumptions ==
Note: See TracChangeset for help on using the changeset viewer.