Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Assignment 1_Deadline 26 Sept 2017/assignment1_step1_Genco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#determination of the total thermal resistance and the heat transfer rate throw a Composite Wall

H = 3 #height of the wall
W = 5 #width of the wall
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = 0.026 #foam conduction heat transfer
k2 = 0.22 #plaster conduction heat transfer
k3 = 0.72 #brick conduction heat transfer
h1 = 10 #inside convenction heat trasfer
h2 = 25 #outside convenction heat trasfer
t1 = 20 #temperature inside
t2 = -10 #temperature outside

#Resistence
Rconv = 1/(h1*ht*1)
R1 = wf/(k1*ht*1) #foam Resistence
R2 = R6 = wp/(k2*ht*1) # the two plaster side resistence
R3 = R5 = wb/(k2*hp*1) # Plaster center Resistence
R4 = wb/(k3*hb*1) # Brick Resistence
R0 = 1/(h2*ht*1) #second convention resistence

Rp = ( (1/R3) + (1/R4) + (1/R5) )
RP = 1/Rp #sum of the three resistence in the middle, they are in parallel

Rt = Rconv+R1+R2+RP+R6+R0

Q = (t1-(t2))/Rt #heat transfer through the wall
s = (ht*1) #surface area in m^2
Q1 = Q/s #heat transfer per m^2 area
A = H * W #total area

Qt = Q1*A


print"The amount of heat transfer of the entire wall is "+str (Qt)+" degC/W"
print"The amount of thermal resistence of the brick is "+str (Rt)+" W"
41 changes: 41 additions & 0 deletions Assignment 1_Deadline 26 Sept 2017/assignment1_step1_riva.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#ASSIGNMENT 1

H = 3 #height of the wall
W = 5 #width of the wall
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = 0.026 #foam conduction heat transfer
k2 = 0.22 #plaster conduction heat transfer
k3 = 0.72 #brick conduction heat transfer
h1 = 10 #inside convenction heat trasfer
h2 = 25 #outside convenction heat trasfer
t1 = 20 #temperature inside
t2 = -10 #temperature outside

#Res
Rconv = 1/(h1*ht*1)
R1 = wf/(k1*ht*1) #foam Res
R2 = R6 = wp/(k2*ht*1) # the two plaster side res
R3 = R5 = wb/(k2*hp*1) # Plaster center Res
R4 = wb/(k3*hb*1) # Brick Res
R0 = 1/(h2*ht*1) #second convention res

Rp = ( (1/R3) + (1/R4) + (1/R5) )
RP = 1/Rp #sum of the three res in the middle, they are in parallel

Rt = Rconv+R1+R2+RP+R6+R0

Q = (t1-(t2))/Rt #heat transfer through the wall
s = (ht*1) #surface area in m^2
Q1 = Q/s #heat transfer per m^2 area
A = H * W #total area

Qt = Q1*A


print"The amount of heat transfer of the entire wall is "+str (Qt)+" degC/W"
print"The amount of thermal resistence of the brick is "+str (Rt)+" W"
39 changes: 39 additions & 0 deletions Assignment 1_Deadline 26 Sept 2017/assignment1_step2_Genco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
H = 3 #height of the wall
W = 5 #width of the wall
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = float (raw_input("enter the thermal conductivity of the foam in W/(degC*m) "))#foam conduction heat transfer
k2 = float (raw_input("enter the thermal conductivity of the plaster in W/(degC*m) ")) #plaster conduction heat transfer
k3 = float (raw_input("enter the thermal conductivity of the brick in W/(degC*m) ")) #brick conduction heat transfer
h1 = float (raw_input("enter the internal convenction heat transfer W/(degC*m^2) "))#inside convenction heat trasfer
h2 = float (raw_input("enter the external convenction heat tranfer W/(degC*m^2) "))#outside convenction heat trasfer
t1 = float (raw_input("enter the internal temperature in degC ")) #temperature inside
t2 = float (raw_input("enter the external temperature in degC ")) #temperature outside

#Resistence
Rconv = 1/(h1*ht*1)
R1 = wf/(k1*ht*1) #foam Resistence
R2 = R6 = wp/(k2*ht*1) # the two plaster side resistence
R3 = R5 = wb/(k2*hp*1) # Plaster center Resistence
R4 = wb/(k3*hb*1) # Brick Resistence
R0 = 1/(h2*ht*1) #second convention resistence

Rp = ( (1/R3) + (1/R4) + (1/R5) )
RP = 1/Rp #sum of the three resistence in the middle, they are in parallel

Rt = Rconv+R1+R2+RP+R6+R0

Q = (t1-(t2))/Rt #heat transfer through the wall
s = (ht*1) #surface area in m^2
Q1 = Q/s #heat transfer per m^2 area
A = H * W #total area

Qt = Q1*A


print"The amount of heat transfer of the entire wall is "+str (Qt)+" degC/W"
print"The amount of thermal resistence of the brick is "+str (Rt)+" W"
41 changes: 41 additions & 0 deletions Assignment 1_Deadline 26 Sept 2017/assignment1_step2_riva.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#ASSIGNMENT 1

H = 3 #height of the wall
W = 5 #width of the wall
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = float (raw_input("enter the thermal conductivity of the foam in W/(degC*m) "))#foam conduction heat transfer
k2 = float (raw_input("enter the thermal conductivity of the plaster in W/(degC*m) ")) #plaster conduction heat transfer
k3 = float (raw_input("enter the thermal conductivity of the brick in W/(degC*m) ")) #brick conduction heat transfer
h1 = float (raw_input("enter the internal convenction heat transfer W/(degC*m^2) "))#inside convenction heat trasfer
h2 = float (raw_input("enter the external convenction heat tranfer W/(degC*m^2) "))#outside convenction heat trasfer
t1 = float (raw_input("enter the internal temperature in degC ")) #temperature in
t2 = float (raw_input("enter the external temperature in degC ")) #temperature out

#Res
Rconv = 1/(h1*ht*1)
R1 = wf/(k1*ht*1) #foam Res
R2 = R6 = wp/(k2*ht*1) # the two plaster side res
R3 = R5 = wb/(k2*hp*1) # Plaster center Res
R4 = wb/(k3*hb*1) # Brick Res
R0 = 1/(h2*ht*1) #second convention res

Rp = ( (1/R3) + (1/R4) + (1/R5) )
RP = 1/Rp #sum of the three res in the middle, they are in parallel

Rt = Rconv+R1+R2+RP+R6+R0

Q = (t1-(t2))/Rt #heat transfer through the wall
s = (ht*1) #surface area in m^2
Q1 = Q/s #heat transfer per m^2 area
A = H * W #total area

Qt = Q1*A


print"The amount of heat transfer of the entire wall is "+str (Qt)+" degC/W"
print"The amount of thermal resistence of the brick is "+str (Rt)+" W"
58 changes: 58 additions & 0 deletions Assignment 2 Deadline Oct 3rd 2017/Assignment2_step1_Genco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#determination of the total thermal resistance and the heat transfer rate throw a Composite Wall

H = 3 #height of the wall
W = 5 #width of the wall
t1 = 20 #temperature inside
t2 = -10 #temperature outside
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = 0.026 #foam conduction heat transfer
k2 = 0.22 #plaster conduction heat transfer
k3 = 0.72 #brick conduction heat transfer
h1 = 10 #inside convenction heat trasfer
h2 = 25 #outside convenction heat trasfer

#Resistence
Rconv = [0.25,10]
R1 = [0.25, 0.03, 0.026] #foam Resistence
R2 = R6 = [0.25,0.02,0.22] # the two plaster side resistence
R3 = R5 = [0.015,0.16,0.22] # Plaster center Resistence
R4 = [0.22,0.16,0.72] # Brick Resistence
R0 = [0.25,25] #second convention resistence

series = [R1,R2,R3]
parallel = [R3,R5,R4]
convseries = [Rconv,R0]

conv = 0
for anyelement in convseries:
A = anyelement[0]
h = anyelement[1]
Rconv = 1/(A*h)
CONVENCTION = conv + Rconv

serie = 0
for aanyelement in series:
A1 = aanyelement[0]
h1 = aanyelement[1]
k1= aanyelement[2]
Rconv = h1/(A1*k1)
SERIES = serie + Rconv

paral= 0
for anyelement in parallel:
A2 = anyelement[0]
h2 = anyelement[1]
k2 = anyelement[2]
Rpar = h2/(A2*k2)
Rparal = paral + 1/Rpar
PARALLELL = 1/Rparal

RTOT= PARALLELL + CONVENCTION + SERIES


print"The amount of thermal resistence of the brick is "+str (RTOT)+" W"
59 changes: 59 additions & 0 deletions Assignment 2 Deadline Oct 3rd 2017/Assignment2_step2_Genco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#determination of the total thermal resistance and the heat transfer rate throw a Composite Wall

H = 3 #height of the wall
W = 5 #width of the wall
t1 = 20 #temperature inside
t2 = -10 #temperature outside
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = 0.026 #foam conduction heat transfer
k2 = 0.22 #plaster conduction heat transfer
k3 = 0.72 #brick conduction heat transfer
h1 = 10 #inside convenction heat trasfer
h2 = 25 #outside convenction heat trasfer

#Resistence
Rconv = {"total height of the unit":0.25,"convenction heat trasfer":10}
R1 = {"name":"foam","area":0.25,"lenght": 0.03,"k":0.026}
R2 = {"name":"plaster series","area":0.25,"lenght":0.02,"k":0.22}
R6 = {"name":"plaster series1","area":0.25,"lenght":0.02,"k":0.22}
R3 = {"name":"plaster parallel","area":0.015,"lenght":0.16,"k":0.22}
R5 = {"name":"plaster parallel1","area":0.015,"lenght":0.16,"k":0.22}
R4 = {"area":0.22,"lenght":0.16,"k":0.72}
R0 = {"total height of the unit":0.25,"convenction heat trasfer":25}
series = [R1,R2,R3]
parallel = [R3,R5,R4]
convseries = [Rconv,R0]

conv = 0
for anyelement in convseries:
A = anyelement["total height of the unit"]
h = anyelement["convenction heat trasfer"]
Rconv = 1/(A*h)
CONVENCTION = conv + Rconv

serie = 0
for anyelement in series:
A1 = anyelement["area"]
h1 = anyelement["lenght"]
k1= anyelement["k"]
Rconv = h1/(A1*k1)
SERIES = serie + Rconv

paral= 0
for aanyelement in parallel:
A2= aanyelement["area"]
h2 = aanyelement["lenght"]
k2 = aanyelement["k"]
Rpar = h2/(A2*k2)
Rparal = paral + 1/Rpar
PARALLELL = 1/Rparal

RTOT= PARALLELL + CONVENCTION + SERIES


print"The amount of thermal resistence of the brick is "+str (RTOT)+" W"
58 changes: 58 additions & 0 deletions Assignment 2 Deadline Oct 3rd 2017/assignment2_step1_riva.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#ASSIGNMENT 2

H = 3 #height of the wall
W = 5 #width of the wall
t1 = 20 #temperature inside
t2 = -10 #temperature outside
ht = 0.25 #total height of the unit
hb = 0.22 #height of the brick
hp = 0.015 #height of the plaster
wf = 0.03 #width of the foam
wp = 0.02 #width of the plaster layers
wb = 0.16 #width of the brick
k1 = 0.026 #foam conduction heat transfer
k2 = 0.22 #plaster conduction heat transfer
k3 = 0.72 #brick conduction heat transfer
h1 = 10 #inside convenction heat trasfer
h2 = 25 #outside convenction heat trasfer

#Res
Rconv = [0.25,10]
R1 = [0.25, 0.03, 0.026] #foam Res
R2 = R6 = [0.25,0.02,0.22] #the two plaster side res
R3 = R5 = [0.015,0.16,0.22] #Plaster center Res
R4 = [0.22,0.16,0.72] #Brick Res
R0 = [0.25,25] #second convention res

series = [R1,R2,R3]
parallel = [R3,R5,R4]
convseries = [Rconv,R0]

conv = 0
for anyelement in convseries:
A = anyelement[0]
h = anyelement[1]
Rconv = 1/(A*h)
CONVENCTION = conv + Rconv

serie = 0
for aanyelement in series:
A_ = aanyelement[0]
h_ = aanyelement[1]
k_= aanyelement[2]
Rconv = h_/(A_*k_)
SERIES = serie + Rconv

paral= 0
for anyelement in parallel:
A__ = anyelement[0]
h__ = anyelement[1]
k__ = anyelement[2]
Rpar = h__/(A__*k__)
Rparal = paral + 1/Rpar
PARALLELL = 1/Rparal

RTOT= PARALLELL + CONVENCTION + SERIES


print"The amount of thermal resistence of the brick is "+str (RTOT)+" W"
Loading