Skip to content

Fault (1-phase)

Single-phase fault block. Inserts a configurable fault resistance between two electrical nodes for a timed window or under external trigger control. Use for short-circuit and ground-fault studies.

Category: Single-Phase / Sources

Keywords: 1-phase, 1-ph, 1 ph, 1ph, single, single-phase, single phase, phase, ph, short, short circuit, SC, ground fault

Ports

NameDirectionValue typeNotes
N1electricaldouble
N2electricaldouble
enableinputdoubleVisible when trigger_mode == 'control'

Parameters

Config

NameLabelTypeDefaultUnitsDescription
fault_resistanceR faultdouble0.01Fault path resistance between N1 and N2 when active (Ω). 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, branch 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. Branch then waits for |i| < `i_threshold` before opening (avoids di/dt spike under load).
i_thresholdI clear threshold (A)double1|i| below which the branch may open after deactivation. Larger = clears earlier; smaller = waits closer to natural zero. 0 = true current-zero clearing (may delay up to one cycle).
measure_currentMeasure fault currentenum (Off / On)0Emit the fault current (A) flowing from N1 into the fault.

Current Monitoring

NameLabelTypeDefaultUnitsDescription
current_nameFault current namestringIf

Observables

SignalTypeDefault nameEnableDescription
i_faultsignalfrom current_namemeasure_currentFault current flowing from N1 into the fault (A).

Implemented in C++ class SimCompElecFault (components/electrical/sim_comp_elec_fault/sim_comp_elec_fault.h).

Released under the MIT License.