Ticket #125: testeENt.mso

File testeENt.mso, 683 bytes (added by Rony melo, 13 years ago)

flowsheet de teste

Line 
1using "Types";
2
3Model testebasic
4        PARAMETERS
5outer Ncomp as Integer;
6        VARIABLES
7T as Real;     
8P as Real;
9#T as temperature;     
10#P as pressure;
11z(Ncomp) as fraction;
12Ml as Real;
13Mv as Real;
14#Ml as enth_mass;
15#Mv as enth_mass;
16
17end
18
19
20Model teste as testebasic
21        PARAMETERS
22outer   Pseudo as Plugin(Type="Pseudo");
23
24        EQUATIONS
25Ml=Pseudo.LE(T,P,z);
26Mv=Pseudo.VE(T,P,z);
27
28end
29
30FlowSheet testefinal
31        PARAMETERS
32        Pseudo as Plugin(Type="Pseudo");
33        Ncomp as Integer(Default=2);
34        DEVICES
35        ent as teste;
36        SPECIFY
37        #ent.P=96.53*'bar';
38        #ent.T=588.71*'K';
39        ent.P=96.53;
40        ent.T=588.71;
41        ent.z(1)=0.3;
42    ent.z(2)=0.7;
43
44
45
46
47OPTIONS
48        Dynamic = false;
49
50
51end