source: trunk/eml/mixers_splitters/mixer.mso @ 753

Last change on this file since 753 was 400, checked in by gerson bicca, 16 years ago

updated mixer model

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
RevLine 
[1]1#*-------------------------------------------------------------------
[76]2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
14*
15*-------------------------------------------------------------------
[1]16* Author: Maurício Carvalho Maciel
17* $Id: mixer.mso 400 2007-11-09 21:41:38Z bicca $
18*--------------------------------------------------------------------*#
19
[400]20using "streams";
[1]21
[363]22Model mixer
[269]23        ATTRIBUTES
24        Pallete         = true;
[304]25        Icon            = "icon/mixer";
[269]26        Brief           = "Model of a mixer";
[354]27        Info            =
28"== Assumptions ==
[363]29* static
[354]30* adiabatic
[363]31
[354]32== Specify ==
33* the inlet streams";
[269]34       
[1]35        PARAMETERS
[176]36outer NComp as Integer (Brief = "Number of chemical components", Lower = 1);
37          Ninlet as Integer (Brief = "Number of Inlet Streams", Lower = 1, Default = 2);
[1]38       
39        VARIABLES
[400]40in  Inlet(Ninlet) as stream (Brief = "Inlet streams", PosX=0, PosY=0.5, Symbol="_{inMix}");
[363]41out Outlet                      as streamPH (Brief = "Outlet stream", PosX=1, PosY=0.5059, Symbol="_{out}");
[1]42       
43        EQUATIONS
44       
45        "Flow"
[400]46        Outlet.F = sum(Inlet.F);
[363]47
[1]48         for i in [1:NComp]
49       
50                "Composition"
[400]51        Outlet.F*Outlet.z(i) = sum(Inlet.F*Inlet.z(i));
[1]52    end
53
54        "Energy Balance"
[400]55        Outlet.F*Outlet.h = sum(Inlet.F*Inlet.h);
[363]56
[1]57        "Pressure"
[400]58        Outlet.P = min(Inlet.P);
[1]59end
Note: See TracBrowser for help on using the repository browser.