Skip to content

Fault (3-phase)

Three-phase fault block. Applies a configurable fault (single-line-to-ground, line-to-line, double-line-to-ground, or three-phase) with a chosen fault resistance, on a timed window or under external trigger control.

Category: Three-Phase / Sources

Keywords: 3-phase, 3-ph, 3 ph, 3ph, three, three-phase, three phase, phase, ph, short, short circuit, SC, SLG, LL, LLG, LLL, ground fault

Ports

NameDirectionValue typeNotes
buselectrical_3phdouble
enableinputdoubleVisible when trigger_mode == 'control'

Parameters

NameLabelTypeDefaultUnitsDescription
fault_typeFault typeenum (A-G (1φ to gnd) / B-G (1φ to gnd) / C-G (1φ to gnd) / A-B (φ-φ) / B-C (φ-φ) / C-A (φ-φ) / AB-G (2φ to gnd) / BC-G (2φ to gnd) / CA-G (2φ to gnd) / ABC (3φ sym))AGFault topology at the bus port. AG/BG/CG = single line-to-ground. AB/BC/CA = phase-to-phase. ABG/BCG/CAG = double line-to-ground. ABC = three-phase symmetrical. Ground topologies use the internal simulator ground (no external port).
fault_resistanceR faultdouble0.01Fault path resistance (Ω). Typical: 0.001 - 0.1 (bolted), 1 - 50 (arcing).
trigger_modeTrigger modeenum (Timed window / Control input)timed`timed` = active in [t_trigger, t_clear]. `control` = follows `enable` input (≠0 = active). After deactivation, each phase waits for |i| < `i_threshold` before opening (current-zero clearing).
t_triggert trigger (s)double0.05Fault activation time (s) for `timed` mode.
t_cleart clear (s)double0.15Clear-command time (s) for `timed` mode. Each phase waits independently for |i| < `i_threshold` before opening (avoids di/dt spike).
i_thresholdI clear threshold (A)double1|i| below which a phase may open after deactivation. Larger = clears earlier; smaller = waits closer to natural zero. Phases clear independently. 0 = true current-zero (may delay up to one cycle).
measure_currentsMeasure fault currentsenum (Off / On)0Emit per-phase fault currents (A) flowing from bus into the fault. Names per phase.
i_fault_name_aFault current name AstringIfa
i_fault_name_bFault current name BstringIfb
i_fault_name_cFault current name CstringIfc

Observables

SignalTypeDefault nameEnableDescription
i_fault_asignalfrom i_fault_name_ameasure_currentsPhase A fault current flowing from bus into fault (A).
i_fault_bsignalfrom i_fault_name_bmeasure_currentsPhase B fault current (A).
i_fault_csignalfrom i_fault_name_cmeasure_currentsPhase C fault current (A).

Implemented in C++ class SimCompElecTransformerFault (components/electrical/sim_comp_elec_transformer_fault/sim_comp_elec_transformer_fault.h).

Released under the MIT License.