public class ref17584Data extends Object
{
//this class reads and store refrigerant  data
String refrigerantName;
// ideal gas coefficients
double a_id[];
double b_id[];
double c_id[];
//real gas coefficient
double N[];
double t[];
int d[];
int l[];
int alpha[];
int m[];
double beta[];
double gamma[];
int eps[];
//critical coefficients
double N_cr[];
double a_cr[];
double b_cr[];
double beta_cr[];
double A_cr[];
double B_cr[];
double C_cr[];
double D_cr[];
//Reducing parameters
double Ts;    // derece K
double ros;   // kmol/m^3
double M;     // kg/kmol
double R;     // kJ/(kmol-K)
// Reference state parameters
double Tref;  // derece K
double Pref;  // kPa
double href;  // kJ/kmol
double sref;  // kJ/(kmolK)
double f1;
double f2;


public ref17584Data(String refrigerantNamei,double Tsi,double rosi,double Mi,double Ri,
double Trefi,double Prefi,double hrefi,double srefi,double f1i,double f2i)
{
refrigerantName=refrigerantNamei;
Ts=Tsi;
ros=rosi;
M=Mi;
R=Ri;
// Reference state parameters
Tref=Trefi;
Pref=Prefi;
href=hrefi;
sref=srefi;
f1=f1i;
f2=f2i;
}

public void input_id(double ai[],double bi[],double ci[])
{int n=ai.length;
 for(int i=0;i<n;i++) 
 {a_id[i]=ai[i];
  b_id[i]=bi[i];
  c_id[i]=ci[i];
 }
}
public void input_r(double Ni[],
double ti[],
int di[],
int li[],
int alphai[],
int mi[],
double betai[],
double gammai[],
int epsi[])
{int n=Ni.length;
 for(int i=0;i<n;i++) 
 {N[i]=Ni[i];
  t[i]=ti[i];
  d[i]=di[i];
  l[i]=li[i];
  alpha[i]=alphai[i];
  m[i]=mi[i];
  beta[i]=betai[i];
  gamma[i]=gammai[i];
  eps[i]=epsi[i];
 }
}

public void input_cr(double Ni[],
double ai[],
double bi[],
double betai[],
double Ai[],
double Bi[],
double Ci[],
double Di[])
{int n=Ni.length;
 for(int i=0;i<n;i++) 
 {N_cr[i]=Ni[i];
  a_cr[i]=ai[i];
  b_cr[i]=bi[i];
  beta_cr[i]=betai[i];
  A_cr[i]=Ai[i];
  B_cr[i]=Bi[i];
  C_cr[i]=Ci[i];
  D_cr[i]=Di[i];
 }
}

}