1 | using "Types"; |
---|
2 | |
---|
3 | Model testebasic |
---|
4 | PARAMETERS |
---|
5 | outer Ncomp as Integer; |
---|
6 | VARIABLES |
---|
7 | T as Real; |
---|
8 | P as Real; |
---|
9 | #T as temperature; |
---|
10 | #P as pressure; |
---|
11 | z(Ncomp) as fraction; |
---|
12 | Ml as Real; |
---|
13 | Mv as Real; |
---|
14 | #Ml as enth_mass; |
---|
15 | #Mv as enth_mass; |
---|
16 | |
---|
17 | end |
---|
18 | |
---|
19 | |
---|
20 | Model teste as testebasic |
---|
21 | PARAMETERS |
---|
22 | outer Pseudo as Plugin(Type="Pseudo"); |
---|
23 | |
---|
24 | EQUATIONS |
---|
25 | Ml=Pseudo.LE(T,P,z); |
---|
26 | Mv=Pseudo.VE(T,P,z); |
---|
27 | |
---|
28 | end |
---|
29 | |
---|
30 | FlowSheet 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 | |
---|
47 | OPTIONS |
---|
48 | Dynamic = false; |
---|
49 | |
---|
50 | |
---|
51 | end |
---|