Ignore:
Timestamp:
Jul 17, 2008, 2:08:20 PM (15 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Added a new branch for the new gui

Location:
branches/gui
Files:
1 edited
1 copied

Legend:

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

    r400 r554  
    1414*
    1515*-------------------------------------------------------------------
    16 * Author: Maurício Carvalho Maciel
     16* Author: Rafael de Pelegrini Soares
     17*         Maurício Carvalho Maciel
    1718* $Id$
    1819*--------------------------------------------------------------------*#
     
    2122
    2223Model mixer
     24        ATTRIBUTES
     25        Pallete         = true;
     26        Icon            = "icon/mixer";
     27        Brief           = "Model of a mixer";
     28        Info            =
     29"== Assumptions ==
     30* static
     31* adiabatic
     32
     33== Specify ==
     34* the inlet streams";
     35       
     36        VARIABLES
     37in  Inlet1 as stream (Brief = "Inlet stream 1", PosX=0, PosY=0.25, Symbol="_{in1}");
     38in  Inlet2 as stream (Brief = "Inlet stream 2", PosX=0, PosY=0.75, Symbol="_{in2}");
     39out Outlet as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
     40       
     41        EQUATIONS
     42       
     43        "Flow"
     44        Outlet.F = Inlet1.F + Inlet2.F;
     45
     46        "Composition"
     47    Outlet.F*Outlet.z = Inlet1.F*Inlet1.z + Inlet2.F*Inlet2.z;
     48
     49        "Energy Balance"
     50        Outlet.F*Outlet.h = Inlet1.F*Inlet1.h + Inlet2.F*Inlet2.h;
     51
     52        "Pressure"
     53        Outlet.P = min([Inlet1.P, Inlet2.P]);
     54end
     55
     56Model mixer_n
    2357        ATTRIBUTES
    2458        Pallete         = true;
     
    4680        Outlet.F = sum(Inlet.F);
    4781
    48          for i in [1:NComp]
     82        for i in [1:NComp]
    4983       
    5084                "Composition"
Note: See TracChangeset for help on using the changeset viewer.