public class sogut1Data extends Object
{
// bu sınıf R12-R22 için Japon soğutma derneği 
//(Japanese Association of Refrigeration)
// denklemlerinin katsayılarını girer 
public String refrigerantName;
public String openName;
public double R;
public double A[];
public double aVP[];
public double G[]; // ideal gas heat capacitiy
public double E[]; // saturated liquid density
public double F[]; // saturated vapor density
public double vl[]; //saturated liquid viscosity
public double vv[]; //saturated vapor viscosity
public double kl[];//saturated liquid thermal conductivity
public double kv[]; //saturated vapor thermal conductivity
public double st[];//saturated liquid-vapor interrphase surface tension
public double Pc;
public double Vc;
public double Tc;
public double M;
public double X;
public double Y;
public double roi;
public double Ti;

 public sogut1Data(String refrigerantNamei,String openNamei,
                   double Ri,double Qii,double Tii, 
 double Pci,double Vci,double Tci,double Mi,double Xi,double Yi)
 {
   refrigerantName=refrigerantNamei;
   openName=openNamei;
   R=Ri;
   A=new double[28];
   aVP=new double[5];
   G=new double[6];
   E=new double[6];
   F=new double[24];
   vl=new double[9];
   vv=new double[9];
   kl=new double[9];
   kv=new double[9];
   st=new double[9];
   roi=Qii;
   Ti=Tii;
   Pc=Pci;
   Vc=Vci;
   Tc=Tci;
   M=Mi;
   X=Xi;
   Y=Yi;
   }
   
   public void EOS_in(double A1,double A2, double A3,double A4,double A5, double A6,double A7,double A8, double A9,
   double A10,double A11, double A12,double A13,double A14, double A15,double A16,double A17,double A18,double A19,
   double A20,double A21, double A22,double A23,double A24, double A25,double A26,double A27,double A28)
   {
   A[0]=A1;A[1]=A2;A[2]=A3;A[3]=A4;A[4]=A5;
   A[5]=A6;A[6]=A7;A[7]=A8;A[8]=A9;A[9]=A10;
   A[10]=A11;A[11]=A12;A[12]=A13;A[13]=A14;A[14]=A15;
   A[15]=A16;A[16]=A17;A[17]=A18;A[18]=A19;A[19]=A20;
   A[20]=A21;A[21]=A22;A[22]=A23;A[23]=A24;A[24]=A25;
   A[25]=A26;A[26]=A27;A[27]=A28;
   }
   
   public void vapor_pressure_in(double aVP1,double aVP2,double aVP3,double aVP4, double aVP5)
   {aVP[0]=aVP1;aVP[1]=aVP2;aVP[2]=aVP3;aVP[3]=aVP4;aVP[4]=aVP5;}
   
   public void viscosity_liq_in(double avl1,double avl2,double avl3,double avl4, double avl5,double avl6,double avl7, double avl8,double avl9)
   {vl[0]=avl1;vl[1]=avl2;vl[2]=avl3;vl[3]=avl4;vl[4]=avl5;vl[5]=avl6;vl[6]=avl7;vl[7]=avl8;vl[8]=avl9;}
      
   public void viscosity_vap_in(double avv1,double avv2,double avv3,double avv4, double avv5,double avv6,double avv7, double avv8,double avv9)
   {vv[0]=avv1;vv[1]=avv2;vv[2]=avv3;vv[3]=avv4;vv[4]=avv5;vv[5]=avv6;vv[6]=avv7;vv[7]=avv8;vv[8]=avv9;}
   
   public void thermal_conductivity_liq_in(double akl1,double akl2,double akl3,double akl4, double akl5,double akl6,double akl7, double akl8,double akl9)
   {kl[0]=akl1;kl[1]=akl2;kl[2]=akl3;kl[3]=akl4;kl[4]=akl5;kl[5]=akl6;kl[6]=akl7;kl[7]=akl8;kl[8]=akl9;}
   
   public void thermal_conductivity_vap_in(double akv1,double akv2,double akv3,double akv4, double akv5,double akv6,double akv7, double akv8,double akv9)
   {kv[0]=akv1;kv[1]=akv2;kv[2]=akv3;kv[3]=akv4;kv[4]=akv5;kv[5]=akv6;kv[6]=akv7;kv[7]=akv8;kv[8]=akv9;}
   
   public void surface_tension_in(double ast1,double ast2,double ast3,double ast4, double ast5,double ast6,double ast7, double ast8,double ast9)
   {st[0]=ast1;st[1]=ast2;st[2]=ast3;st[3]=ast4;st[4]=ast5;st[5]=ast6;st[6]=ast7;st[7]=ast8;st[8]=ast9;}
   
   public void ideal_gas_heat_capacity_in(double G1,double G2,double G3,double G4, double G5, double G6)
   {G[0]=G1;G[1]=G2;G[2]=G3;G[3]=G4;G[4]=G5;G[5]=G6;}
   
   public void saturated_liquid_density_in(double E1,double E2,double E3,double E4, double E5, double E6)
   {E[0]=E1;E[1]=E2;E[2]=E3;E[3]=E4;E[4]=E5;E[5]=E6;}
   
   public void saturated_vapor_density_in(double F1,double F2,double F3,double F4, double F5, double F6, double F7,double F8,double F9,double F10,
   double F11,double F12,double F13,double F14, double F15, double F16, double F17,double F18,double F19,double F20,
   double F21,double F22,double F23,double F24)
   { F[0]=F1;F[1]=F2;F[2]=F3;F[3]=F4;F[4]=F5;
   F[5]=F6;F[6]=F7;F[7]=F8;F[8]=F9;F[9]=F10;
   F[10]=F11;F[11]=F12;F[12]=F13;F[13]=F14;F[14]=F15;
   F[15]=F16;F[16]=F17;F[17]=F18;F[18]=F19;F[19]=F20;
   F[20]=F21;F[21]=F22;F[22]=F23;F[23]=F24;}      
   
   public String toString()
   {
   int i;
   String s="";
   s+="RN = "+refrigerantName+"\n";
   s+="RN = "+openName+"\n";
   s+="HAL DENKLEMİ\n";
   s+="R="+R+"\n";
   s+=" A B C\n";
   for(i=0;i<A.length;i++)
   {s+=(i+1)+" "+A[i]+"\n";}
   s+="Doymuş Buhar basıncı denklemi aVp\n";
   for(i=0;i<aVP.length;i++)
   {s+=(i+1)+" "+aVP[i]+"\n";}
   s+="ideal gaz özgül ısı denklemi  G\n";
   for(i=0;i<G.length;i++)
   {s+=(i+1)+" "+G[i]+"\n";}
   s+="doymuş sıvı yoğunluğu denklemi E\n";
   for(i=0;i<E.length;i++)
   {s+=(i+1)+" "+E[i]+"\n";}
   s+="doymuş buhar yoğunluğu denklemi E\n";
   for(i=0;i<F.length;i++)
   {s+=(i+1)+" "+F[i]+"\n";}
   s+="kritik parametreler \n";
   s+="Pc="+Pc+"\n";
   s+="Vc="+Vc+"\n";
   s+="Tc="+Tc+"\n";
   s+="M="+M+"\n";
   s+="X="+X+"\n";
   s+="Y="+Y+"\n";
   s+="roi="+roi+"\n";
   s+="Ti="+Ti+"\n";
   return s;
   }
}
