source: mso/eml/reactors/batch.mso @ 24

Last change on this file since 24 was 8, checked in by Rafael de Pelegrini Soares, 17 years ago

Fixed some samples and removed duplicated ones

File size: 1.2 KB
Line 
1#*---------------------------------------------------------------------
2* This file is property of the author and cannot be used, copyed
3* or modified without permission.
4*
5* Copyright (C) 2002-2004  the author
6*----------------------------------------------------------------------
7* Author: Paula Bettio Staudt
8*         Rafael de Pelegrini Soares
9* $Id: sample_batch.mso 1 2006-06-20 17:33:53Z rafael $
10*----------------------------------------------------------------------
11*
12* Sample file for a isotermic batch reactor.
13*
14*-------------------------------------------------------------------*#
15
16using "streams";
17 
18Model batch_basic
19        PARAMETERS
20ext     NComp as Integer;
21        NReac as Integer;
22        stoic(NComp, NReac) as Real (Brief = "Stoichiometric Matrix");
23
24        VARIABLES
25in      Inlet      as stream;
26        C(NComp) as conc_mol(Brief="Components concentration");
27        r(NReac) as reaction_mol(Brief = "Reaction rates");
28        T          as temperature(Brief="Reactor temperature");
29        P          as pressure(Brief="Reactor pressure");
30        Vr         as volume (Brief = "Reacting Volume");
31       
32        EQUATIONS
33        "Component Molar Balance"
34        diff(C*Vr) = Inlet.F*Inlet.z + sumt(stoic*r)*Vr;
35end
36
37
38Model batch_isotermic as batch_basic
39        EQUATIONS
40        "Isotermic"
41        T = Inlet.T;
42       
43        "Isobaric"
44        P = Inlet.P;
45end
46
Note: See TracBrowser for help on using the repository browser.