Numerical algorithm for fault distance calculation and blocking unsuccessful reclosing onto permanent faults | Synapse