using "Types";
Model testebasic
PARAMETERS
outer Ncomp as Integer;
VARIABLES
T as Real;
P as Real;
#T as temperature;
#P as pressure;
z(Ncomp) as fraction;
Ml as Real;
Mv as Real;
#Ml as enth_mass;
#Mv as enth_mass;
end
Model teste as testebasic
PARAMETERS
outer Pseudo as Plugin(Type="Pseudo");
EQUATIONS
Ml=Pseudo.LE(T,P,z);
Mv=Pseudo.VE(T,P,z);
end
FlowSheet testefinal
PARAMETERS
Pseudo as Plugin(Type="Pseudo");
Ncomp as Integer(Default=2);
DEVICES
ent as teste;
SPECIFY
#ent.P=96.53*'bar';
#ent.T=588.71*'K';
ent.P=96.53;
ent.T=588.71;
ent.z(1)=0.3;
ent.z(2)=0.7;
OPTIONS
Dynamic = false;
end