Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 141
""" ********************************************************************* * *Voltage Drop Calculation Check * *BY:Jacob Cox * *Date:11/2016 * ********************************************************************* """
#auto %hide print ("Voltage Drop Calculator") @interact def vDrop(vSource = input_box(default=480,label='Source Voltage (V)'), loadCurrent = input_box(default=1,label='Load Current (A)'), distance = input_box(default=50, label='Source to Load Distance (ft) - One Way'), powerFactor = slider(0.6,1.0,0.025, label='Power Factor'), raceway = ['Magnetic','Non-Magnetic'], cableSize = selector(['12 AWG','10 AWG','8 AWG','6 AWG','4 AWG','2 AWG','1 AWG','1/0 AWG','2/0 AWG','3/0 AWG','4/0 AWG','250 kcmil','300 kcmil','350 kcmil','400 kcmil','450 kcmil','500 kcmil','600 kcmil','750 kcmil'],label='Cable Size'), sets = selector([1..12],label='# of Sets'), voltageSystem = selector(['line-to-neutral','single-phase','three-phase'],label='Calculation Type')): theta=arccos(powerFactor) if raceway == 'Magnetic': voltageDrop = vSource+loadCurrent*(distance/(1000.*sets))*CopperSingleConductor[cableSize][0]*cos(theta)+loadCurrent*(distance/(sets*1000.))*CopperSingleConductor[cableSize][1]*sin(theta)-sqrt(vSource*vSource-(loadCurrent*(distance/(sets*1000.))*CopperSingleConductor[cableSize][0]*cos(theta)-loadCurrent*(distance/(sets*1000.))*CopperSingleConductor[cableSize][1]*sin(theta))^2) elif raceway == 'Non-Magnetic': voltageDrop = vSource+loadCurrent*(distance/(1000.*sets))*CopperSingleConductor[cableSize][3]*cos(theta)+loadCurrent*(distance/(1000.*sets))*CopperSingleConductor[cableSize][4]*sin(theta)-sqrt(vSource*vSource-(loadCurrent*(distance/(1000.*sets))*CopperSingleConductor[cableSize][3]*cos(theta)-loadCurrent*(distance/(1000.*sets))*CopperSingleConductor[cableSize][4]*sin(theta))^2) if voltageSystem == 'line-to-neutral': voltageDrop = voltageDrop elif voltageSystem == 'single-phase': voltageDrop=2*voltageDrop elif voltageSystem == 'three-phase': voltageDrop=sqrt(3)*voltageDrop print("Voltage Drop =",voltageDrop.n(digits=3),"Volts") print("%Voltage Drop =",((voltageDrop/vSource)*100).n(digits=3),"%")
Voltage Drop Calculator
Interact: please open in CoCalc