Skip to content

Commit

Permalink
0.6.2 add .rst documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurynas Zavistanavicius committed Aug 2, 2023
1 parent 81673d8 commit 279b746
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions doc/protection/fuse.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
###################################################
Fuse
###################################################

A fuse is a protection device frequently used in low-voltage networks. When exposed to a sufficiently high current, the fuse melts and an arc forms. As the fuse continues to melt, the arc distance increases until it eventually is extinguished, and no more current flows through the fuse.

pandapower allows users to add fuses to networks and analyze their performance in short-circuit and power flow scenarios. It includes a standard library of fuses with rated currents ranging from 16A to 1000A.

Fuses can be created using the Fuse class:

.. autofunction:: pandapower.protection.protection_devices.fuse

To run protection calculations, use the calculate_protection_times function:
.. autofunction:: pandapower.protection.run_protection.calculate_protection_times
2 changes: 1 addition & 1 deletion pandapower/protection/protection_devices/fuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Fuse(ProtectionDevice):
OPTIONAL:
**fuse_type** (str, "none") - string of the fuse type to be used. If it is in the standard library, it will
automatically create generate the characteristic curve. Otherwise, it has no effect.
automatically generate the characteristic curve. Otherwise, it has no effect.
Example: fuse_type = "Siemens NH-1-100"
**rated_i_a** (float, 0) - the rated current of the fuse in amps
Expand Down
2 changes: 2 additions & 0 deletions pandapower/test/protection/test_fuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def test_fuse_fault_oc_scenario():
# check if any fuses melt after fault has been cleared
overload_results = calculate_protection_times(net, scenario="pp")
net.protection.object.at[overload_results.trip_melt_time_s.idxmin()].status_to_net(net)

pp.runpp(net)
assert net.switch.closed.at[6] == False, 'Fuse 6 should melt, switch 6 should open'


Expand Down

0 comments on commit 279b746

Please sign in to comment.