Answer:
a) 5.2 kPa
b) 49.3%
Explanation:
Given data:
Thermal efficiency ( л ) = 56.9% = 0.569
minimum pressure ( P1 ) = 100 kpa
<u>a) Determine the pressure at inlet to expansion process</u>
P2 = ?
r = 1.4
efficiency = 1 - [ 1 / (rp) ]
0.569 = 1 - [ 1 / (rp)^0.4/1.4
1 - 0.569 = 1 / (rp)^0.285
∴ (rp)^0.285 = 0.431
rp = 0.0522
note : rp = P2 / P1
therefore P2 = rp * P1 = 0.0522 * 100 kpa
= 5.2 kPa
b) Thermal efficiency
Л = 1 - [ 1 / ( 10.9 )^0.285 ]
= 0.493 = 49.3%
Answer:
import numpy as np
import time
def matrixMul(m1,m2):
if m1.shape[1] == m2.shape[0]:
t1 = time.time()
r1 = np.zeros((m1.shape[0],m2.shape[1]))
for i in range(m1.shape[0]):
for j in range(m2.shape[1]):
r1[i,j] = (m1[i]*m2.transpose()[j]).sum()
t2 = time.time()
print("Native implementation: ",r1)
print("Time: ",t2-t1)
t1 = time.time()
r2 = m1.dot(m2)
t2 = time.time()
print("\nEfficient implementation: ",r2)
print("Time: ",t2-t1)
else:
print("Wrong dimensions!")
Explanation:
We define a function (matrixMul) that receive two arrays representing the two matrices to be multiplied, then we verify is the dimensions are appropriated for matrix multiplication if so we proceed with the native implementation consisting of two for-loops and prints the result of the operation and the execution time, then we proceed with the efficient implementation using .dot method then we return the result with the operation time. As you can see from the image the execution time is appreciable just for large matrices, in such a case the execution time of the efficient implementation can be 1000 times faster than the native implementation.
57.5 m/s
I did 2.3/0.04
I’m not sure if it’s correct though
Answer:
Rate of heat transfer to the room air per meter of pipe length equals 521.99 W/m
Explanation:
Since it is given that the radiation losses from the pipe are negligible thus the only mode of heat transfer will be by convection.
We know that heat transfer by convection is given by
where,
h = heat transfer coefficient = 10.45 (free convection in air)
A = Surface Area of the pipe
Applying the given values in the above formula we get