CODE
import math
from scipy import integrate
import matplotlib.pyplot as plt
def cV(T):
V = 0.001 # aluminum volume in cubic meter
rho = 6.022e28 # number density of aluminim in (m^-3)
Td = 428 #debye temperature
kb = 1.38064852e-28 # boltzmann constant in J/K
#function to be integerated
f = lambda x: (x**4)*(math.exp( x ))/(math.exp( x ) - 1)**(2)
INT = integrate.quad(f, 0, Td/T)
#Cv at T
value = 9*V*rho*kb*((T/Td)**3) * (INT[0] - INT[1])
return value
#heat capacity lst
cv = []
i = 0
T = list(range(5,301))
l = 301- 5
while(i < l):
cv.append(cV(T[i]))
i = i+ 1
#plotting
plt.plot(T, cv, 'ro')
plt.xlabel('Temperature (K)')
plt.ylabel('Cv (J/K)')
plt.title('Aluminiums Heat Capacity with Temperature')
plt.show()
SCREENSHOTS
Note: Please take care of the the indentation as it is lost while pasting
Please go through above code and comments and if any doubts then just message me.
Give me a thumbs up. Thanks.
Debye's theory of solids gives the heat capacity of a solid at temperature T to be p) Jo(e*-1)2 Write a Python function cv (T) that calculates Cv for a given value of the temperature, for a sa...
answer (d) Eq(1) Here T is temperature, p ,C and K are density, heat capacity and thermal conductivity of the objects, respectively. X is the direction that points onward form the platform surface. Give the necessary initial and boundary conditions of Eq(1)(5%) (c) If thermal conductivity is not a constant, but is a function of Temperature, i.e., K-Ko + AT, here Ko and A are constants, introduce K into Eq(1) and expand the equation. Is this a linear partial differential...