source: trunk/eml/reactors/batch.mso @ 437

Last change on this file since 437 was 378, checked in by gerson bicca, 15 years ago

improved documentation

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
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.
14*
15*--------------------------------------------------------------------
16* Author: Paula B. Staudt and Rafael P. Soares
17* $Id: batch.mso 378 2007-10-02 14:09:18Z bicca $
18*------------------------------------------------------------------*#
19
20using "streams";
21 
22Model batch_basic
23        ATTRIBUTES
24        Pallete         = true;
25        Icon            = "icon/batch";
26        Brief           = "Model of a batch reactor";
27        Info            =
28"== Assumptions ==
29* isothermic
30";
31
32PARAMETERS
33
34outer   NComp as Integer;
35        NReac as Integer;
36        stoic(NComp, NReac) as Real (Brief = "Stoichiometric Matrix");
37
38VARIABLES
39
40in      Inlet      as stream (Brief="Inlet stream", PosX=0, PosY=0, Symbol="_{in}");
41        C(NComp) as conc_mol (Brief="Components concentration");
42        r(NReac) as reaction_mol (Brief = "Reaction rates");
43        T          as temperature (Brief="Reactor temperature");
44        P          as pressure (Brief="Reactor pressure");
45        Vr         as volume (Brief = "Reacting Volume");
46       
47        EQUATIONS
48        "Component Molar Balance"
49        diff(C*Vr) = Inlet.F*Inlet.z + sumt(stoic*r)*Vr;
50end
51
52
53Model batch_isothermic as batch_basic
54        ATTRIBUTES
55        Pallete         = true;
56        Icon            = "icon/batch";
57        Brief           = "Model of a isothermal batch reactor";
58        Info            = "
59Assumptions
60* isothermic
61";
62       
63        EQUATIONS
64        "Isotermic"
65        T = Inlet.T;
66       
67        "Isobaric"
68        P = Inlet.P;
69end
70
Note: See TracBrowser for help on using the repository browser.