#example 28.1
#page no. 805
# Given that
t=1.#in mm thickness of chip
I=5000.#in Ampere current
T=0.1#in sec
d=5.#in mm diameter of electrode
# Sample Problem on page no. 805
print("\n # Heat Generated in Spot Welding # \n")
#It is assumed in the book that effective restiance = 200 micro ohm
R=200.*(10.**-6.)
H=(I**2.)*R*T
print'%s %d %s' %("\n\n Heat Generated =",H,"J")
# It is assumed in the book that
V=30.#in mm3 volume
D=0.008#in g/mm3 density
M=D*V
#Heat required to melt 1 g of steel is about 1400J
m1=1400.*M
print'%s %d %s' %("\n\n Heat Required to melt weld nugget =",m1," J")
m2=H-m1
print'%s %d %s' %("\n\n Heat Dissipitated into the metal surrounding the nugget =",m2," J")