Skip to content

v2.0.0

Choose a tag to compare

@manuvarkey manuvarkey released this 18 Nov 18:52
· 5 commits to main since this release

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: Parameter t is now the strip width (or 2 × diameter for a round conductor).
  • Deprecations: Descrete* classes, descretise(), and descrete_elements have been renamed to Discrete*, discretise(), and discrete_elements. The old names remain functional for now and raise a DeprecationWarning.

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), and contour_distance (P7).
  • touch_limit_ts4124, step_limit_ts4124: ENA TS 41-24 Tables 1 and 2 limits.

Improvements & API Updates

  • e_mesh_step_grid: Setting rods_on_perimeter=False now uses IEEE 80 Eqs. 82 and 90 for rods inside the grid only.
  • resistance_grid_with_rods: Added b (equivalent conductor diameter), h, and ratio arguments.
  • max_current_density: Added method argument ('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