import javax.swing.*;

public class packed_bedtest
{
public static void main(String arg[])
{
packed_bed pb=new packed_bed(1.01325);
           double width=1.0;//m
           double L=2.0;//m
           double Do=0.020;//m
           double De=0.080;//m
           double Ul=4.2;//W/m2K
           double Cb=35.0;//W/mK
           double ks=1.73;//W/mK
           double Cps=835;//j/kgK
           double ros=1920.0;//kg/m^3
           double eps=0.45;
           double sp=0.55;
           double toalfa=0.82;
           double mu=2.0729E-5;//kg/s*m
           double deltat=900.0;//second
           double deltax=0.083;//m
           double Tamb=40.0;//C
           double N=24.0;
           double Vb=2.0;//m^3	      
	       double hfi=300;//W/m2K
	       double eps1=0.95;
	       double eps2=0.95;
	       double hv=1284.99;//W/m^3K
	       double Ti=25.0;//C
	       double T0=40.0;//C
	       double A=2.0;//m^2
	       double U=20.767;//W/m^2K
	       double deltaA=0.168;//m^2
	       double Tbm=40.0;//C
	       double Tbi=25.0;//C
	       double Tave=40+273.15;//K
	       double sigma=5.67E-08;
	       double h=59.9;//W/m2K
	       double Tfi=70+273.15;//K
	       moist_air ma=new moist_air();
           double ttt=80.0;//C
           double www=6.885E-3;//kg su buharı/kg kuru hava
           double v=0.2; // m/s
           double rho=ma.ro_moistw(ttt,www);// in kg/m3
	       double Cp=ma.Cp_moistw(ttt,www);
	       double k=ma.Cp_moistw(ttt,www);
           double delta=0.5e-3;
           double A1=0.01;//m2 Air Channel Depth*wide
           double tch=28800.0;//second
           double Ac=4.0;//m2
           double Ta=20+273.15;//K
	       double I=500.0;//W/m2
//double miçhava=Double.parseDouble(JOptionPane.showInputDialog("iç hava debisi msu kg/s = "));
//double mtazehava=Double.parseDouble(JOptionPane.showInputDialog("taze hava debisi mhava kg/s = "));
 double tbi=Double.parseDouble(JOptionPane.showInputDialog("mean temperature of bed degree C = "));
 double tai=Double.parseDouble(JOptionPane.showInputDialog( "initial inlet air temperature degree C = "));
 //double two=Double.parseDouble(JOptionPane.showInputDialog("iç hava çıkış sıcaklığı derece C = "));
//double tao=Double.parseDouble(JOptionPane.showInputDialog("taze hava çıkış sıcaklığı derece C = "));
//double t_kh=Double.parseDouble(JOptionPane.showInputDialog("kuru hava sıcaklığı derece C = "));
//double t_yh=Double.parseDouble(JOptionPane.showInputDialog("yaş hava sıcaklığı derece C = "));
double x1=pb.temperature_distribution(h,Ul,Vb,Tbm,Tave,sigma,eps1,eps2,k,delta,I,toalfa,Ti,T0,Tamb,tai,tbi,Cp,deltax,N,A,deltaA,L,deltat,ros,eps,Cps,U,Ac,De,true);
}
}