#include
#include
void main()
{
clrscr();
double Qf,S,Jv,Pf,Cf,U;
double L,W;
cout<<"Enter Qf:"; cin>>Qf;
cout<<"Enter L:"; cin>>L;
cout<<"Enter W:"; cin>>W;
cout<<"Enter Pf:"; cin>>Pf;
cout<<"Enter Cf:"; cin>>Cf;
cout<<"Enter U:"; cin>>U;
int n=5,m=5,i,j=1;
S=2*(L*W)/(m*n);
Jv=2.1528*pow(10,-7); //Assumed value of volumetric flux
//double phi=1.00392; //Assumed value of phi
int leaves=3;
double Qb[6][6];
double Cb[6][6];
double Ub[6][6];
double k[6][6];
double Pb[6][6];
double Pp[6][6];
double kfb=18.3673*pow(10,(8));
double hp=.0003;
double nf;
double JV[6][6];
double phi[6][6];
double R[6][6];
double F[6][6];
double Cp[6][6];
double Qpt=0;
double Cpt=0;
cout<<"Enter nf:"; cin>>nf;
double mu=9.02*pow(10,(-4));
double A=2.085*pow(10,(-12));
double B=1.1*pow(10,(-7));
double hb=7*pow(10,(-4));
Pp[5][1]=101325;
Ub[5][1]=U;
Cb[5][1]=Cf;
Pb[5][1]=Pf;
Qb[5][1]=Qf/(n*leaves); //initializing value
for(j=1;j<6;j++) i="4;i">0;i--)
{
Qb[i][j]=Qb[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
Cb[i][j]=Cb[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
Ub[i][j]=Ub[i+1][j];
k[i][j]=k[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
Pb[i][j]=Pb[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
Pp[i][j]=Pp[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
JV[i][j]=JV[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
phi[i][j]=phi[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
F[i][j]=F[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
R[i][j]=R[i+1][j];
}
}
for(j=1;j<6;j++) i="4;i">0;i--)
{
Cp[i][j]=Cp[i+1][j];
}
}
for(j=1;j<6;j++)
{
Qpt=Qpt+(5*JV[5][j]*S*leaves);
}
Qpt=Qpt*0.85;
cout<<"\nPredicted value of Qpt=";
cout<
{
Cpt=Cpt+((5*JV[5][j]*Cp[5][j]*S*leaves)/Qpt);
}
Cpt=Cpt/36.48;
cout<<"\nPredicted value of Cpt=";
cout<
getch();
// //display
cout<<"\n\n\n";
cout<<"\t\t\t\t\tQb matrix displayed\n";
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
cout<<"\n\n\n";
for(i=1;i<6;i++)
{
cout<<"\n\n";
for(j=1;j<6;j++)
{
cout<
0 comments:
Post a Comment