From 48ea432b914cf3e6f4a75a274c7c7a759d101f0f Mon Sep 17 00:00:00 2001 From: JDontoh Date: Mon, 30 Oct 2017 18:00:40 +0100 Subject: [PATCH 1/4] adding assignment 6 - Jude Dontoh --- .../Assignment6_Veri.py | 24 ++++++++ .../Assignment6_step1_Appiah.py | 47 +++++++++++++++ .../Assignment6_Botti/Assignment6_Botti.py | 44 ++++++++++++++ .../Assignment6_CHEN/Assignment6_CHEN.py | 43 +++++++++++++ .../Assignment6_Cremona.py | 37 ++++++++++++ .../Assignment6_Depalo/Assigment6_Depalo.py | 52 ++++++++++++++++ .../Assignment6_Funes/assignment6_Funes.py | 58 ++++++++++++++++++ .../Assignment6_Step1_Pedroza.py | 60 +++++++++++++++++++ .../assignment6_khoudari.py | 55 +++++++++++++++++ .../Assignment6_Paul/Assignment6_Paul.py | 33 ++++++++++ .../Assignment6_Russano.py | 60 +++++++++++++++++++ .../Assignment6_Wong/assigment6_step1_Wong.py | 38 ++++++++++++ .../assignment6_step1_Dontoh.py | 47 +++++++++++++++ .../Assignment6_Sanchez.py | 27 +++++++++ .../Note about Assignmnet 6.txt | 1 + .../__GUIDELINES__/assignment6_guideline.py | 20 +++++++ .../assignment6.zhang/assignment6.zhang.py | 31 ++++++++++ 17 files changed, 677 insertions(+) create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_AlessandraVeri/Assignment6_Veri.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Appiah/Assignment6_step1_Appiah.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Botti/Assignment6_Botti.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_CHEN/Assignment6_CHEN.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Cremona/Assignment6_Cremona.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Depalo/Assigment6_Depalo.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Funes/assignment6_Funes.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Karla/Assignment6_Step1_Pedroza.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Khoudari/assignment6_khoudari.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Paul/Assignment6_Paul.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Russano/Assignment6_Russano.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Wong/assigment6_step1_Wong.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Dontoh/assignment6_step1_Dontoh.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Sanchez/Assignment6_Sanchez.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/Note about Assignmnet 6.txt create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/assignment6_guideline.py create mode 100644 Assignment 6-Pandas A-Deadline Oct 31 2017/assignment6.zhang/assignment6.zhang.py diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_AlessandraVeri/Assignment6_Veri.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_AlessandraVeri/Assignment6_Veri.py new file mode 100644 index 0000000..82771c3 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_AlessandraVeri/Assignment6_Veri.py @@ -0,0 +1,24 @@ +import pandas as pd +R1_list = ["series","conv",10,None,None, 0.25, 0] +R2_list = ["series","cond",None,0.03,0.026, 0.25, 0] +R3_list = ["series","cond",None,0.02,0.22, 0.25, 0] +R4_list = ["series","cond",None,0.02,0.22, 0.25, 0] +R5_list = ["series","conv",25,None,None, 0.25, 0] +R6_list = ["parallel","cond",None,0.16,0.22, 0.015, 0] +R7_list = ["parallel","cond",None,0.16,0.22, 0.015, 0] +R8_list = ["parallel","cond",None,0.16,0.72, 0.22, 0] + +resistances_names = ["R1","R2","R3","R4","R5","R6","R7","R8"] +columns_names=["type1","type2","h","L","k","A","RValue"] +Resistances_DF=pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list,R6_list,R7_list,R8_list],index=resistances_names,columns=columns_names) +Resistances_DF["RValue"][Resistances_DF["type2"]=="conv"]=1.0/(Resistances_DF["h"][Resistances_DF["type2"]=="conv"]*Resistances_DF["A"]) +Resistances_DF["RValue"][Resistances_DF["type2"]=="cond"]=Resistances_DF["L"]/(Resistances_DF["k"]*Resistances_DF["A"]) +inv_Rpar=1.0/(Resistances_DF["RValue"][Resistances_DF["type2"]=="cond"][Resistances_DF["type1"]=="parallel"]) +Rpar=inv_Rpar.sum() +Rser=Resistances_DF["RValue"][Resistances_DF["type1"]=="series"].sum() +Rtot=Rser+Rpar +print "The total resistance of the wall is: "+str(Rtot) +Area=15.0 +DT=30 +Qwall=Area/0.25*DT/Rtot +print "so the heat transfer through the wall is: " +str(Qwall) \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Appiah/Assignment6_step1_Appiah.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Appiah/Assignment6_step1_Appiah.py new file mode 100644 index 0000000..b9c2e1e --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Appiah/Assignment6_step1_Appiah.py @@ -0,0 +1,47 @@ +# # Using PANDAS for resistance calculations + +import pandas as pd + +A_wall = 15 # Area of wall [m^2] +A_unit = 0.25 #unit area ((H_brick+T_p2*2)*W_wall) +T_1 = 20 #indoor temperature +T_2 = -10 #outdoor temperature + +columns_names = ["type","h","L","k","RValue"] + +# For layers in series +RSeries_names=["R_outside","R_foam","R_plaster1","R_plaster2","R_inside"] +R1_list = ["conv",10,None,None,0] +R2_list = ["cond",None,0.03,0.026,0] +R3_list = ["cond",None,0.02,0.22,0] +R4_list = ["cond",None,0.02,0.22,0] +R5_list = ["conv",25,None,None, 0] + +Resistances_Series = pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list], index = RSeries_names, columns=columns_names) +#Resistances_Series["RValue"][Resistances_Series["type"]=="conv"] = 1.0/Resistances_Series["h"][Resistances_Series["type"]=="conv"] # Calc R values of conv R=1/h +#Resistances_Series["RValue"][Resistances_Series["type"]=="cond"] = Resistances_Series["L"][Resistances_Series["type"]=="cond"] /Resistances_Series["k"][Resistances_Series["type"]=="cond"] # Calc R values of conv R=L/k +R_conv = 1.0/Resistances_Series["h"][Resistances_Series["type"]=="conv"] +R_cond = Resistances_Series["L"][Resistances_Series["type"]=="cond"] /Resistances_Series["k"][Resistances_Series["type"]=="cond"] +Rtot = sum(R_conv)+sum(R_cond) +Rtot_Series = Rtot/A_unit #Total resistance for series layers + +#For Layers in Parallel: +RParallel_names=["R_plaster","R_brick","R_plaster"] +R6_list = ["cond",0.015,0.16,0.22,0] +R7_list = ["cond",0.22,0.16,0.72,0] +R8_list = ["cond",0.015,0.16,0.22,0] + +Resistances_Parallel = pd.DataFrame([R6_list,R7_list,R8_list], index = RParallel_names, columns=columns_names) +RValues_parallel=1/(Resistances_Parallel["L"][Resistances_Parallel["type"]=="cond"] /(Resistances_Parallel["k"] + [Resistances_Parallel["type"]=="cond"]*Resistances_Parallel["h"][Resistances_Parallel["type"]=="cond"])) +Rtot_parallel = 1/sum(RValues_parallel) #Total resistance for parallel layers + +#Total resistance +R_tot = round(Rtot_Series+Rtot_parallel,4) + +# Heat transfer +Q_unit = (T_1 - T_2) / R_tot #total heat transfer through the wall per unit width [W] +Q_wall = round(Q_unit * (A_wall/A_unit),4) #total heat transfer through the wall [W] + +print 'The total thermal resistance is '+str(R_tot)+ ' degC/W' +print 'The rate of heat transfer through the wall is '+str(Q_wall)+ ' W' \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Botti/Assignment6_Botti.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Botti/Assignment6_Botti.py new file mode 100644 index 0000000..8b0eed5 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Botti/Assignment6_Botti.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +import pandas as pd +# Definition of list of Resistances +R1_list = ["conv",10,None,None,0.25,0] +R2_list = ["condSer",None,0.03,0.026,0.25,0] +R3_list = ["condSer",None,0.02,0.22,0.25,0] +R4_list = ["condSer",None,0.02,0.22,0.25,0] +R5_list = ["condPar",None,0.16,0.22,0.015,0] +R6_list = ["condPar",None,0.16,0.72,0.22,0] +R7_list = ["condPar",None,0.16,0.22,0.015,0] +R8_list = ["conv",25,None,None,0.25,0] + +resistances_names = ["R1","R2","R3","R4","R5","R6","R7","R8"] +columns_names = ["type","h","L","k","A","RValue"] + +# Definition of DataFrame +Resistances_DF = pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list,R6_list,R7_list,R8_list,],index=resistances_names,columns=columns_names) + +# Calculating resistances values +Resistances_DF["RValue"][Resistances_DF["type"]=="conv"]=1.0/(Resistances_DF["h"][Resistances_DF["type"]=="conv"]*Resistances_DF["A"][Resistances_DF["type"]=="conv"]) +Resistances_DF["RValue"][Resistances_DF["type"]=="condSer"]=Resistances_DF["L"][Resistances_DF["type"]=="condSer"]/(Resistances_DF["k"][Resistances_DF["type"]=="condSer"]*Resistances_DF["A"][Resistances_DF["type"]=="condSer"]) +Resistances_DF["RValue"][Resistances_DF["type"]=="condPar"]=Resistances_DF["L"][Resistances_DF["type"]=="condPar"]/(Resistances_DF["k"][Resistances_DF["type"]=="condPar"]*Resistances_DF["A"][Resistances_DF["type"]=="condPar"]) + +# Calculating total conductive resistance in parallel +U_par = 1/Resistances_DF["RValue"][Resistances_DF["type"]=="condPar"] +R_par_tot = 1/U_par.sum() + +# Calculating total conductive resistance in series +R_ser_tot = Resistances_DF["RValue"][Resistances_DF["type"]=="condSer"].sum() + +# Calculating total convective resistance +R_conv_tot = Resistances_DF["RValue"][Resistances_DF["type"]=="conv"].sum() + +# Calculating total resistance +R_total = R_ser_tot+R_conv_tot+ R_par_tot + +print "The total resistance is "+str(R_total)+" °C/W" +T1 = 20 +T2 = -10 +A_unit = 0.25 +A_tot = 15 +Q_unit = (T1-T2)/R_total +Q_wall = Q_unit*(A_tot/A_unit) +print "The total heat flux through the wall is "+str(Q_wall)+" W" \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_CHEN/Assignment6_CHEN.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_CHEN/Assignment6_CHEN.py new file mode 100644 index 0000000..1ea9eba --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_CHEN/Assignment6_CHEN.py @@ -0,0 +1,43 @@ +#Assignment6_Chen + +import pandas as pd + +#resistance in series +R1=["conv",10,None,None,15,0] +R2=["cond",None,0.03,0.026,15,0] +R3=["cond",None,0.02,0.22,15,0] +R4=["cond",None,0.02,0.22,15,0] +R5=["conv",25,None,None,15,0] + +Resistance_names=["R1","R2","R3","R4","R5"] +columns_names=["types","h","L","k","Area","RValue"] +Resistance_DF=pd.DataFrame([R1,R2,R3,R4,R5],index=Resistance_names,columns=columns_names) + +Resistance_DF["RValue"][Resistance_DF["types"]=="conv"]=1.0/Resistance_DF["h"][Resistance_DF["types"]=="conv"]/Resistance_DF["Area"][Resistance_DF["types"]=="conv"] +Resistance_DF["RValue"][Resistance_DF["types"]=="cond"]=Resistance_DF["L"][Resistance_DF["types"]=="cond"]/Resistance_DF["k"][Resistance_DF["types"]=="cond"]/Resistance_DF["Area"][Resistance_DF["types"]=="cond"] +Resistance_Series_tot=Resistance_DF["RValue"].sum() + +#resistance in parallel + +R6=["cond",None,0.16,0.22,1.5/25*15,0,0] +R7=["cond",None,0.16,0.72,22.0/25*15,0,0] +R8=["cond",None,0.16,0.22,1.5/25*15,0,0] + +columns_names=["types","h","L","k","Area","RValue","Ufactor"] +Resistance_parallel=pd.DataFrame([R6,R7,R8],["R6","R7","R8"],columns=columns_names) + +Resistance_parallel["RValue"]=Resistance_parallel["L"]/Resistance_parallel["k"]/Resistance_parallel["Area"] +Resistance_parallel["Ufactor"]=1.0/Resistance_parallel["RValue"] +Resistance_parallel_Utot=Resistance_parallel["Ufactor"].sum() +Resistance_parallel_RValue_tot=1.0/Resistance_parallel_Utot + +Resistances_Rtot=Resistance_parallel_RValue_tot+Resistance_Series_tot + +T1=20 #The indoor temperature +T2=-10 #The outdoor temperature +Q=(T1-T2)/Resistances_Rtot + +print Resistance_DF +print Resistance_parallel +print "so the overall resistance of the wall is: " + str(Resistances_Rtot) + " degC/W" +print "so the total heat loss of the wall is: "+ str(Q) + " W" \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Cremona/Assignment6_Cremona.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Cremona/Assignment6_Cremona.py new file mode 100644 index 0000000..0838f9c --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Cremona/Assignment6_Cremona.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Assignment 6 + +import pandas as pnd + +# considering only the layers in series + +A = 0.25 +resistances_series_name = ["Rin","Rfo","Rpl","Rpl","Rex"] +resistances_series_type = ["conv","cond","cond","cond","conv"] +resistances_series_l = [None,0.03,0.02,0.02,None] +resistances_series_k = [None,0.026,0.22,0.22,None] +resistances_series_h = [10.0,None,None,None,25.0] +resistances_series_values = [0,0,0,0,0] +resistances_series_list = [resistances_series_type,resistances_series_l,resistances_series_k,resistances_series_h,resistances_series_values] +RESISTANCES_series = pnd.DataFrame(resistances_series_list,index=['type|','thickness|','conductivity|','conv_coeff|','Rvalue|'], columns=resistances_series_name) + +RESISTANCES_series.loc["Rvalue|"][RESISTANCES_series.loc["type|"]=="conv"] = 1.0/RESISTANCES_series.loc['conv_coeff|'][RESISTANCES_series.loc["type|"]=="conv"]*(1.0/A) +RESISTANCES_series.loc["Rvalue|"][RESISTANCES_series.loc["type|"]=="cond"] = (RESISTANCES_series.loc['thickness|'][RESISTANCES_series.loc["type|"]=="cond"]/RESISTANCES_series.loc['conductivity|'][RESISTANCES_series.loc["type|"]=="cond"])*(1.0/A) +Rtot_series = RESISTANCES_series.loc["Rvalue|"].sum() + +# considering the parallel + +resistances_paral_name = ["Rpl","Rbr","Rpl"] +resistances_paral_type = ["cond","cond","cond"] +resistances_paral_l = [0.16,0.16,0.16] +resistances_paral_k = [0.22,0.72,0.22] +areas = [0.015,0.22,0.015] +resistances_paral_values = [0,0,0] +resistances_paral_list = [resistances_paral_type,resistances_paral_l,resistances_paral_k,areas,resistances_paral_values] +RESISTANCES_parallel = pnd.DataFrame(resistances_paral_list, index=['type|','thickness|','conductivity|','areas|','Rvalue|'], columns=resistances_paral_name) + +RESISTANCES_parallel.loc["Rvalue|"] = RESISTANCES_parallel.loc['thickness|']/(RESISTANCES_parallel.loc['conductivity|']*RESISTANCES_parallel.loc['areas|']) +Rtot_parallel = 1.0/((RESISTANCES_parallel.loc["Rvalue|"]**-1).sum()) + +R_TOT = Rtot_series + Rtot_parallel +print 'The total resistance of the wall is '+str(R_TOT)+' °C/W' \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Depalo/Assigment6_Depalo.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Depalo/Assigment6_Depalo.py new file mode 100644 index 0000000..e081e6f --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Depalo/Assigment6_Depalo.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +#Assignment 6 + +import pandas as pd + +R1_list = ["conv",10,None,None, 0] +R2_list = ["cond",None,0.03,0.026, 0] +R3_list = ["cond",None,0.02,0.22, 0] +R4_list = ["cond",None,0.02,0.22, 0] +R5_list = ["conv",25,None,None, 0] + +resistances_names = ["R1","R2","R3","R4","R5"] +columns_names=["type","h","L","k","RValue"] + +Resistances_DF=pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list],index=resistances_names,columns=columns_names) + +print Resistances_DF + +Resistances_DF["RValue"][Resistances_DF["type"]=="conv"]=1.0/Resistances_DF["h"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="cond"]=Resistances_DF["L"][Resistances_DF["type"]=="cond"]/Resistances_DF["k"][Resistances_DF["type"]=="cond"] + +R6_list = [0.16,0.22,0.015,0] +R7_list = [0.16,0.72,0.22,0] +R8_list = [0.16,0.22,0.015,0] + +resistances_names = ["R6","R7","R8"] +columns_names=["L","k","A","RValue"] + +ResistancesParallel_DF=pd.DataFrame([R6_list,R7_list,R8_list],index=resistances_names,columns=columns_names) + +print '\n\n' +print ResistancesParallel_DF +print '\n\n' + +ResistancesParallel_DF["RValue"]=ResistancesParallel_DF["L"]/ResistancesParallel_DF["k"]/ResistancesParallel_DF["A"] + +Resistances_Rtot_Series=Resistances_DF["RValue"].sum() + +A_unit=0.25 +A_tot=15 + +Resistances_midstep=(1/ResistancesParallel_DF["RValue"]) +Resistances_Rtot_Parallel=(Resistances_midstep.sum())**(-1) + +Resistances_Rtot=Resistances_Rtot_Parallel+Resistances_Rtot_Series/A_unit + +T_in=20 +T_out=-10 +Qtot=A_tot/A_unit*(T_in-T_out)/Resistances_Rtot + +print "Total resistance: " + str(Resistances_Rtot) + ' m^2*K/W.\n\n' +print "Total heat flux: " + str(Qtot) + ' W.\n' \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Funes/assignment6_Funes.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Funes/assignment6_Funes.py new file mode 100644 index 0000000..bad3624 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Funes/assignment6_Funes.py @@ -0,0 +1,58 @@ +import pandas as pd + +R1_list = ["conv","series","brick","Plaster",10,None,None,0.25,0] #type of heat transfer, h, k, L, Ro + +R2_list = ["cond","series","brick","Plaster",None,0.026,0.03,0.25,0] + +R3_list = ["cond","series","brick","Plaster",None,0.22,0.02,0.25,0] + +R4_list = ["cond","parallel",None,"Plaster",None,0.22,0.16,0.15,0] + +R5_list = ["cond","parallel","brick",None,None,0.72,0.16,0.22,0] + +R6_list = ["cond","parallel",None,"Plaster",None,0.22,0.16,0.15,0] + +R7_list = ["cond","series","brick","Plaster",None,0.22,0.02,0.25,0] + +R8_list = ["conv","series","brick","Plaster",25,None,None,0.25,0] + +ATot = 15.0 +AUnit = 0.25 +T81 = 20 +T82 = -10 +fins = 0.75 + +Resistances_names = ["Ri","Rf","Rp1", "Rpc1", "Rb", "Rpc2", "Rp2", "Ro"] +Columns_names = ["type of heat transfer","config","ConsiderBrick","ConsiderPlaster", "h", "k", "L", "Aunit","RVAlue"] + +Resistances_DF = pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list,R6_list,R7_list,R8_list],index=Resistances_names, columns=Columns_names) + +Resistances_DF["RVAlue"][Resistances_DF["type of heat transfer"]=="conv"]=1/(Resistances_DF["h"][Resistances_DF["type of heat transfer"]=="conv"]*Resistances_DF["Aunit"][Resistances_DF["type of heat transfer"]=="conv"]) + +Resistances_DF["RVAlue"][Resistances_DF["type of heat transfer"]=="cond"]=(Resistances_DF["L"][Resistances_DF["type of heat transfer"]=="cond"])/(Resistances_DF["k"][Resistances_DF["type of heat transfer"]=="cond"]*Resistances_DF["Aunit"][Resistances_DF["type of heat transfer"]=="cond"]) + +ResistTotSeries = Resistances_DF["RVAlue"][Resistances_DF["config"]=="series"].sum() + +print "The equivalent resistance in series is :"+str(ResistTotSeries) + +ResistTotParallel = 1/((1/Resistances_DF["RVAlue"][Resistances_DF["config"]=="parallel"]).sum()) + +print "The equivalent resistance in parallel is :"+str(ResistTotParallel) + +ResistEquiv = ResistTotSeries+ResistTotParallel + +print "The equivalent resistance of the wall is :"+str(ResistEquiv) + +#ResistConsideringBrick = Resistances_DF["RVAlue"][Resistances_DF["ConsiderBrick"]=="brick"].sum() + +#ResistConsideringPlaster = Resistances_DF["RVAlue"][Resistances_DF["ConsiderPlaster"]=="Plaster"].sum() + +#ResistUnit = ResistConsideringBrick*(1-fins)+ResistConsideringPlaster*fins + +#print "The total resistance is :"+str(ResistUnit) + +#UTot = (1/ResistUnit)*(ATot/AUnit) + +#Qwall = UTot*(T81-T82) + +#print "The total heat tranfered through the wall is :"+str(Qwall) \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Karla/Assignment6_Step1_Pedroza.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Karla/Assignment6_Step1_Pedroza.py new file mode 100644 index 0000000..a9470a6 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Karla/Assignment6_Step1_Pedroza.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +#EXERCISE 6 + +#EXAMPLE D: HEAT LOSS THROUGH A COMPOSITE WALL + +#SERIES CALCULATIONS +import pandas as pd + +#Resistances in Series +R1_list = ["conv", "series", 10, None, None, 0.25, 0] +R2_list = ["cond", "series", None, 0.026, 0.03, 0.25, 0] +R3_list = ["cond", "series",None, 0.22, 0.02, 0.25, 0] +R4_list = ["cond", "series",None, 0.22, 0.02, 0.25, 0] +R5_list = ["cond", "parallel", None, 0.72, 0.16, 0.22, 0] +R6_list = ["cond", "parallel", None, 0.22, 0.16, 0.015, 0] +R7_list = ["cond", "parallel", None, 0.22, 0.16, 0.015, 0] +R8_list = ["conv", "series", 25, None, None, 0.25, 0] + +columns_names = ["type", "circuit", "h", "k", "L", "area", "Rvalue"] +resistances_names = ["Conv_In","Foam","Plaster_S1","PlasterS2","Brick", "Plaster_P1","Plaster_P2", "Conv_Out"] +Resistances = pd.DataFrame ([R1_list, R2_list, R3_list, R4_list, R5_list, R6_list, R7_list, R8_list], index= resistances_names, columns = columns_names) + +Resistances["Rvalue"][Resistances["type"]=="cond"] = (Resistances["L"])/(Resistances["k"]*Resistances["area"]) +Resistances["Rvalue"][Resistances["type"]=="conv"]= 1.0/(Resistances["h"]*Resistances["area"]) + +RSeries_Tot = Resistances["Rvalue"][Resistances["circuit"]=="series"].sum() +RParallel_Tot = (1/Resistances["Rvalue"][Resistances["circuit"]=="parallel"]).sum() + + +print Resistances +print "\nThe conductive resistance in series is "+str(RSeries_Tot)+" °C/W" +print "The conductive resistance in parallel is "+str(1/RParallel_Tot)+" °C/W \n" + + +TOT_RES = (RSeries_Tot)+(1/RParallel_Tot) + +print "So, the TOTAL RESISTANCE is "+str(TOT_RES)+" °C/W" + +print"******************************************************" +print"******************************************************" + +print "Now, let's calculate the heat flux loss of the wall..." + +T1=20 +T2 = -10 + +Q_unit = (T1-T2)/TOT_RES +print"The heat transfer loss per unit "+str(Q_unit)+" W/unit" + +print"....." +print"....." + +print "Assuming a wall of 3 m of high and 5 m of wide... " +H_w = 3 # High of wall in m +W_w = 5 # Wide of wall in m +A = 0.25 + +A_wall = H_w*W_w +Q_wall = Q_unit*A_wall/A +print "The TOTAL HEAT LOSS of the composite wall is "+str(Q_wall)+ " W" \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Khoudari/assignment6_khoudari.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Khoudari/assignment6_khoudari.py new file mode 100644 index 0000000..0507add --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Khoudari/assignment6_khoudari.py @@ -0,0 +1,55 @@ +import pandas as pd + + +Y = 3 #y is the height of the wall in m +print "the height of the wall is "+str(Y)+ "m" +X = 5 #X is the width of the wall in m +print "the width of the wall is "+str(X)+ "m" +print " " +print "At first, we're going to calculate the rate of heat transfer through a unit of 0.25m high and 1m deep" +print " " +Tinfinity1 = 20.0 #Tinfinity1 corresponds to then indoor temperature +print "the indoor temperature T infinity1 is "+str(Tinfinity1)+ " degrees" +print " " +Tinfinity2 = -10.0 #Tinfinity2 corresponds to the outer temperature +print "the outer temperature T infinity2 is "+str(Tinfinity2)+ " degrees" +print " " + + +Rnames = ["inner_convection","foam_layer","vertical_plaster_layer1","upper_horizontal_plaster_layer","brick","lower_horizontal_plaster_layer","vertical_plaster_layer2","outer_convection"] +Rtype = ["conv","cond_ser","cond_ser","cond_par","cond_par","cond_par","cond_ser","conv"] +R_h = [10.0, None , None , None , None , None , None , 25.0] +R_k= [None, 0.026, 0.22, 0.22, 0.72, 0.22, 0.22, None] +Rlength= [None, 0.03, 0.02, 0.16, 0.16, 0.16, 0.02, None] +Rarea=[0.25, 0.25, 0.25, 0.015, 0.22, 0.015, 0.25, 0.25] +Rvalue=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] +Rvalue_inv=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] +resistances_ListOfLists = [Rtype,R_h,R_k,Rlength,Rarea,Rvalue,Rvalue_inv] + +resistances_DataFrame = pd.DataFrame(resistances_ListOfLists,index=["type","h","k","L","Rarea","Rvalue","Rvalue_inv"], columns=Rnames) + +resistances_DataFrame.loc["Rvalue"][resistances_DataFrame.loc["type"]=="conv"]=1.0/resistances_DataFrame.loc["h"][resistances_DataFrame.loc["type"]=="conv"] +resistances_DataFrame.loc["Rvalue"][resistances_DataFrame.loc["type"]=="cond_ser"]=resistances_DataFrame.loc["L"][resistances_DataFrame.loc["type"]=="cond_ser"]/(resistances_DataFrame.loc["k"][resistances_DataFrame.loc["type"]=="cond_ser"]*resistances_DataFrame.loc["Rarea"][resistances_DataFrame.loc["type"]=="cond_ser"]) +resistances_DataFrame.loc["Rvalue"][resistances_DataFrame.loc["type"]=="cond_par"]=resistances_DataFrame.loc["L"][resistances_DataFrame.loc["type"]=="cond_par"]/(resistances_DataFrame.loc["k"][resistances_DataFrame.loc["type"]=="cond_par"]*resistances_DataFrame.loc["Rarea"][resistances_DataFrame.loc["type"]=="cond_par"]) + + +resistances_DataFrame.loc["Rvalue_inv"][resistances_DataFrame.loc["type"]=="cond_par"]= 1/resistances_DataFrame.loc["Rvalue"][resistances_DataFrame.loc["type"]=="cond_par"] +Rcondpara = 1/resistances_DataFrame.loc["Rvalue_inv"][resistances_DataFrame.loc["type"]=="cond_par"].sum() + +Rcondser = resistances_DataFrame.loc["Rvalue"][resistances_DataFrame.loc["type"]=="cond_ser"].sum() +Rconv = resistances_DataFrame.loc["Rvalue"][resistances_DataFrame.loc["type"]=="conv"].sum() + +Rtot = Rcondser + Rcondpara + Rconv + + +print "Then, The total thermal resistance of the medium is "+str(Rtot)+ " degrees/W" +print " " + + +Q= (Tinfinity1-Tinfinity2)/Rtot +print "This implies that the steady rate of heat transfer through the 0.25 m2 surface area is "+str(Q)+ " W" +print " " +Aw= 3*5 #Aw is the total area of the wall +Aunit= 0.25 +Qtot= Q*Aw/Aunit +print "Hence, the rate of heat trasnfer through the entire wall becomes "+str(Qtot)+ " W" \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Paul/Assignment6_Paul.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Paul/Assignment6_Paul.py new file mode 100644 index 0000000..23f64b4 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Paul/Assignment6_Paul.py @@ -0,0 +1,33 @@ +import pandas as pd +pd.set_option('mode.chained_assignment', None) #---Just to supress copy warning--- + +#--Defining Layers list with their corresponding values-- +R1_list=["conv",10,None,None,0.25,0] +R2_list=["conv",25,None,None,0.25,0] +R3_list=["cond",None,0.03,0.026,0.25,0] +R4_list=["cond",None,0.02,0.22,0.25,0] +R5_list=["cond",None,0.02,0.22,0.25,0] +R6_list=["cond",None,0.16,0.22,0.015,0] +R7_list=["cond",None,0.16,0.22,0.015,0] +R8_list=["cond",None,0.16,0.72,0.22,0] +resistances_names=["Rci","Rco","Rf","Rp1","Rp2","Rpc1","Rpc2","Rb"] +columns_names=["Resistance_type","h","L","k","A","RValue"] + +#--Creating a DataFrame-- +Resistances_DF=pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list,R6_list,R7_list,R8_list],index=resistances_names, columns=columns_names) + +#--Updating RValues of DataFrame-- +Resistances_DF["RValue"][Resistances_DF["Resistance_type"]=="conv"]=1./(Resistances_DF["h"][Resistances_DF["Resistance_type"]=="conv"]*Resistances_DF["A"][Resistances_DF["Resistance_type"]=="conv"]) +Resistances_DF["RValue"][Resistances_DF["Resistance_type"]=="cond"]=Resistances_DF["L"][Resistances_DF["Resistance_type"]=="cond"]/(Resistances_DF["k"][Resistances_DF["Resistance_type"]=="cond"]*Resistances_DF["A"][Resistances_DF["Resistance_type"]=="cond"]) + +Series_R_DF=Resistances_DF.loc[:"Rp2","RValue"] +Parallel_R_DF=1./Resistances_DF.loc["Rpc1":,"RValue"] +res_series_total=Series_R_DF.sum() +res_parallel_total=1./Parallel_R_DF.sum() +res_total=round((res_series_total+res_parallel_total),2) +T1,T2,Unit=20,-10,(3*5)/0.25 +Qtotal=int(Unit*((T1-T2)/res_total)) + +#--Printing Values-- +print("The total effective thermal resistance is: "+str(res_total)+" degC/W") +print("The rate of heat transfer through the wall is "+str(Qtotal)+" Watt") \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Russano/Assignment6_Russano.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Russano/Assignment6_Russano.py new file mode 100644 index 0000000..8d7113b --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Russano/Assignment6_Russano.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +#Realized By: Enrico Russano +#N. matricola: 831952 +#Assignment n.6 Date: 29/10/2017 +#One dimensional problem: +#Example D: Heat loss through a composite wall +#Solution by Pandas: + +#Import pandas: +import pandas as pd +#I initialize the list of resistances: +R1_list = ["conv",10,None,None,0.25,0] +R2_list = ["condser",None,0.03,0.026,0.25,0] +R3_list = ["condser",None,0.02,0.22,0.25,0] +R4_list = ["condser",None,0.02,0.22,0.25,0] +R5_list = ["condpar",None,0.16,0.22,0.015,0] +R6_list = ["condpar",None,0.16,0.72,0.22,0] +R7_list = ["condpar",None,0.16,0.22,0.015,0] +R8_list = ["conv",25,None,None,0.25,0] +#Resistances in series: +resistance_names = ["Rin","Rser1","Rser2","Rser3","Rpar1","Rpar2","Rpar3","Rout"] +column_names=["type","h","L","k","Area","RValue"] +#I define the DataFrame: +Res_DF=pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list,R6_list,R7_list,R8_list],index=resistance_names,columns=column_names) +#Now i calculate R-values of convective and conductive resistances (in series and in parallel): +Res_DF["RValue"][Res_DF["type"]=="conv"]=1.0/(Res_DF["h"][Res_DF["type"]=="conv"]*Res_DF["Area"][Res_DF["type"]=="conv"]) +Res_DF["RValue"][Res_DF["type"]=="condser"]=Res_DF["L"][Res_DF["type"]=="condser"]/(Res_DF["k"][Res_DF["type"]=="condser"]* +Res_DF["Area"][Res_DF["type"]=="condser"]) +Res_DF["RValue"][Res_DF["type"]=="condpar"]=Res_DF["L"][Res_DF["type"]=="condpar"]/(Res_DF["k"][Res_DF["type"]=="condpar"] +*Res_DF["Area"][Res_DF["type"]=="condpar"]) + +#Calculating of the conductive resistance in series: +R_cond_ser=Res_DF["RValue"][Res_DF["type"]=="condser"].sum() +#Calculating of the conductive resistance in parallel: +R_cond_par=((1.0/(Res_DF["RValue"][Res_DF["type"]=="condpar"])).sum())**-1 +#Calculating of the convective resistance: +R_conv=Res_DF["RValue"][Res_DF["type"]=="conv"].sum() +#The total resistance is: +Res_tot=R_cond_ser+R_cond_par+R_conv +print "The total resistance of the wall is:" +str(Res_tot)+ "°C/W" +#Defining the temperature: +T1 = 20 +T2 = -10 +A_unit = 0.25 +A_tot = 15 +Q_unit = (T1-T2)/Res_tot +Q_wall = Q_unit*(A_tot/A_unit) +print "The total heat flux through the wall is "+str(Q_wall)+" W" + + + + + + + + + + + + diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Wong/assigment6_step1_Wong.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Wong/assigment6_step1_Wong.py new file mode 100644 index 0000000..f605f6f --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignment6_Wong/assigment6_step1_Wong.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +import pandas as pd +rnames = ["inside","foam","plaster1","plaster2","outside","plaster1","plaster2","brick"] +rway= ["serie","serie","serie","serie","serie","parallel","parallel","parallel"] +rtypes = ["conv","cond","cond","cond","conv","cond","cond","cond"] +rh = [10,None,None,None,25,None,None,None] +rarea=[0.25,0.25,0.25,0.25,0.25,0.015,0.015,0.22] +rk= [None,0.026,0.22,0.22,None,0.22,0.22,0.72] +rl= [None,0.03,0.02,0.02,None,0.16,0.16,0.16] +rvalues=[0,0,0,0,0,0,0,0] + +rlist = [rway,rtypes,rh,rk,rl,rarea,rvalues] + +rdataframe = pd.DataFrame(rlist,index=["way","type","h","k","L","area","rvalues"], columns=rnames) + +Hw = 3 # wall height in m +Ww = 5 # wall width in m +Awall = Hw*Ww # wall area +Tamb1 = 20 # room temperature in ºC +Tamb2 = -10 # outside temperature in ºC + +rdataframe.loc["rvalues"][rdataframe.loc["type"]=="conv"]=1.0/(rdataframe.loc["h"][rdataframe.loc["type"]=="conv"]*rdataframe.loc["area"][rdataframe.loc["type"]=="conv"]) +rdataframe.loc["rvalues"][rdataframe.loc["type"]=="cond"]=rdataframe.loc["L"][rdataframe.loc["type"]=="cond"]/(rdataframe.loc["k"][rdataframe.loc["type"]=="cond"]*rdataframe.loc["area"][rdataframe.loc["type"]=="cond"]) + +rparallel=1/((1/rdataframe.loc["rvalues"][rdataframe.loc["way"]=="parallel"]).sum()) +Rtotal=rparallel+(rdataframe.loc["rvalues"][rdataframe.loc["way"]=="serie"]).sum() + + +print "The total resistance is " + str(Rtotal) + " ºC/W" + +Qu = (Tamb1 - Tamb2)/Rtotal # we calculate the heat flux in the unit in W + +print "The heat flux in a unit is " + str(Qu) + " W" + +#we scale the heat flux using the areas + +Q = Qu * Awall/0.25 # in W +print "The total heat flux is " + str(Q) + " W" \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Dontoh/assignment6_step1_Dontoh.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Dontoh/assignment6_step1_Dontoh.py new file mode 100644 index 0000000..6c9853c --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Dontoh/assignment6_step1_Dontoh.py @@ -0,0 +1,47 @@ +#Using pandas for resistance calculations +import pandas as pd + +A_wall = 15 #area of wall [m^2] +A_unit = 0.25 #unit area ((H_brick+T_p2*2)*W_wall) +T_1 = 20 #indoor temperature +T_2 = -10 #outdoor temperature + +columns_names = ["type","h","L","k","RValue"] + +#For layers in series +RSeries_names=["R_outside","R_foam","R_plaster1","R_plaster2","R_inside"] +R1_list = ["conv",10,None,None,0] +R2_list = ["cond",None,0.03,0.026,0] +R3_list = ["cond",None,0.02,0.22,0] +R4_list = ["cond",None,0.02,0.22,0] +R5_list = ["conv",25,None,None, 0] + +Resistances_Series = pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list], index = RSeries_names, columns=columns_names) +#Resistances_Series["RValue"][Resistances_Series["type"]=="conv"] = 1.0/Resistances_Series["h"][Resistances_Series["type"]=="conv"] # Calc R values of conv R=1/h +#Resistances_Series["RValue"][Resistances_Series["type"]=="cond"] = Resistances_Series["L"][Resistances_Series["type"]=="cond"] /Resistances_Series["k"][Resistances_Series["type"]=="cond"] # Calc R values of conv R=L/k +R_conv = 1.0/Resistances_Series["h"][Resistances_Series["type"]=="conv"] +R_cond = Resistances_Series["L"][Resistances_Series["type"]=="cond"] /Resistances_Series["k"][Resistances_Series["type"]=="cond"] +Rtot = sum(R_conv)+sum(R_cond) +Rtot_Series = Rtot/A_unit #Total resistance for series layers + +#For Layers in Parallel: +RParallel_names=["R_plaster","R_brick","R_plaster"] +R6_list = ["cond",0.015,0.16,0.22,0] +R7_list = ["cond",0.22,0.16,0.72,0] +R8_list = ["cond",0.015,0.16,0.22,0] + +Resistances_Parallel = pd.DataFrame([R6_list,R7_list,R8_list], index = RParallel_names, columns=columns_names) +RValues_parallel=1/(Resistances_Parallel["L"][Resistances_Parallel["type"]=="cond"] /(Resistances_Parallel["k"] + [Resistances_Parallel["type"]=="cond"]*Resistances_Parallel["h"][Resistances_Parallel["type"]=="cond"])) +Rtot_parallel = 1/sum(RValues_parallel) #Total resistance for parallel layers + +#Total resistance +R_tot = round(Rtot_Series+Rtot_parallel,4) + +# Heat transfer +Q_unit = (T_1 - T_2) / R_tot #total heat transfer through the wall per unit width [W] +Q_wall = round(Q_unit * (A_wall/A_unit),4) #total heat transfer through the wall [W] + +print 'The total thermal resistance is '+str(R_tot)+ ' degC/W' +print 'The rate of heat transfer through the wall is '+str(Q_wall)+ ' W' +print '*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*' \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Sanchez/Assignment6_Sanchez.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Sanchez/Assignment6_Sanchez.py new file mode 100644 index 0000000..c7bdb26 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/Assignmnet6_Sanchez/Assignment6_Sanchez.py @@ -0,0 +1,27 @@ +import pandas as pd + +def series_array(): + resistance_names = ["R1","R2","R3","R4","R5"] + resistances_types = ["conv","cond","cond","cond","conv"] + resistances_h = [10,None,None,None,25] + resistances_k= [None,0.026,0.22,0.22,None] + resistances_L= [None,0.03,0.02,0.02,None] + Resistances_RValues= [0,0,0,0,0] + complete_resistence_array=pd.DataFrame([resistances_types,resistances_h,resistances_k,resistances_L,Resistances_RValues], + index=['types','h','k','L', 'RVal'],columns=resistance_names) + area=0.25 + complete_resistence_array.loc['RVal'][complete_resistence_array.loc['types']=='cond']=complete_resistence_array.loc['L']/(complete_resistence_array.loc['k']*area) + complete_resistence_array.loc['RVal'][complete_resistence_array.loc['types']=='conv']=1.0/(complete_resistence_array.loc['h']*area) + return complete_resistence_array + +def parallel_array(): + resistance_names = ["R1","R2", "R3"] + area=[0.015,0.22, 0.015] + resistances_k= [0.22,0.72,0.22] + resistances_L= 0.16 + Resistances_RValues=[0.0,0.0,0.0] + complete_resistence_array=pd.DataFrame([area, resistances_k, Resistances_RValues], index=['A','k','RVal'], columns=resistance_names) + complete_resistence_array.loc['RVal']=resistances_L/(complete_resistence_array.loc['k']*complete_resistence_array.loc['A']) + return complete_resistence_array + +R_Total=(1.0/((1.0/parallel_array().loc['RVal']).sum()))+(series_array().loc['RVal'].sum()) \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/Note about Assignmnet 6.txt b/Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/Note about Assignmnet 6.txt new file mode 100644 index 0000000..9d4656f --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/Note about Assignmnet 6.txt @@ -0,0 +1 @@ +In assignment 6 you should develop step 1 of assignment 5 using Pandas \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/assignment6_guideline.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/assignment6_guideline.py new file mode 100644 index 0000000..2d84333 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/__GUIDELINES__/assignment6_guideline.py @@ -0,0 +1,20 @@ + +R1_list = ["conv",10,None,None, 0] +R2_list = ["cond",None,0.8,0.5, 0] +R3_list = ["cond",None,1.5,0.3, 0] +R4_list = ["cond",None,0.05,0.6, 0] +R5_list = ["conv",25,None,None, 0] + +resistances_names = ["R1","R2","R3","R4","R5"] +columns_names=["type","h","L","k","RValue"] +#How to define a DataFrame , !!!! D and F are capital letters!!!!! + +Resistances_DF=pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list],index=resistances_names,columns=columns_names) +Resistances_DF["h"] +Resistances_DF.loc["R1",:] +Resistances_DF["type"]=="conv" +Resistances_DF["h"] +Resistances_DF["h"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="conv"]=1.0/Resistances_DF["h"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="cond"]=Resistances_DF["L"][Resistances_DF["type"]=="cond"]/Resistances_DF["k"][Resistances_DF["type"]=="cond"] \ No newline at end of file diff --git a/Assignment 6-Pandas A-Deadline Oct 31 2017/assignment6.zhang/assignment6.zhang.py b/Assignment 6-Pandas A-Deadline Oct 31 2017/assignment6.zhang/assignment6.zhang.py new file mode 100644 index 0000000..d9f3774 --- /dev/null +++ b/Assignment 6-Pandas A-Deadline Oct 31 2017/assignment6.zhang/assignment6.zhang.py @@ -0,0 +1,31 @@ +import pandas as pd +R1_list = ["conv",25,None,None, 0] +R2_list = ["cond",None,0.03,1.25, 0] +R3_list = ["cond",None,0.02,1.25, 0] +R4_list = ["cond",None,0.02,1.25, 0] +R5_list = ["cond",None,0.16,0.75, 0] +R6_list = ["cond",None,0.16,1.1, 0] +R7_list = ["cond",None,0.16,0.075, 0] +R8_list = ["conv",10,None,None, 0] + +resistances_names = ["outdoor air","foam","plaster layer 1","plaster layer 2","1.5 cm thick plaster layer 1","brick","1.5 cm thick plaster layer 2","indoor air"] +columns_names=["type","h","L","k","RValue"] + +Resistances_DF=pd.DataFrame([R1_list,R2_list,R3_list,R4_list,R5_list,R6_list,R7_list,R8_list],index=resistances_names,columns=columns_names) +Resistances_DF["h"] +Resistances_DF.loc["outdoor air",:] +Resistances_DF["type"]=="conv" +Resistances_DF["h"] +Resistances_DF["h"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="conv"]=1.0/Resistances_DF["h"][Resistances_DF["type"]=="conv"] +Resistances_DF["RValue"][Resistances_DF["type"]=="cond"]=Resistances_DF["L"][Resistances_DF["type"]=="cond"]/Resistances_DF["k"][Resistances_DF["type"]=="cond"] + +Resistances_Rtot=Resistances_DF["RValue"].sum() +T1 = 20 # The indoor temperatures +T2 = 10 # The outdoor temperatures + +Q = (T1-T2)/Resistances_Rtot +Atot = 5*3 +Qtot = Q*Atot +print "So the rate of heat transfer through the wall is:" + str(Qtot)+ "W" From 3f4b82d528999c2a4e642412d36f6ac18a266818 Mon Sep 17 00:00:00 2001 From: JDontoh Date: Tue, 28 Nov 2017 02:06:14 +0100 Subject: [PATCH 2/4] adding assignment 8 - Jude Dontoh --- Assignment 8_Dontoh/Assignment 8_Dontoh.py | 56 ++++++ Assignment 8_Dontoh/BeamIrradiance.csv | 10 + Assignment 8_Dontoh/Cast.py | 37 ++++ Assignment 8_Dontoh/DiffuseIrradiance.csv | 10 + Assignment 8_Dontoh/FFs.csv | 10 + Assignment 8_Dontoh/IAC_cl.csv | 7 + Assignment 8_Dontoh/SLF.csv | 9 + .../Window_Completed_withPXI.html | 186 ++++++++++++++++++ Assignment 8_Dontoh/numpy_19102017.py | 4 + Assignment 8_Dontoh/numpy_Script.py | 172 ++++++++++++++++ Assignment 8_Dontoh/windows.csv | 5 + .../windows_completed_withPXI.csv | 5 + 12 files changed, 511 insertions(+) create mode 100644 Assignment 8_Dontoh/Assignment 8_Dontoh.py create mode 100644 Assignment 8_Dontoh/BeamIrradiance.csv create mode 100644 Assignment 8_Dontoh/Cast.py create mode 100644 Assignment 8_Dontoh/DiffuseIrradiance.csv create mode 100644 Assignment 8_Dontoh/FFs.csv create mode 100644 Assignment 8_Dontoh/IAC_cl.csv create mode 100644 Assignment 8_Dontoh/SLF.csv create mode 100644 Assignment 8_Dontoh/Window_Completed_withPXI.html create mode 100644 Assignment 8_Dontoh/numpy_19102017.py create mode 100644 Assignment 8_Dontoh/numpy_Script.py create mode 100644 Assignment 8_Dontoh/windows.csv create mode 100644 Assignment 8_Dontoh/windows_completed_withPXI.csv diff --git a/Assignment 8_Dontoh/Assignment 8_Dontoh.py b/Assignment 8_Dontoh/Assignment 8_Dontoh.py new file mode 100644 index 0000000..3fb4db4 --- /dev/null +++ b/Assignment 8_Dontoh/Assignment 8_Dontoh.py @@ -0,0 +1,56 @@ +import os +import numpy as np +import pandas as pd +import scipy as sp + +os.chdir("C:\Users\jude\Desktop\judes script code\Git\Scientific_Python_Assignments_POLIMI_EETBS\Assignment 8_Dontoh") + +Windows_DF= pd.read_csv("windows.csv",sep=";",index_col=0) + +BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) +DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) + +exposure = raw_input('please enter the exposure ') +latitude = float(raw_input('please enter the latitude of the location ')) + + +if latitude == BeamIrradiance_ED.columns.tolist(): + def PXI_calculator(exposure,latitude): + BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) + result_BeamIrradiance_ED= BeamIrradiance_ED[latitude][exposure] + + DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) + result_DiffuseIrradiance_Ed= DiffuseIrradiance_Ed[latitude][exposure] + PXI= result_BeamIrradiance_ED+result_DiffuseIrradiance_Ed + return PXI + + +if latitude != BeamIrradiance_ED.columns.tolist(): + + + name_of_columns=BeamIrradiance_ED.columns.get_values() + name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False) + ED = sp.interp(latitude,name_of_columns_as_numbers,BeamIrradiance_ED.loc[exposure]) + + name_of_columns=DiffuseIrradiance_Ed.columns.get_values() + name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False) + Ed = sp.interp(latitude,name_of_columns_as_numbers,DiffuseIrradiance_Ed.loc[exposure]) + PXI= ED+Ed + print "PXI value is " +str(PXI) + +#Calculation for PXI for RLF example 1 - Piacenza + +latitude_location= "45" + +PXI_values=[] +for index in Windows_DF.index.tolist(): + print index + print Windows_DF["Direction"][index] + PXI_values = np.append(PXI_values,PXI_calculator(Windows_DF["Direction"][index],latitude_location)) +print PXI_values + +Windows_DF["PXI"] = PXI_values +Windows_DF.to_csv("windows_completed_withPXI.csv",sep=";") +Windows_DF.to_html("Window_Completed_withPXI.html") + + \ No newline at end of file diff --git a/Assignment 8_Dontoh/BeamIrradiance.csv b/Assignment 8_Dontoh/BeamIrradiance.csv new file mode 100644 index 0000000..4b014f1 --- /dev/null +++ b/Assignment 8_Dontoh/BeamIrradiance.csv @@ -0,0 +1,10 @@ +;20;25;30;35;40;45;50;55;60 +N;125;106;92;84;81;85;96;112;136 +NE;460;449;437;425;412;399;386;374;361 +NW;460;449;437;425;412;399;386;374;361 +E;530;543;552;558;560;559;555;547;537 +W;530;543;552;558;560;559;555;547;537 +SE;282;328;369;405;436;463;485;503;517 +SW;282;328;369;405;436;463;485;503;517 +S;0;60;139;214;283;348;408;464;515 +H;845;840;827;806;776;738;691;637;574 diff --git a/Assignment 8_Dontoh/Cast.py b/Assignment 8_Dontoh/Cast.py new file mode 100644 index 0000000..97e3a21 --- /dev/null +++ b/Assignment 8_Dontoh/Cast.py @@ -0,0 +1,37 @@ +import os +import numpy as np +import pandas as pd +import scipy as sp + +os.chdir("C:\Users\jude\Desktop\judes script code\Git\Scientific_Python_Assignments_POLIMI_EETBS\Assignment 8_Dontoh") + +Windows_DF= pd.read_csv("windows.csv",sep=";",index_col=0) + +BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) +DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) + + +def PXI_calculator(exposure,latitude): + BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) + result_BeamIrradiance_ED= BeamIrradiance_ED[latitude][exposure] + + DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) + result_DiffuseIrradiance_Ed= DiffuseIrradiance_Ed[latitude][exposure] + PXI= result_BeamIrradiance_ED+result_DiffuseIrradiance_Ed + return PXI + + +latitude_location= "45" + +PXI_values=[] +for index in Windows_DF.index.tolist(): + print index + print Windows_DF["Direction"][index] + PXI_values = np.append(PXI_values,PXI_calculator(Windows_DF["Direction"][index],latitude_location)) +print PXI_values + +Windows_DF["PXI"] = PXI_values +Windows_DF.to_csv("windows_completed_withPXI.csv",sep=";") +Windows_DF.to_html("Window_Completed_withPXI.html") + + \ No newline at end of file diff --git a/Assignment 8_Dontoh/DiffuseIrradiance.csv b/Assignment 8_Dontoh/DiffuseIrradiance.csv new file mode 100644 index 0000000..3b61f92 --- /dev/null +++ b/Assignment 8_Dontoh/DiffuseIrradiance.csv @@ -0,0 +1,10 @@ +;20;25;30;35;40;45;50;55;60 +N;128;115;103;93;84;76;69;62;55 +NE;177;169;162;156;151;147;143;140;137 +NW;177;169;162;156;151;147;143;140;137 +E;200;196;193;190;189;188;187;187;187 +W;200;196;193;190;189;188;187;187;187 +SE;204;203;203;204;205;207;210;212;215 +SW;204;203;203;204;205;207;210;212;215 +S;166;193;196;200;204;209;214;219;225 +H;170;170;170;170;170;170;170;170;170 diff --git a/Assignment 8_Dontoh/FFs.csv b/Assignment 8_Dontoh/FFs.csv new file mode 100644 index 0000000..d3ad2ba --- /dev/null +++ b/Assignment 8_Dontoh/FFs.csv @@ -0,0 +1,10 @@ +Exposure;SingleFamilyDetached;MultiFamily +N;0.44;0.27 +NE;0.21;0.43 +E;0.31;0.56 +SE;0.37;0.54 +S;0.47;0.53 +SW;0.58;0.61 +W;0.56;0.65 +NW;0.46;0.57 +H;0.58;0.73 diff --git a/Assignment 8_Dontoh/IAC_cl.csv b/Assignment 8_Dontoh/IAC_cl.csv new file mode 100644 index 0000000..63fbe05 --- /dev/null +++ b/Assignment 8_Dontoh/IAC_cl.csv @@ -0,0 +1,7 @@ +Type;ID;DrapesLightOpen;DrapesDarkClosed;DrapesLightClosed;RollerOpaqueDark;RollerOpqaueWhite;RollerTranslucentLight;BlindsMedium;BlindsDark +clear_1Layer;1a;0.64;0.71;0.45;0.64;0.34;0.44;0.74;0.66 +HeatAbsorbing_1Layer;1c;0.68;0.72;0.50;0.67;0.40;0.49;0.76;0.69 +Clear_2Layer;5a;0.72;0.81;0.57;0.76;0.48;0.55;0.82;0.74 +lowEpsillonHighSolar_2Layers;17c;0.76;0.86;0.64;0.82;0.57;0.62;0.86;0.79 +lowEpsillonLowSolar_2Layers;25a;0.79;0.88;0.68;0.85;0.60;0.66;0.88;0.82 +HeatAbsorbing_2Layers;5c;0.73;0.82;0.59;0.77;0.51;0.58;0.83;0.76 diff --git a/Assignment 8_Dontoh/SLF.csv b/Assignment 8_Dontoh/SLF.csv new file mode 100644 index 0000000..c69dddf --- /dev/null +++ b/Assignment 8_Dontoh/SLF.csv @@ -0,0 +1,9 @@ +;20;25;30;35;40;45;50;55;60 +N;2.8;2.1;1.4;1.5;1.7;1.0;0.8;0.9;0.8 +NE;1.4;1.5;1.6;1.2;1.3;1.3;0.9;0.9;0.8 +NW;1.4;1.5;1.6;1.2;1.3;1.3;0.9;0.9;0.8 +E;1.2;1.2;1.1;1.1;1.1;1.0;1.0;0.9;0.8 +W;1.2;1.2;1.1;1.1;1.1;1.0;1.0;0.9;0.8 +SE;2.1;1.8;2.0;1.7;1.5;1.6;1.4;1.2;1.1 +SW;2.1;1.8;2.0;1.7;1.5;1.6;1.4;1.2;1.1 +S;20.0;14.0;6.9;4.7;3.3;2.7;2.1;1.7;1.4 diff --git a/Assignment 8_Dontoh/Window_Completed_withPXI.html b/Assignment 8_Dontoh/Window_Completed_withPXI.html new file mode 100644 index 0000000..19e8b20 --- /dev/null +++ b/Assignment 8_Dontoh/Window_Completed_withPXI.html @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DirectionwidthHeightAreaWindow_IDFrame_typeFrame_materialUSHGCHFQ heatingSLFDohXohFshdIntShading_IDIntShading_closenessIAC_clIACTxEdEDPXIFFsC_valueCFQcooling
Name
eastE81.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000747.00000
westW81.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000747.00000
south-FixedS21.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000557.00000
south-OperableS21.805cOperableWood000000.90.30DrapesLightOpen0.4000.6400557.00000
\ No newline at end of file diff --git a/Assignment 8_Dontoh/numpy_19102017.py b/Assignment 8_Dontoh/numpy_19102017.py new file mode 100644 index 0000000..855537e --- /dev/null +++ b/Assignment 8_Dontoh/numpy_19102017.py @@ -0,0 +1,4 @@ +# Let's start with Numpy !!!!! + + +import numpy as np \ No newline at end of file diff --git a/Assignment 8_Dontoh/numpy_Script.py b/Assignment 8_Dontoh/numpy_Script.py new file mode 100644 index 0000000..c259226 --- /dev/null +++ b/Assignment 8_Dontoh/numpy_Script.py @@ -0,0 +1,172 @@ +import numpy as np + +#Defining arrays + +A1 = np.array([1,2,3,4]) # An array of integrs +A2 = np.array([1.2,3.2,4.5,1.7]) #an array of floats +A3 = np.array(["John", "Carlo","Gianluca","paolo"]) #an array of strings +A4 = np.array([True,False,False,True]) #an array of booleans + +# you could clearly have defined the list before +L5 = [4,5,6,7] +A5 = np.array(L5) + +A1.dtype +A2.dtype +A3.dtype +A4.dtype + + +# numpy arrays can just have one type!!! +L6 = ["Paolo", "Sara", 256, True, 13.14] +A6 = np.array(L6) +A6.dtype + +L7 = [1,3,4.5, 9] +A7= np.array(L7) +A7.dtype + +# extracting an elemenet by position +A1[0] +A3[1] +A4[2:] +A7[1] + +for name in A3: + print name + + +# So why do we really need Numpy arrays ?!? Vectorized Operation! +#of course just for integers and floats +L1 = [1,2,3,4,5] +L2 = [11,12.1,13,14,15] + +L3= L1+L2 + +a1=np.array(L1) +a2= np.array(L2) +a3= a1+a2 +a4=a1-a2 +a5=(a2)/a1 + + +#multiplying by a constant +# A list: +C= 10 +L=[1,2,3,4] +L2=C*L + +#an Np array:! +A6 = np.array(L) +A7= A6*C + +# How to apply it to the RLF method +Opaque_items_list = ["wall","ceiling","door"] +Opaque_U_Heating_list = [0.438,0.25,2.273] +Opaque_netArea_list = [105.8, 200, 2.2] + +Opaque_items_array = np.array(Opaque_items_list) +Opaque_U_heating_array= np.array(Opaque_U_Heating_list) +Opaque_netArea_array= np.array(Opaque_netArea_list) + +T_inside_heating = 20 +T_design_winter = -4.8 + +deltaT_heating = T_inside_heating-T_design_winter + +Opaque_HF_array = Opaque_U_heating_array*deltaT_heating + +Opaque_QHeating_array = Opaque_HF_array*Opaque_netArea_array + +# logical arrays: +#How to Build one: + +A8 = np.array([2,3,5,10]) +AL1 = A8 >5 +AL2= A8 < 5 +Al3 = np.array([True,False,False,True]) + + +#Logical Operations in Python: +# and : & +# or : | +# not:~ + +AL4 = AL1 & AL2 +AL5 = AL1 | AL2 + +# Using index arrays + +A10 = np.array([7,8,9,10]) +AL = np.array([True,False,False,True]) +print A10[AL] + +Age= np.array([18, 25,14, 35, 29,13,38]) +Income_k = np.array([0,18,0,25,22,0,40]) + +income_mean = Income_k[Age > 18].mean() + + +# for the case of RLF +indexes_wall = Opaque_items_array=="wall" +indexes_door = Opaque_items_array=="door" + +indexes = indexes_door | indexes_wall +OurOutCome = Opaque_QHeating_array[indexes].sum() + +#• for the case of resistances: + +resistance_names = np.array(["R1","R2","R3","R4","R5"]) +resistances_types = np.array(["conv","cond","cond","cond","conv"]) +resistances_h = np.array([10,None,None,None,25]) +resistances_k= np.array([None,0.8,1.5,0.05,None])clear +resistances_L= np.array([None,0.5,0.3,0.6,None]) +Resistances_RValues= np.array(np.zeros(5)) +Resistances_RValues[resistances_types=="cond"] = resistances_L[resistances_types=="cond"]/ resistances_k[resistances_types=="cond"] +Resistances_RValues[resistances_types=="conv"] = 1.0 / resistances_h[resistances_types=="conv"] +Resistances_Rtot=Resistances_RValues.sum() + + +#but what if we want to define it in 2D + +# so let's see how to define 2D Matrixes +A1_2D = np.array([[1,2,3],[4,5,6],[7,8,9]]) + +# how to obtain data: +element = A1_2D[2,1] + +Resistance_parameter_matrix = np.array([resistances_h,resistances_k,resistances_L]) + +#what if we want to include the names: +Resistance_matrix = np.array([resistance_names,resistances_types,resistances_h,resistances_k,resistances_L,Resistances_RValues]) +print Resistance_matrix[0,0] +print Resistance_matrix[2,0] +# how to obtain data from it +Resistance_matrix[-1,:].sum() + + + +A17[A17>5].mean() + +AL2 = A17 < 12 + +AL3 = AL1 & AL2 + +A17[AL1 & AL2] + +myListOfList = [[1,2,3],[4,5,6],[7,8,9]] +my2DArray = np.array(myListOfList) +myArray2D_2 = np.array([[5,15,12],[17,18,19],[51,45,61]]) + +myArray2D_2.sum() +print myArray2D_2.sum(axis = 1) + + + + + + + + + + diff --git a/Assignment 8_Dontoh/windows.csv b/Assignment 8_Dontoh/windows.csv new file mode 100644 index 0000000..45bc1c5 --- /dev/null +++ b/Assignment 8_Dontoh/windows.csv @@ -0,0 +1,5 @@ +Name;Direction;width;Height;Area;Window_ID;Frame_type;Frame_material;U;SHGC;HF;Q heating;SLF;Doh;Xoh;Fshd;IntShading_ID;IntShading_closeness;IAC_cl;IAC;Tx;Ed;ED;PXI;FFs;C_value;CF;Qcooling +east;E;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0 +west;W;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0 +south-Fixed;S;2;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0 +south-Operable;S;2;1.8;0;5c;Operable;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;0.64;0;0;0;0;0;0;0 diff --git a/Assignment 8_Dontoh/windows_completed_withPXI.csv b/Assignment 8_Dontoh/windows_completed_withPXI.csv new file mode 100644 index 0000000..899316d --- /dev/null +++ b/Assignment 8_Dontoh/windows_completed_withPXI.csv @@ -0,0 +1,5 @@ +Name;Direction;width;Height;Area;Window_ID;Frame_type;Frame_material;U;SHGC;HF;Q heating;SLF;Doh;Xoh;Fshd;IntShading_ID;IntShading_closeness;IAC_cl;IAC;Tx;Ed;ED;PXI;FFs;C_value;CF;Qcooling +east;E;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;747.0;0;0;0;0 +west;W;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;747.0;0;0;0;0 +south-Fixed;S;2;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;557.0;0;0;0;0 +south-Operable;S;2;1.8;0;5c;Operable;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;0.64;0;0;557.0;0;0;0;0 From f33dd2a1f33c1a950a4b5477f227876485d3298a Mon Sep 17 00:00:00 2001 From: JDontoh Date: Tue, 28 Nov 2017 08:49:35 +0100 Subject: [PATCH 3/4] adding assignment 8 - Jude Dontoh --- .../Assignment 8_Dontoh.py | 56 ++++++ .../Window_Completed_withPXI.html | 186 ++++++++++++++++++ .../windows_completed_withPXI.csv | 5 + 3 files changed, 247 insertions(+) create mode 100644 Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Assignment 8_Dontoh.py create mode 100644 Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Window_Completed_withPXI.html create mode 100644 Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/windows_completed_withPXI.csv diff --git a/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Assignment 8_Dontoh.py b/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Assignment 8_Dontoh.py new file mode 100644 index 0000000..3fb4db4 --- /dev/null +++ b/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Assignment 8_Dontoh.py @@ -0,0 +1,56 @@ +import os +import numpy as np +import pandas as pd +import scipy as sp + +os.chdir("C:\Users\jude\Desktop\judes script code\Git\Scientific_Python_Assignments_POLIMI_EETBS\Assignment 8_Dontoh") + +Windows_DF= pd.read_csv("windows.csv",sep=";",index_col=0) + +BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) +DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) + +exposure = raw_input('please enter the exposure ') +latitude = float(raw_input('please enter the latitude of the location ')) + + +if latitude == BeamIrradiance_ED.columns.tolist(): + def PXI_calculator(exposure,latitude): + BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) + result_BeamIrradiance_ED= BeamIrradiance_ED[latitude][exposure] + + DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) + result_DiffuseIrradiance_Ed= DiffuseIrradiance_Ed[latitude][exposure] + PXI= result_BeamIrradiance_ED+result_DiffuseIrradiance_Ed + return PXI + + +if latitude != BeamIrradiance_ED.columns.tolist(): + + + name_of_columns=BeamIrradiance_ED.columns.get_values() + name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False) + ED = sp.interp(latitude,name_of_columns_as_numbers,BeamIrradiance_ED.loc[exposure]) + + name_of_columns=DiffuseIrradiance_Ed.columns.get_values() + name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False) + Ed = sp.interp(latitude,name_of_columns_as_numbers,DiffuseIrradiance_Ed.loc[exposure]) + PXI= ED+Ed + print "PXI value is " +str(PXI) + +#Calculation for PXI for RLF example 1 - Piacenza + +latitude_location= "45" + +PXI_values=[] +for index in Windows_DF.index.tolist(): + print index + print Windows_DF["Direction"][index] + PXI_values = np.append(PXI_values,PXI_calculator(Windows_DF["Direction"][index],latitude_location)) +print PXI_values + +Windows_DF["PXI"] = PXI_values +Windows_DF.to_csv("windows_completed_withPXI.csv",sep=";") +Windows_DF.to_html("Window_Completed_withPXI.html") + + \ No newline at end of file diff --git a/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Window_Completed_withPXI.html b/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Window_Completed_withPXI.html new file mode 100644 index 0000000..19e8b20 --- /dev/null +++ b/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/Window_Completed_withPXI.html @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DirectionwidthHeightAreaWindow_IDFrame_typeFrame_materialUSHGCHFQ heatingSLFDohXohFshdIntShading_IDIntShading_closenessIAC_clIACTxEdEDPXIFFsC_valueCFQcooling
Name
eastE81.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000747.00000
westW81.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000747.00000
south-FixedS21.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000557.00000
south-OperableS21.805cOperableWood000000.90.30DrapesLightOpen0.4000.6400557.00000
\ No newline at end of file diff --git a/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/windows_completed_withPXI.csv b/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/windows_completed_withPXI.csv new file mode 100644 index 0000000..899316d --- /dev/null +++ b/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment 8_Dontoh/windows_completed_withPXI.csv @@ -0,0 +1,5 @@ +Name;Direction;width;Height;Area;Window_ID;Frame_type;Frame_material;U;SHGC;HF;Q heating;SLF;Doh;Xoh;Fshd;IntShading_ID;IntShading_closeness;IAC_cl;IAC;Tx;Ed;ED;PXI;FFs;C_value;CF;Qcooling +east;E;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;747.0;0;0;0;0 +west;W;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;747.0;0;0;0;0 +south-Fixed;S;2;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;557.0;0;0;0;0 +south-Operable;S;2;1.8;0;5c;Operable;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;0.64;0;0;557.0;0;0;0;0 From 4bf3bfc4a4caee894f28ca70802e07d9400a4148 Mon Sep 17 00:00:00 2001 From: JDontoh Date: Tue, 28 Nov 2017 09:39:57 +0100 Subject: [PATCH 4/4] trying to delete a folder --- Assignment 8_Dontoh/Assignment 8_Dontoh.py | 56 ------ Assignment 8_Dontoh/BeamIrradiance.csv | 10 - Assignment 8_Dontoh/Cast.py | 37 ---- Assignment 8_Dontoh/DiffuseIrradiance.csv | 10 - Assignment 8_Dontoh/FFs.csv | 10 - Assignment 8_Dontoh/IAC_cl.csv | 7 - Assignment 8_Dontoh/SLF.csv | 9 - .../Window_Completed_withPXI.html | 186 ------------------ Assignment 8_Dontoh/numpy_19102017.py | 4 - Assignment 8_Dontoh/numpy_Script.py | 172 ---------------- Assignment 8_Dontoh/windows.csv | 5 - .../windows_completed_withPXI.csv | 5 - 12 files changed, 511 deletions(-) delete mode 100644 Assignment 8_Dontoh/Assignment 8_Dontoh.py delete mode 100644 Assignment 8_Dontoh/BeamIrradiance.csv delete mode 100644 Assignment 8_Dontoh/Cast.py delete mode 100644 Assignment 8_Dontoh/DiffuseIrradiance.csv delete mode 100644 Assignment 8_Dontoh/FFs.csv delete mode 100644 Assignment 8_Dontoh/IAC_cl.csv delete mode 100644 Assignment 8_Dontoh/SLF.csv delete mode 100644 Assignment 8_Dontoh/Window_Completed_withPXI.html delete mode 100644 Assignment 8_Dontoh/numpy_19102017.py delete mode 100644 Assignment 8_Dontoh/numpy_Script.py delete mode 100644 Assignment 8_Dontoh/windows.csv delete mode 100644 Assignment 8_Dontoh/windows_completed_withPXI.csv diff --git a/Assignment 8_Dontoh/Assignment 8_Dontoh.py b/Assignment 8_Dontoh/Assignment 8_Dontoh.py deleted file mode 100644 index 3fb4db4..0000000 --- a/Assignment 8_Dontoh/Assignment 8_Dontoh.py +++ /dev/null @@ -1,56 +0,0 @@ -import os -import numpy as np -import pandas as pd -import scipy as sp - -os.chdir("C:\Users\jude\Desktop\judes script code\Git\Scientific_Python_Assignments_POLIMI_EETBS\Assignment 8_Dontoh") - -Windows_DF= pd.read_csv("windows.csv",sep=";",index_col=0) - -BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) -DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) - -exposure = raw_input('please enter the exposure ') -latitude = float(raw_input('please enter the latitude of the location ')) - - -if latitude == BeamIrradiance_ED.columns.tolist(): - def PXI_calculator(exposure,latitude): - BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) - result_BeamIrradiance_ED= BeamIrradiance_ED[latitude][exposure] - - DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) - result_DiffuseIrradiance_Ed= DiffuseIrradiance_Ed[latitude][exposure] - PXI= result_BeamIrradiance_ED+result_DiffuseIrradiance_Ed - return PXI - - -if latitude != BeamIrradiance_ED.columns.tolist(): - - - name_of_columns=BeamIrradiance_ED.columns.get_values() - name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False) - ED = sp.interp(latitude,name_of_columns_as_numbers,BeamIrradiance_ED.loc[exposure]) - - name_of_columns=DiffuseIrradiance_Ed.columns.get_values() - name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False) - Ed = sp.interp(latitude,name_of_columns_as_numbers,DiffuseIrradiance_Ed.loc[exposure]) - PXI= ED+Ed - print "PXI value is " +str(PXI) - -#Calculation for PXI for RLF example 1 - Piacenza - -latitude_location= "45" - -PXI_values=[] -for index in Windows_DF.index.tolist(): - print index - print Windows_DF["Direction"][index] - PXI_values = np.append(PXI_values,PXI_calculator(Windows_DF["Direction"][index],latitude_location)) -print PXI_values - -Windows_DF["PXI"] = PXI_values -Windows_DF.to_csv("windows_completed_withPXI.csv",sep=";") -Windows_DF.to_html("Window_Completed_withPXI.html") - - \ No newline at end of file diff --git a/Assignment 8_Dontoh/BeamIrradiance.csv b/Assignment 8_Dontoh/BeamIrradiance.csv deleted file mode 100644 index 4b014f1..0000000 --- a/Assignment 8_Dontoh/BeamIrradiance.csv +++ /dev/null @@ -1,10 +0,0 @@ -;20;25;30;35;40;45;50;55;60 -N;125;106;92;84;81;85;96;112;136 -NE;460;449;437;425;412;399;386;374;361 -NW;460;449;437;425;412;399;386;374;361 -E;530;543;552;558;560;559;555;547;537 -W;530;543;552;558;560;559;555;547;537 -SE;282;328;369;405;436;463;485;503;517 -SW;282;328;369;405;436;463;485;503;517 -S;0;60;139;214;283;348;408;464;515 -H;845;840;827;806;776;738;691;637;574 diff --git a/Assignment 8_Dontoh/Cast.py b/Assignment 8_Dontoh/Cast.py deleted file mode 100644 index 97e3a21..0000000 --- a/Assignment 8_Dontoh/Cast.py +++ /dev/null @@ -1,37 +0,0 @@ -import os -import numpy as np -import pandas as pd -import scipy as sp - -os.chdir("C:\Users\jude\Desktop\judes script code\Git\Scientific_Python_Assignments_POLIMI_EETBS\Assignment 8_Dontoh") - -Windows_DF= pd.read_csv("windows.csv",sep=";",index_col=0) - -BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) -DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) - - -def PXI_calculator(exposure,latitude): - BeamIrradiance_ED = pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0) - result_BeamIrradiance_ED= BeamIrradiance_ED[latitude][exposure] - - DiffuseIrradiance_Ed = pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0) - result_DiffuseIrradiance_Ed= DiffuseIrradiance_Ed[latitude][exposure] - PXI= result_BeamIrradiance_ED+result_DiffuseIrradiance_Ed - return PXI - - -latitude_location= "45" - -PXI_values=[] -for index in Windows_DF.index.tolist(): - print index - print Windows_DF["Direction"][index] - PXI_values = np.append(PXI_values,PXI_calculator(Windows_DF["Direction"][index],latitude_location)) -print PXI_values - -Windows_DF["PXI"] = PXI_values -Windows_DF.to_csv("windows_completed_withPXI.csv",sep=";") -Windows_DF.to_html("Window_Completed_withPXI.html") - - \ No newline at end of file diff --git a/Assignment 8_Dontoh/DiffuseIrradiance.csv b/Assignment 8_Dontoh/DiffuseIrradiance.csv deleted file mode 100644 index 3b61f92..0000000 --- a/Assignment 8_Dontoh/DiffuseIrradiance.csv +++ /dev/null @@ -1,10 +0,0 @@ -;20;25;30;35;40;45;50;55;60 -N;128;115;103;93;84;76;69;62;55 -NE;177;169;162;156;151;147;143;140;137 -NW;177;169;162;156;151;147;143;140;137 -E;200;196;193;190;189;188;187;187;187 -W;200;196;193;190;189;188;187;187;187 -SE;204;203;203;204;205;207;210;212;215 -SW;204;203;203;204;205;207;210;212;215 -S;166;193;196;200;204;209;214;219;225 -H;170;170;170;170;170;170;170;170;170 diff --git a/Assignment 8_Dontoh/FFs.csv b/Assignment 8_Dontoh/FFs.csv deleted file mode 100644 index d3ad2ba..0000000 --- a/Assignment 8_Dontoh/FFs.csv +++ /dev/null @@ -1,10 +0,0 @@ -Exposure;SingleFamilyDetached;MultiFamily -N;0.44;0.27 -NE;0.21;0.43 -E;0.31;0.56 -SE;0.37;0.54 -S;0.47;0.53 -SW;0.58;0.61 -W;0.56;0.65 -NW;0.46;0.57 -H;0.58;0.73 diff --git a/Assignment 8_Dontoh/IAC_cl.csv b/Assignment 8_Dontoh/IAC_cl.csv deleted file mode 100644 index 63fbe05..0000000 --- a/Assignment 8_Dontoh/IAC_cl.csv +++ /dev/null @@ -1,7 +0,0 @@ -Type;ID;DrapesLightOpen;DrapesDarkClosed;DrapesLightClosed;RollerOpaqueDark;RollerOpqaueWhite;RollerTranslucentLight;BlindsMedium;BlindsDark -clear_1Layer;1a;0.64;0.71;0.45;0.64;0.34;0.44;0.74;0.66 -HeatAbsorbing_1Layer;1c;0.68;0.72;0.50;0.67;0.40;0.49;0.76;0.69 -Clear_2Layer;5a;0.72;0.81;0.57;0.76;0.48;0.55;0.82;0.74 -lowEpsillonHighSolar_2Layers;17c;0.76;0.86;0.64;0.82;0.57;0.62;0.86;0.79 -lowEpsillonLowSolar_2Layers;25a;0.79;0.88;0.68;0.85;0.60;0.66;0.88;0.82 -HeatAbsorbing_2Layers;5c;0.73;0.82;0.59;0.77;0.51;0.58;0.83;0.76 diff --git a/Assignment 8_Dontoh/SLF.csv b/Assignment 8_Dontoh/SLF.csv deleted file mode 100644 index c69dddf..0000000 --- a/Assignment 8_Dontoh/SLF.csv +++ /dev/null @@ -1,9 +0,0 @@ -;20;25;30;35;40;45;50;55;60 -N;2.8;2.1;1.4;1.5;1.7;1.0;0.8;0.9;0.8 -NE;1.4;1.5;1.6;1.2;1.3;1.3;0.9;0.9;0.8 -NW;1.4;1.5;1.6;1.2;1.3;1.3;0.9;0.9;0.8 -E;1.2;1.2;1.1;1.1;1.1;1.0;1.0;0.9;0.8 -W;1.2;1.2;1.1;1.1;1.1;1.0;1.0;0.9;0.8 -SE;2.1;1.8;2.0;1.7;1.5;1.6;1.4;1.2;1.1 -SW;2.1;1.8;2.0;1.7;1.5;1.6;1.4;1.2;1.1 -S;20.0;14.0;6.9;4.7;3.3;2.7;2.1;1.7;1.4 diff --git a/Assignment 8_Dontoh/Window_Completed_withPXI.html b/Assignment 8_Dontoh/Window_Completed_withPXI.html deleted file mode 100644 index 19e8b20..0000000 --- a/Assignment 8_Dontoh/Window_Completed_withPXI.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DirectionwidthHeightAreaWindow_IDFrame_typeFrame_materialUSHGCHFQ heatingSLFDohXohFshdIntShading_IDIntShading_closenessIAC_clIACTxEdEDPXIFFsC_valueCFQcooling
Name
eastE81.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000747.00000
westW81.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000747.00000
south-FixedS21.805cFixedWood000000.90.30DrapesLightOpen0.4001.0000557.00000
south-OperableS21.805cOperableWood000000.90.30DrapesLightOpen0.4000.6400557.00000
\ No newline at end of file diff --git a/Assignment 8_Dontoh/numpy_19102017.py b/Assignment 8_Dontoh/numpy_19102017.py deleted file mode 100644 index 855537e..0000000 --- a/Assignment 8_Dontoh/numpy_19102017.py +++ /dev/null @@ -1,4 +0,0 @@ -# Let's start with Numpy !!!!! - - -import numpy as np \ No newline at end of file diff --git a/Assignment 8_Dontoh/numpy_Script.py b/Assignment 8_Dontoh/numpy_Script.py deleted file mode 100644 index c259226..0000000 --- a/Assignment 8_Dontoh/numpy_Script.py +++ /dev/null @@ -1,172 +0,0 @@ -import numpy as np - -#Defining arrays - -A1 = np.array([1,2,3,4]) # An array of integrs -A2 = np.array([1.2,3.2,4.5,1.7]) #an array of floats -A3 = np.array(["John", "Carlo","Gianluca","paolo"]) #an array of strings -A4 = np.array([True,False,False,True]) #an array of booleans - -# you could clearly have defined the list before -L5 = [4,5,6,7] -A5 = np.array(L5) - -A1.dtype -A2.dtype -A3.dtype -A4.dtype - - -# numpy arrays can just have one type!!! -L6 = ["Paolo", "Sara", 256, True, 13.14] -A6 = np.array(L6) -A6.dtype - -L7 = [1,3,4.5, 9] -A7= np.array(L7) -A7.dtype - -# extracting an elemenet by position -A1[0] -A3[1] -A4[2:] -A7[1] - -for name in A3: - print name - - -# So why do we really need Numpy arrays ?!? Vectorized Operation! -#of course just for integers and floats -L1 = [1,2,3,4,5] -L2 = [11,12.1,13,14,15] - -L3= L1+L2 - -a1=np.array(L1) -a2= np.array(L2) -a3= a1+a2 -a4=a1-a2 -a5=(a2)/a1 - - -#multiplying by a constant -# A list: -C= 10 -L=[1,2,3,4] -L2=C*L - -#an Np array:! -A6 = np.array(L) -A7= A6*C - -# How to apply it to the RLF method -Opaque_items_list = ["wall","ceiling","door"] -Opaque_U_Heating_list = [0.438,0.25,2.273] -Opaque_netArea_list = [105.8, 200, 2.2] - -Opaque_items_array = np.array(Opaque_items_list) -Opaque_U_heating_array= np.array(Opaque_U_Heating_list) -Opaque_netArea_array= np.array(Opaque_netArea_list) - -T_inside_heating = 20 -T_design_winter = -4.8 - -deltaT_heating = T_inside_heating-T_design_winter - -Opaque_HF_array = Opaque_U_heating_array*deltaT_heating - -Opaque_QHeating_array = Opaque_HF_array*Opaque_netArea_array - -# logical arrays: -#How to Build one: - -A8 = np.array([2,3,5,10]) -AL1 = A8 >5 -AL2= A8 < 5 -Al3 = np.array([True,False,False,True]) - - -#Logical Operations in Python: -# and : & -# or : | -# not:~ - -AL4 = AL1 & AL2 -AL5 = AL1 | AL2 - -# Using index arrays - -A10 = np.array([7,8,9,10]) -AL = np.array([True,False,False,True]) -print A10[AL] - -Age= np.array([18, 25,14, 35, 29,13,38]) -Income_k = np.array([0,18,0,25,22,0,40]) - -income_mean = Income_k[Age > 18].mean() - - -# for the case of RLF -indexes_wall = Opaque_items_array=="wall" -indexes_door = Opaque_items_array=="door" - -indexes = indexes_door | indexes_wall -OurOutCome = Opaque_QHeating_array[indexes].sum() - -#• for the case of resistances: - -resistance_names = np.array(["R1","R2","R3","R4","R5"]) -resistances_types = np.array(["conv","cond","cond","cond","conv"]) -resistances_h = np.array([10,None,None,None,25]) -resistances_k= np.array([None,0.8,1.5,0.05,None])clear -resistances_L= np.array([None,0.5,0.3,0.6,None]) -Resistances_RValues= np.array(np.zeros(5)) -Resistances_RValues[resistances_types=="cond"] = resistances_L[resistances_types=="cond"]/ resistances_k[resistances_types=="cond"] -Resistances_RValues[resistances_types=="conv"] = 1.0 / resistances_h[resistances_types=="conv"] -Resistances_Rtot=Resistances_RValues.sum() - - -#but what if we want to define it in 2D - -# so let's see how to define 2D Matrixes -A1_2D = np.array([[1,2,3],[4,5,6],[7,8,9]]) - -# how to obtain data: -element = A1_2D[2,1] - -Resistance_parameter_matrix = np.array([resistances_h,resistances_k,resistances_L]) - -#what if we want to include the names: -Resistance_matrix = np.array([resistance_names,resistances_types,resistances_h,resistances_k,resistances_L,Resistances_RValues]) -print Resistance_matrix[0,0] -print Resistance_matrix[2,0] -# how to obtain data from it -Resistance_matrix[-1,:].sum() - - - -A17[A17>5].mean() - -AL2 = A17 < 12 - -AL3 = AL1 & AL2 - -A17[AL1 & AL2] - -myListOfList = [[1,2,3],[4,5,6],[7,8,9]] -my2DArray = np.array(myListOfList) -myArray2D_2 = np.array([[5,15,12],[17,18,19],[51,45,61]]) - -myArray2D_2.sum() -print myArray2D_2.sum(axis = 1) - - - - - - - - - - diff --git a/Assignment 8_Dontoh/windows.csv b/Assignment 8_Dontoh/windows.csv deleted file mode 100644 index 45bc1c5..0000000 --- a/Assignment 8_Dontoh/windows.csv +++ /dev/null @@ -1,5 +0,0 @@ -Name;Direction;width;Height;Area;Window_ID;Frame_type;Frame_material;U;SHGC;HF;Q heating;SLF;Doh;Xoh;Fshd;IntShading_ID;IntShading_closeness;IAC_cl;IAC;Tx;Ed;ED;PXI;FFs;C_value;CF;Qcooling -east;E;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0 -west;W;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0 -south-Fixed;S;2;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0 -south-Operable;S;2;1.8;0;5c;Operable;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;0.64;0;0;0;0;0;0;0 diff --git a/Assignment 8_Dontoh/windows_completed_withPXI.csv b/Assignment 8_Dontoh/windows_completed_withPXI.csv deleted file mode 100644 index 899316d..0000000 --- a/Assignment 8_Dontoh/windows_completed_withPXI.csv +++ /dev/null @@ -1,5 +0,0 @@ -Name;Direction;width;Height;Area;Window_ID;Frame_type;Frame_material;U;SHGC;HF;Q heating;SLF;Doh;Xoh;Fshd;IntShading_ID;IntShading_closeness;IAC_cl;IAC;Tx;Ed;ED;PXI;FFs;C_value;CF;Qcooling -east;E;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;747.0;0;0;0;0 -west;W;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;747.0;0;0;0;0 -south-Fixed;S;2;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1.0;0;0;557.0;0;0;0;0 -south-Operable;S;2;1.8;0;5c;Operable;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;0.64;0;0;557.0;0;0;0;0