source: trunk/eml/heat_exchangers/Mheatex.mso @ 284

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

updated ATTRIBUTES section in heat exchangers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[78]1#*-------------------------------------------------------------------
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.
[1]14*----------------------------------------------------------------------
15* Author: Gerson Balbueno Bicca
16* $Id: Mheatex.mso 284 2007-06-16 22:23:13Z bicca $
17*--------------------------------------------------------------------*#
[45]18
[164]19using "HEX_Engine.mso";
[1]20
21Model Mheatex
[135]22       
23ATTRIBUTES
[284]24        Icon = "Mheatex";
[139]25        Pallete = true;
[284]26        Brief = "Model of a Multistream heat exchangers";
[135]27        Info =
[197]28        "Heat Transfer between multiple hot and cold streams.";
[135]29       
[1]30PARAMETERS
31
[176]32outer PP                                        as Plugin       (Brief="Physical Properties", Type="PP");
[284]33outer   NComp                   as Integer      (Brief="Number of Components");
34        FlowDirection           as Switcher(Brief="Flow Direction",Valid=["counter","cocurrent"],Default="cocurrent");
[144]35        Ncold                                           as Integer      (Brief="Number of Inlet Cold Streams",Lower=1);
36        Nhot                                            as Integer      (Brief="Number of Inlet Hot Streams",Lower=1);
[45]37       
[1]38VARIABLES
39
[164]40in      InletHot(Nhot)                  as stream               (Brief="Inlet Hot Streams");           
41out     OutletHot(Nhot)                 as streamPH     (Brief="Outlet Hot Streams");
42in      InletCold(Ncold)                as stream               (Brief="Inlet Cold Streams");           
43out     OutletCold(Ncold)       as streamPH     (Brief="Outlet Cold Streams");
[1]44
[164]45        Method  as LMTD_Basic   (Brief="Log Mean Temperature Difference Method");
46        Q               as power                        (Brief="Heat Transfer", Default=7000, Lower=1e-6, Upper=1e10);
47        UA              as Real                 (Brief="UA product",Unit='W/K',Lower=1e-8);
[131]48       
[1]49EQUATIONS
50
51"Hot Flow"
[164]52        OutletHot.F = InletHot.F;       
[1]53
54"Cold Flow"
[164]55        OutletCold.F = InletCold.F;
[1]56       
57"Hot Composition"
[164]58        OutletHot.z = InletHot.z;
[1]59       
60"Cold Composition"
[164]61        OutletCold.z = InletCold.z;
[1]62       
63"Heat Duty Hot Stream"
[164]64        Q =  sum(InletHot.F*(InletHot.h- OutletHot.h));
[1]65       
66"Heat Duty Cold Stream"
[164]67        Q = -sum(InletCold.F*(InletCold.h- OutletCold.h));
[1]68       
69"Heat Duty"
[168]70        Q = UA*Method.LMTD*Method.Fc;
[1]71
[144]72switch FlowDirection
[1]73       
[140]74case    "cocurrent":
75
[131]76"Temperature Difference at Inlet"
[164]77        Method.DT0 = max(InletHot.T) - min(InletCold.T);
[131]78
79"Temperature Difference at Outlet"
[164]80        Method.DTL = min(OutletHot.T) - max(OutletCold.T);
[131]81       
[140]82case "counter":
[1]83       
[131]84"Temperature Difference at Inlet"
[164]85        Method.DT0 = max(InletHot.T) - max(OutletCold.T);
[131]86
87"Temperature Difference at Outlet"
[164]88        Method.DTL = min(OutletHot.T) - min(InletCold.T);
[131]89       
[1]90end
91
92end
Note: See TracBrowser for help on using the repository browser.