Repository navigation
v2.0.0
v2.0.0
This release adds formulae from IEEE 80, IEEE 142, ENA EREC S34, ENA TS 41-24, and IS 3043, makes IEEE formulae the default where IEEE provides one, and introduces a validation suite of 224 cases checked against the worked examples and tables of those standards.
Breaking Changes
Some default formulae have changed. Pass method= to restore the earlier behaviour:
| Function | New Default | Earlier Formula |
|---|---|---|
resistance_grid_with_rods |
'IEEE80': Schwarz, IEEE 80 Eqs. 53–56 |
method='S34' (ENA S34 R4–R6) |
resistance_plate |
'IEEE142': Dwight, IEEE 142 Table 4-5 |
method='S34' (ENA S34 R2) |
resistance_strip |
'IEEE142': Dwight, IEEE 142 Table 4-5 |
IS 3043:1987 formula removed; method='S34' gives ENA S34 R7 (same as IS 3043:2018) |
max_current_density |
'S34': ENA S34 Formula C2 |
method='IS3043' (7.57e3 / sqrt(rho * t)) |
resistance_strip: Parametertis now the strip width (or2 × diameterfor a round conductor).- Deprecations:
Descrete*classes,descretise(), anddescrete_elementshave been renamed toDiscrete*,discretise(), anddiscrete_elements. The old names remain functional for now and raise aDeprecationWarning.
New Features
-
resistance_grid_schwarz: Grid resistance with or without rods using Schwarz's equations (IEEE 80 Eqs. 53–56), with$k_1$ and$k_2$ from Figure 25. -
e_mesh_step: IEEE 80 mesh and step voltage calculations for square, rectangular, L-shaped, and irregular grids. -
e_step_50,e_touch_50: IEEE 80 voltage limits for a 50 kg body. -
ENA EREC S34 surface potentials:
e_touch_external(P1),e_touch_fence(P2),e_touch_fence_peripheral(P3),e_step_external(P5),surface_potential_hemisphere,surface_potential_rod,surface_potential_grid(P6), andcontour_distance(P7). -
touch_limit_ts4124,step_limit_ts4124: ENA TS 41-24 Tables 1 and 2 limits.
Improvements & API Updates
e_mesh_step_grid: Settingrods_on_perimeter=Falsenow uses IEEE 80 Eqs. 82 and 90 for rods inside the grid only.resistance_grid_with_rods: Addedb(equivalent conductor diameter),h, andratioarguments.max_current_density: Addedmethodargument ('S34','IS3043','IEEE142').
Validation Suite
- Added
validation/to verify the package against IEEE Std 80-2000, ENA EREC S34, ENA TS 41-24, IS 3043:2018, and IEEE Std 142 (224 total cases: 210 passing, 14 informational). Run with:python3 validation/run_validation.py