Adds more lengths to cable drop calculation

This commit is contained in:
Patrick McDonagh
2017-04-19 16:51:29 -05:00
parent 6fc535673c
commit fe4e8bf56d

View File

@@ -1,6 +1,5 @@
from math import sqrt
length = 10000.0 # feet
current = 10.4 # Amps
temperature = 250.0 # degress F
k20 = 10.37 # 1.26 / 1000.0 # ohms of 1 circular mil foot of conductor
@@ -18,7 +17,12 @@ def calc_voltage_needed(input_voltage, voltage_drop):
motor_input_voltage = 380.0
v_dropped = voltage_drop(length, current, temperature, k75, circular_mils, alpha_copper)
v_output = calc_voltage_needed(motor_input_voltage, v_dropped)
print("Voltage Drop: {} V, Output Voltage: {}, Motor Input Voltage {} V".format(round(v_dropped, 3), round(v_output, 3), round(motor_input_voltage, 3)))
print("---")
for x in [1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0, 8000.0, 9000.0, 10000.0]:
v_dropped = voltage_drop(x, current, temperature, k20, circular_mils, alpha_copper)
v_output = calc_voltage_needed(motor_input_voltage, v_dropped)
print("Length: {}".format(x))
print("Voltage Drop: {} V".format(round(v_dropped, 3)))
print("Output Voltage: {} V".format(round(v_output, 3)))
print("Motor Input Voltage {} V".format(round(motor_input_voltage, 3)))
print("---")