Fault Loop Calculator 2021 May 2026
# Compare cold and hot cable conditions cable = CableData(length=50, cross_section_phase=4, cross_section_earth=4, material='copper')
print(f"\nTotal loop impedance: {multi_result['total_impedance']} Ω") print(f"Prospective fault current: {multi_result['prospective_fault_current']} A") fault loop calculator
def __init__(self, supply_voltage: float = 230, frequency: float = 50): """ Args: supply_voltage: Nominal phase-to-earth voltage (V) frequency: System frequency (Hz) """ self.supply_voltage = supply_voltage self.frequency = frequency # Compare cold and hot cable conditions cable
def cable_impedance(self, cable: CableData, use_temp_correction: bool = True) -> Tuple[float, float]: """ Calculate cable resistance and reactance Returns: Tuple of (resistance ohms, reactance ohms) """ resistivity = cable.RESISTIVITY[cable.material] # Temperature correction factor temp_factor = cable.TEMP_FACTOR_FAULT if use_temp_correction else 1.0 # Phase conductor resistance r_phase = resistivity * temp_factor * cable.length / cable.cross_section_phase # Earth conductor resistance r_earth = resistivity * temp_factor * cable.length / cable.cross_section_earth # Total loop resistance (phase + earth) r_total = r_phase + r_earth # Reactance (typical for LV cables: ~0.08 ohm/km for 50Hz) reactance_per_km = 0.08 # ohms/km x_total = reactance_per_km * cable.length / 1000 return r_total, x_total supply_voltage: float = 230
print(f"Cold resistance: {r_cold:.4f} Ω") print(f"Hot resistance (fault condition): {r_hot:.4f} Ω") print(f"Resistance increase: {(r_hot/r_cold - 1) * 100:.1f}%")