Answer To: Experimental Data Worksheet Input Cells From Experimental Data Calculations (Outputs) Temperature In...
Arun Shankar answered on Jul 14 2021
import math
PI = math.pi
temp_in = float(input("Temperature in (deg. C): "))
temp_out = float(input("Temperature out (deg. C): "))
flow_rate = float(input("Flow rate: "))
tube_inner_dia = float(input("Tube inner diameter: "))
total_cooling_length = float(input("Total cooling length: "))
input_heat_compare = float(input("Input Heat To Compare: "))
# Compute density, viscosity, pr, k , cp
# from the excel sheet
def extrapolate(yvalues, index, xvalues, tm):
y1 = yvalues[index]
y2 = yvalues[index + 1]
m = (y2 - y1) / (temp_values[index + 1] - temp_values[index])
y = y1 + (m * (tm - temp_values[index]))
return y
temp_values = [0.00, 1.85, 6.85, 11.85, 16.85, 21.85, 26.85, 31.85, 36.85, 41.85, 46.85, 51.85, 56.85, 61.85, 66.85, 71.85, 76.85, 81.85, 86.85, 91.85, 96.85, 100.00]
specific_heat = [4217, 4211, 4198, 4189, 4184, 4181, 4179, 4178, 4178, 4179, 4180, 4182, 4184, 4186, 4188, 4191, 4195, 4199, 4203, 4209, 4214,
4217]
density_values = [1000, 1000, 1000, 1000, 999.000999, 998.003992, 997.0089731, 995.0248756, 993.0486594, 991.0802775, 989.1196835, 987.1668312, 984.2519685,...