Changeset 363 for trunk


Ignore:
Timestamp:
Sep 8, 2007, 4:23:17 PM (15 years ago)
Author:
Argimiro Resende Secchi
Message:

Improved mixer model.

Location:
trunk/eml
Files:
2 edited

Legend:

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

    r354 r363  
    2020using "stage_separators/flash";
    2121
    22 Model mixer as flash_steady
     22Model mixer
    2323        ATTRIBUTES
    2424        Pallete         = true;
     
    2727        Info            =
    2828"== Assumptions ==
    29 * thermodynamics equilibrium
     29* static
    3030* adiabatic
    31        
     31
    3232== Specify ==
    3333* the inlet streams";
     
    3939        VARIABLES
    4040in  Inlet_mixer(Ninlet) as stream (Brief = "Inlet streams", PosX=0.5, PosY=0, Symbol="_{inMix}");
    41 out Outlet                      as stream (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
    42 out Out_int                             as stream (Brief = "Intermediate Outlet stream", Symbol="_{outint}");
    43         zeroQ as energy_source (Brief="No Heat rate supplied");
     41out Outlet                      as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
    4442       
    45         CONNECTIONS
    46        
    47         Out_int to Inlet;
    48         zeroQ.OutletQ to InletQ;
    49 
    5043        EQUATIONS
    5144       
    5245        "Flow"
    53         Out_int.F = sum(Inlet_mixer.F);
    54                
     46        Outlet.F = sum(Inlet_mixer.F);
     47
    5548         for i in [1:NComp]
    5649       
    5750                "Composition"
    58         Out_int.F*Out_int.z(i) = sum(Inlet_mixer.F*Inlet_mixer.z(i));
     51        Outlet.F*Outlet.z(i) = sum(Inlet_mixer.F*Inlet_mixer.z(i));
    5952    end
    6053
    6154        "Energy Balance"
    62         Out_int.F*Out_int.h = sum(Inlet_mixer.F*Inlet_mixer.h);
    63        
     55        Outlet.F*Outlet.h = sum(Inlet_mixer.F*Inlet_mixer.h);
     56
    6457        "Pressure"
    65         Out_int.P = min(Inlet_mixer.P);
    66         Out_int.P = OutletV.P;
    67        
    68         "Temperature"
    69         Out_int.T = OutletV.T;
    70        
    71         "Vapourisation Fraction"
    72         Out_int.v = vfrac;
    73        
    74         Outlet.F = Inlet.F;
    75         Outlet.z = Inlet.z;
    76         Outlet.v = Inlet.v;
    77         Outlet.T = Inlet.T;
    78         Outlet.h = Inlet.h;
    79         Outlet.P = Inlet.P;
    80        
    81         zeroQ.OutletQ.Q = 0*'kW';       
    82        
     58        Outlet.P = min(Inlet_mixer.P);
    8359end
    84 
  • trunk/eml/stage_separators/column.mso

    r353 r363  
    3535using "condenser";
    3636using "mixers_splitters/splitter";
    37 using "mixers_splitters/mixer";
    3837using "tank";
    3938using "pressure_changers/pump";
Note: See TracChangeset for help on using the changeset viewer.