• No results found

Hybrid SimulatorHybrid Simulator

Hybrid Simulator

The

These se tootools ls comcombinbine e the the feafeaturtures es of of cocontintinuonuous us simsimululatoators rs and and discdiscretretee simulators. That is, they solve differential equations, but can superimpose simulators. That is, they solve differential equations, but can superimpose discrete events on the continuously varying system.

discrete events on the continuously varying system. Goldsim is a hybridGoldsim is a hybrid simulator.

simulator.

Problem

Problem

Included in table are the data for

Included in table are the data for the McCabe-Thiele method at R=1.029, thethe McCabe-Thiele method at R=1.029, the reflux ratio used for exact

reflux ratio used for exact Ponchon-Savarit calculation. It is noteworthy thatPonchon-Savarit calculation. It is noteworthy that for either method each at

for either method each at 1.5 times its respective value of 1.5 times its respective value of  R R mm, the no. of , the no. of  stages is essentially the same, and

stages is essentially the same, and the maximum flow rates which would bethe maximum flow rates which would be used to set the mechanical design of the

used to set the mechanical design of the tower are sufficiently similar for thetower are sufficiently similar for the same final design to result.

double pj_sat(double pj1,double pjx,double pjg1,double pjg2,double double pj_sat(double pj1,double pjx,double pjg1,double pjg2,double pjp1,double pjp2);

pjp1,double pjp2);

double pj_satb(double pj1,double pjy,double pjg1,double pjg2,double double pj_satb(double pj1,double pjy,double pjg1,double pjg2,double pjp1,double pjp2);

double equili(doubequili(double le y);y);

double setq();

class bubl { l { double tdouble t1,t2,t3,tn,y1,t2,t3,tn,y1,y2,temp;1,y2,temp;

double

double a1,a2,b1,b2,c1,a1,a2,b1,b2,c1,c2;c2;

public

public : : double double p1,x1,x2;p1,x1,x2;

bubl()

c1=239.76;

{{

{cout<<"ENTER THE VALUE OF PRESSURE \n ";

{cout<<"ENTER THE VALUE OF PRESSURE \n ";

cin>> p1;

cin>> p1;

cout<<"ENTER THE VALUE OF MOLE FRACTION OF FIRST cout<<"ENTER THE VALUE OF MOLE FRACTION OF FIRST COMPONENT X1 \n";

class activity { { double b12,b21,alpha,tou12,double b12,b21,alpha,tou12,tou21,G12,G2tou21,G12,G21;1;

public : double gamma1,gamma2;

void activity :: set_tou ( double t void activity :: set_tou ( double t )) {{

double t1,t2;

double t1,t2;

t2=t+273.15;

t2=t+273.15;

t1= 1.987*t2;

/*void activity:: activity:: read_x read_x ()()

{ cout<<"ENTER THE VALUE OF MOLE FRACTION OF { cout<<"ENTER THE VALUE OF MOLE FRACTION OF COMPONENT 1\n";

COMPONENT 1\n";

cin>>x1;

cin>>x1;

cout<<"ENTER THE VALUE OF MOLE FRACTION OF cout<<"ENTER THE VALUE OF MOLE FRACTION OF COMPONENT 2\n";

void activity:: set_gamma (double x1,double x2 ) void activity:: set_gamma (double x1,double x2 ) {{

double

{cout<<"THE VALUE OF ACTIVITY COEFFICIENT FOR THE {cout<<"THE VALUE OF ACTIVITY COEFFICIENT FOR THE FIRST COMPONENT IS \n";

{ // // double double xxd,xxf,xxxxd,xxf,xxww,rr,rr,qq,n=0,i,qq,n=0,ix,iy,xx2,t,p,x2,yx,iy,xx2,t,p,x2,y2;2;

clrscr();

clrscr();

cout<<"ENTER THE MOLE FRACTION OF TOP PRODUCT: \n";

cout<<"ENTER THE MOLE FRACTION OF TOP PRODUCT: \n";

cin>>xxd;

cin>>xxd;

cout<<"ENTER THE MOLE FRACTION OF BOTTOM PRODUCT:

cout<<"ENTER THE MOLE FRACTION OF BOTTOM PRODUCT:

\n";

\n";

cin>>xxw;

cin>>xxw;

cout<<"ENTER THE MOLE FRACTION OF FEED: \n";

cout<<"ENTER THE MOLE FRACTION OF FEED: \n";

cin>>xxf;

// cout<<"enter the operating conditions :"<<endl;operating conditions :"<<endl;

cout<<"ENTER THE TEMPERATURE OF FEED IN cout<<"ENTER THE TEMPERATURE OF FEED IN CENTIGRADES:\n";

CENTIGRADES:\n";

cin>>t;

cin>>t;

cout<<"ENTER THE PRESSURE OF FEED IN kPa:\n";

cout<<"ENTER THE PRESSURE OF FEED IN kPa:\n";

cin>>p;

{{

cout<<"THE THEORETICAL NUMBER OF PLATES ARE "<<endl;

cout<<"THE THEORETICAL NUMBER OF PLATES ARE "<<endl;

cout<<n<<"\n";

//b.read_data();/*READ VALUES OF PRESSURE AND X1*/

//b.read_data();/*READ VALUES OF PRESSURE AND X1*/

a1=b.anto(p,1);

cout<<"ENTER THE VALUE OF TEMPERATURE \n ";

cout<<"ENTER THE VALUE OF TEMPERATURE \n ";

cin>> temp;

a.set_G();

a2=pj_sat(p,ax,g1,g2,a1,a2p,ax,g1,g2,a1,a2);/*SPECIES 2 );/*SPECIES 2 IS IS J*/J*/

T= b.anto(a2,2);

// cout<<"ENTER THE VALUE OF PRESSURE \n";

// cout<<"ENTER THE VALUE OF PRESSURE \n";

// cin>>b.p1;

// cin>>b.p1;

// cout<<"ENTER THE VALUE OF MOLE FRACTION Y1 \n";

// cout<<"ENTER THE VALUE OF MOLE FRACTION Y1 \n";

y1=ay;

b.x2=1-b.x1;

double pj_sat(double pj1,double pjx,double pjg1,double pjg2,double double pj_sat(double pj1,double pjx,double pjg1,double pjg2,double pjp1,double pjp2)

double pj_satb(double pj1,double pjy,double pjg1,double pjg2,double double pj_satb(double pj1,double pjy,double pjg1,double pjg2,double pjp1,double pjp2)

return z2;

cout<<"3. Mixture of saturated liquid & saturated vapor\n";

cout<<"3. Mixture of saturated liquid & saturated vapor\n";

cout<<"4. Saturated vapor\n";

cout<<"4. Saturated vapor\n";

cout<<"5. Superheated

cout<<"5. Superheated vapor\n";vapor\n";

// cout<<"enter the feed condition : \n";

// cout<<"enter the feed condition : \n";

cin>>ch;

cout<<"enter the total number of moles in the liquid feed :\n";

cout<<"enter the total number of moles in the liquid feed :\n";

cin>>fl;

cin>>fl;

cout<<"enter the total number of moles in the vapor feed :\n";

cout<<"enter the total number of moles in the vapor feed :\n";

cin>>fg;

cin>>fg;

hf=(hl*fl)+(hg*fg);

hf=(hl*fl)+(hg*fg);

t1=hg-hf;

float t1,t2,t3,t4,v1=33536.268,v2=411157.68,y2 , 157.68,y2 , cl1=87.18, cl2=75.44914;cl1=87.18, cl2=75.44914;

t1=th-t;

double t1,t2,t3,t4;

i=s*ix;

i=s*ix;

i=-i+iy;

i=-i+iy;

// cout<<"the

// cout<<"the slope"<<s<<endl;slope"<<s<<endl;

//

// cout<<"the intercept"<<i;cout<<"the intercept"<<i;

return t1;

return t1;

}}

double

double equili(doubequili(double le y)y) {{

double a;

double a;

a=4.5;

a=4.5;

double t1,t2;

double t1,t2;

t1=(a-(a*y) +y);

t1=(a-(a*y) +y);

t2=y/t1;

t2=y/t1;

return t2;

return t2;

}}

Bibliography Bibliography

Mass-Transfer Operations-Robert E. Treybal Mass-Transfer Operations-Robert E. Treybal

Unit Operations in Chemical Engg.-McCabe Smith Herriot Unit Operations in Chemical Engg.-McCabe Smith Herriot www.wikipedia.com

www.wikipedia.com www.scienceworld.com www.scienceworld.com

Related documents