Bus and branch types from data sheets¶
A BranchType and a BusType carry their impedances as formula strings in
f, rho and l (formula syntax). This
page shows how to turn a cable data sheet, an overhead-line conductor table and
an earth-electrode geometry into those strings, with a worked example for the
single-core cable NA2XS(F)2Y 1×300 RM/25 12/20 kV.
Every number on this page is computed by
types_from_datasheets.py, which
evaluates each cable quantity three ways — the closed form, Pollaczek's
integral and a groundinsight network — and the test suite checks the
agreement stated below.
Check the inputs before you use the types
The data-sheet values are quoted with their source. Values that a data sheet does not give — the build-up between insulation and screen wires, the stranding factor of the conductor, the geometry of the overhead line — are estimates and are marked as such. Replace them by the values of your cable and line.
What a branch type needs¶
| Field | Quantity | Symbol |
|---|---|---|
self_impedance_formula |
loop of the earthing conductor (cable screen, earth wire) with earth return | Z_s |
mutual_impedance_formula |
coupling between the loop of the faulted phase conductor and that loop, both with earth return | Z_m |
phase_impedance_formula |
loop of the faulted phase conductor with earth return, the screen bonded at both ends | Z_red = Z_pp − Z_m²/Z_s |
grounding_conductor=True |
the branch has a screen or earth wire bonded to the buses | – |
Each formula is the impedance of the whole branch: a per-km expression times
l. The types below also set conductor_material and cross_section_mm2 of
the screen, which the thermal check of the earthing conductors reads.
Inputs¶
| Input | Symbol | Where it comes from |
|---|---|---|
| DC resistance of the screen per km | Rs′ | data sheet or test certificate of the cable; else the EN 60228 value of the screen cross-section |
| mean radius of the screen | rs | diameter over insulation plus the build-up to the middle of the screen wires |
| DC resistance of the conductor per km | Rc′ | data sheet (EN 60228) |
| geometric mean radius of the conductor | GMRc | conductor radius × e−1/4 for a solid round conductor |
| outer diameter | D | data sheet; the axis distance of touching cables |
| soil resistivity | ρ | measurement (EN 50522:2022, Annex L.1) |
| frequencies | f | the study: 50 Hz and the harmonics of interest |
Screen–earth loop and coupling¶
Carson's formula [3] with the equivalent earth-return depth \(D_E = 658\,\sqrt{\rho/f}\) m gives, per km,
- \(\pi^2 10^{-4} f = \omega\mu_0/8\) is the resistance of the earth return, 0.0493 Ω/km at 50 Hz; \(4\pi 10^{-4} f = \omega\mu_0/(2\pi)\) is the reactance per unit of the logarithm, 0.0628 Ω/km at 50 Hz.
- The core and its concentric screen link the same flux outside \(r_s\), so the mutual impedance has the same logarithm as the screen loop and \(Z_s' - Z_m' = R_s'\). The screen is treated as thin: its internal reactance is neglected and its transfer impedance is its DC resistance, which holds while the wire diameter is small against the skin depth (1.3 mm in copper at 2.5 kHz, against 0.75 mm wires here).
- 658 is the rounded constant; the exact low-frequency limit of the earth-return integral is \(2e^{1/2-\gamma}/\sqrt{\omega\mu_0/\rho} = 658.87\sqrt{\rho/f}\) m (\(\gamma\) Euler's constant). The closed form assumes homogeneous soil, neglects displacement currents and holds while the conductor depth and radius are small against \(1/\lvert m\rvert\), \(m = \sqrt{j\omega\mu_0/\rho}\).
For one line between ideally bonded stations the reduction factor is
which is what ResultReductionFactor.value reproduces for a single branch.
The reduction factor of EN 50522 in a network, value_current, depends on the
electrodes as well; see Compare results with EN 50522 limits.
Phase impedance for rings and meshes¶
In a ring or mesh the source current divides over several routes, and
phase_current_mode="auto" computes that split on a network of phase
conductors. The impedance it needs is the loop of the faulted phase conductor
with the screen bonded at both ends:
Eliminating the screen current of a branch from its two loop equations leaves
exactly \(Z_\text{red}\) in front of the phase current. It is neither the
positive-sequence impedance \(R_1 + jX_1\) nor the conductor resistance; for a
branch without an earthing conductor it is \(Z_{pp}\). The pandapower importer
can derive the formula from a line's r_ohm_per_km/x_ohm_per_km
(ImportDefaults.derive_phase_impedance): that is the positive-sequence
impedance, a proxy that splits a ring exactly only when all its routes have the
same construction. In a radial network the split is fixed by the topology and
the formula does not change the result; declare it anyway, so the type stays
correct when the network gets a second infeed. How the split and the coupling
are modelled is explained in Phase currents in rings and meshes.
Worked example: NA2XS(F)2Y 1×300 RM/25 12/20 kV¶
Data of the cable, ρ = 100 Ω·m, 50 Hz and the 5th harmonic (250 Hz):
| Quantity | Value | Source |
|---|---|---|
| conductor | Al, 300 mm², Rc′ = 0.100 Ω/km at 20 °C | Prysmian data sheet [1], EN 60228 [2] |
| screen | Cu wires 25 mm², Rs′ = 0.727 Ω/km at 20 °C | EN 60228 value for 25 mm² [2] |
| insulation | 5.5 mm, diameter over insulation 32.9 mm | Prysmian data sheet [1], row 1x300RM/25 |
| outer diameter | 41.9 mm | Prysmian data sheet [1] |
| semiconductive layers, swelling tape, wire diameter | 0.6 mm, 0.4 mm, 0.75 mm | estimates |
| mean screen radius rs | 32.9/2 + 0.6 + 0.4 + 0.75/2 = 17.825 mm | from the rows above |
| conductor radius, GMR | 32.9/2 − 5.5 − 0.6 = 10.35 mm; GMR = 8.06 mm | estimate, solid-conductor factor e−1/4 |
| laying depth h | 0.7 m | rating conditions of the data sheet [1]; only used for method (b) |
The screen radius enters only through a logarithm: ±5 % in rs moves r at 50 Hz by ±0.2 %. The screen resistance enters directly; at 20 °C it is the lower bound, and a warm screen gives a higher r (see the three-phase system).
The data and the closed form, as the snippet writes them:
# NA2XS(F)2Y 1x300 RM/25 12/20 kV. Sources: Prysmian data sheet
# "NA2XS(F)2Y 12/20KV CPR F" (row 1x300RM/25) and EN 60228 (DC resistance
# of a class-2 conductor of the nominal cross-section, at 20 °C).
R_CORE = 0.100 # Ohm/km, Al conductor 300 mm², data sheet
R_SCREEN = 0.727 # Ohm/km, Cu wire screen 25 mm², EN 60228 value for 25 mm²
D_OVER_INSULATION = 32.9e-3 # m, nominal diameter over insulation, data sheet
T_INSULATION = 5.5e-3 # m, nominal insulation thickness, data sheet
D_OUTER = 41.9e-3 # m, nominal outer diameter, data sheet
DEPTH = 0.7 # m, laying depth of the data sheet's current ratings
# Build-up between the insulation and the screen wires: estimates.
T_SEMICON = 0.6e-3 # m, inner and outer semiconductive layer, each
T_BEDDING = 0.4e-3 # m, semiconductive swelling tape under the wires
D_WIRE = 0.75e-3 # m, diameter of one screen wire
R_SCREEN_MEAN = round(D_OVER_INSULATION / 2 + T_SEMICON + T_BEDDING + D_WIRE / 2, 8)
R_CONDUCTOR = round(D_OVER_INSULATION / 2 - T_INSULATION - T_SEMICON, 8)
GMR_CONDUCTOR = round(math.exp(-0.25) * R_CONDUCTOR, 8) # solid round conductor
RHO = 100.0 # Ohm*m
FREQUENCIES = [50.0, 250.0] # Hz
def earth_return_depth(rho, f):
"""Equivalent earth-return depth ``D_E = 658*sqrt(rho/f)`` in m."""
return 658.0 * math.sqrt(rho / f)
def loop_impedance(r_dc, radius, rho, f):
"""
Conductor-earth loop impedance per km after Carson, in Ohm/km.
``r_dc + pi²·1e-4·f + j·4·pi·1e-4·f·ln(D_E/radius)``. With ``r_dc = 0``
and the screen radius it is the mutual impedance of a conductor and its
concentric screen, both with earth return.
"""
return complex(
r_dc + math.pi**2 * 1e-4 * f,
4 * math.pi * 1e-4 * f * math.log(earth_return_depth(rho, f) / radius),
)
def loop_expression(r_dc, radius, parallel=1):
"""
The same loop impedance as a formula expression in ``f`` and ``rho``.
``parallel`` conductors of resistance ``r_dc`` each are written as
``r_dc/parallel``; ``radius`` is then their geometric mean radius.
"""
if not r_dc:
resistance = ""
elif parallel == 1:
resistance = f"{r_dc!r} + "
else:
resistance = f"{r_dc!r}/{parallel} + "
return (
f"({resistance}pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/{radius!r}))"
)
def reduced_phase_expression(z_pp, z_m, z_s):
"""``Z_red = Z_pp - Z_m²/Z_s`` as a formula expression."""
return f"({z_pp} - {z_m}**2/{z_s})"
z_s_expr = loop_expression(R_SCREEN, R_SCREEN_MEAN)
z_m_expr = loop_expression(0.0, R_SCREEN_MEAN)
z_pp_expr = loop_expression(R_CORE, GMR_CONDUCTOR)
cable = gi.BranchType(
name="NA2XS(F)2Y 1x300RM/25 12/20 kV, own screen",
grounding_conductor=True,
self_impedance_formula=f"{z_s_expr}*l",
mutual_impedance_formula=f"{z_m_expr}*l",
phase_impedance_formula=f"{reduced_phase_expression(z_pp_expr, z_m_expr, z_s_expr)}*l",
conductor_material="Cu",
cross_section_mm2=25.0,
)
The type this builds, written out:
import groundinsight as gi
cable = gi.BranchType(
name="NA2XS(F)2Y 1x300RM/25 12/20 kV, own screen",
grounding_conductor=True,
self_impedance_formula=(
"(0.727 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.017825))*l"
),
mutual_impedance_formula=(
"(pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.017825))*l"
),
phase_impedance_formula=(
"((0.1 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.00806059))"
" - (pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.017825))**2"
"/(0.727 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.017825)))*l"
),
conductor_material="Cu",
cross_section_mm2=25.0,
)
Three ways to the same numbers¶
(a) Closed form — the formulas above, evaluated in plain Python.
(b) Pollaczek's integral [5] for a conductor buried at depth \(h\) in
homogeneous soil, evaluated with scipy.integrate.quad:
MU0 = 4e-7 * math.pi # H/m
def pollaczek_earth_impedance(radius, depth, rho, f):
"""
Earth-return part of a conductor-earth loop, conductor buried at ``depth``.
Pollaczek's integral for homogeneous soil, displacement currents
neglected, in Ohm/km:
``jωμ0/(2π)·[K0(m·r) − K0(m·2h) + 2∫ exp(−2h·√(λ²+m²))/(λ+√(λ²+m²)) dλ]``
with ``m = √(jωμ0/ρ)``.
"""
omega = 2 * math.pi * f
m = cmath.sqrt(1j * omega * MU0 / rho)
def integrand(lam):
s = cmath.sqrt(lam * lam + m * m)
return cmath.exp(-2 * depth * s) / (lam + s)
upper = 40.0 / depth # the integrand is below exp(-80) beyond
points = sorted({abs(m), 10 * abs(m), 1 / (2 * depth)})
parts = [
integrate.quad(
lambda lam, part=part: getattr(integrand(lam), part),
0.0, upper, points=points, limit=400, epsabs=0.0, epsrel=1e-11,
)[0]
for part in ("real", "imag")
]
bracket = (
special.kv(0, m * radius) - special.kv(0, m * 2 * depth) + 2 * complex(*parts)
)
return 1j * omega * MU0 / (2 * math.pi) * bracket * 1e3
def internal_reactance(f):
"""Internal reactance of a solid round conductor, ``ωμ0/(8π)``, Ohm/km."""
return 1j * 2 * math.pi * f * MU0 / (8 * math.pi) * 1e3
(c) A one-branch network — the type above between two stations, solved
with run_fault; ResultReductionFactor.value of a single branch is
\(\lvert 1 - Z_m/Z_s\rvert\):
station = gi.BusType(
name="station", system_type="Substation", voltage_level=20.0,
impedance_formula="2.0",
)
net = gi.create_network(name="one_branch", frequencies=FREQUENCIES)
gi.create_bus(name="A", type=station, specific_earth_resistance=RHO, network=net)
gi.create_bus(name="B", type=station, specific_earth_resistance=RHO, network=net)
gi.create_branch(
name="K", type=cable, from_bus="A", to_bus="B", length=1.0,
specific_earth_resistance=RHO, network=net,
)
gi.create_source(name="infeed", bus="A", values={50.0: 1000.0, 250.0: 100.0}, network=net)
gi.create_fault(name="F", bus="B", scalings={50.0: 1.0, 250.0: 1.0}, network=net)
result = gi.run_fault(net, "F")
r_model = result.reduction_factor.value # {50.0: ..., 250.0: ...}
Result, impedances in Ω/km:
| f | method | Zs′ | Zm′ | Zred′ | r |
|---|---|---|---|---|---|
| 50 Hz | (a) closed form | 0.77635 + 0.68254j | 0.04935 + 0.68254j | 0.44301 + 0.38746j | 0.703286 |
| 50 Hz | (b) Pollaczek, h = 0.7 m | 0.77643 + 0.68254j | 0.04943 + 0.68254j | 0.44302 + 0.38742j | 0.703244 |
| 50 Hz | (c) groundinsight | 0.77635 + 0.68254j | 0.04935 + 0.68254j | 0.44301 + 0.38746j | 0.703286 |
| 250 Hz | (a) closed form | 0.97374 + 3.15988j | 0.24674 + 3.15988j | 0.77993 + 0.40208j | 0.219869 |
| 250 Hz | (b) Pollaczek, h = 0.7 m | 0.97465 + 3.15938j | 0.24765 + 3.15938j | 0.77988 + 0.40207j | 0.219883 |
| 250 Hz | (c) groundinsight | 0.97374 + 3.15988j | 0.24674 + 3.15988j | 0.77993 + 0.40208j | 0.219869 |
- (a) and (c) agree to rounding (about 1e-16): the model evaluates the same formula and reproduces the closed form of the reduction factor.
- (a) against (b) shows how good the \(D_E\) approximation is. At 50 Hz the earth-return resistance differs by 0.17 %, the reactance by about 1e-6, and r by 4.2·10⁻⁵ (1.4·10⁻⁵ at 250 Hz). At 50 Hz most of that is the rounded constant: with 658.87 instead of 658 the difference in r drops to 4.8·10⁻⁶. The rest is the burial depth; it shrinks in proportion to \(h\).
- Over 16.7 Hz … 2.5 kHz and 10 … 10 000 Ω·m (depth 0.7 m) the closed form stays within 1.5·10⁻⁴ of the integral in r and within 0.5 % in \(\lvert Z_s'\rvert\) and \(\lvert Z_m'\rvert\); the largest deviation in r on a 40 × 40 grid of that range is 1.3·10⁻⁴, near 400 Hz and 10 Ω·m. The integral itself is checked against an independent quadrature (mpmath) to 1e-9 and against its analytic low-frequency limit.
Three-phase system: the other two screens¶
A three-phase cable system of single-core cables has three screens. With all
of them bonded at both ends, the faulted core drives current into all three,
and the three screens return it in parallel. groundinsight has no coupling
between the screens of one branch, so the system is one branch whose type
describes the screen bundle: the screens in parallel, seen from the
faulted core. Eliminating the individual screen currents gives
with \(Z_{ss}\) the 3×3 matrix of screen loop and screen–screen impedances and \(z_c\) the couplings of the faulted core to each screen. In trefoil every row of \(Z_{ss}\) has the same sum, and the result is exactly the bundle formula: resistance \(R_s'/3\), and \(\mathrm{GMR} = (r_s s^2)^{1/3}\) in both logarithms (\(s\) = axis distance = outer diameter for touching cables), so again \(Z_{s,\text{eq}} - Z_{m,\text{eq}} = R_s'/3\).
def bundle_equivalent(positions, faulted, r_screen, r_dc, rho, f):
"""
Equivalent screen-bundle impedances seen by one faulted core, Ohm/km.
``positions`` are the cable axes (x, y) in m; the screens are bonded at
both ends, so they share one voltage drop. Eliminating their individual
currents from ``Z_ss·I = U·1 − z_c·I_core`` gives
``Z_s,eq = 1/(1ᵀ Z_ss⁻¹ 1)`` and ``Z_m,eq = Z_s,eq · 1ᵀ Z_ss⁻¹ z_c``.
"""
n = len(positions)
z_ss = np.empty((n, n), dtype=complex)
z_c = np.empty(n, dtype=complex)
for i in range(n):
for k in range(n):
d = r_screen if i == k else math.dist(positions[i], positions[k])
z_ss[i, k] = loop_impedance(r_dc if i == k else 0.0, d, rho, f)
d = r_screen if i == faulted else math.dist(positions[i], positions[faulted])
z_c[i] = loop_impedance(0.0, d, rho, f)
ones = np.ones(n)
z_s_eq = 1 / (ones @ np.linalg.solve(z_ss, ones))
z_m_eq = z_s_eq * (ones @ np.linalg.solve(z_ss, z_c))
return complex(z_s_eq), complex(z_m_eq)
def screen_current_shares(positions, faulted, r_screen, r_dc, rho, f):
"""
Share of each screen in the bundle current, screens ideally bonded.
With no voltage drop along the screens the coupling alone drives them:
``I = −Z_ss⁻¹ z_c`` per ampere in the faulted core. Returns
``|I_k| / |Σ I|`` for every screen.
"""
n = len(positions)
z_ss = np.empty((n, n), dtype=complex)
z_c = np.empty(n, dtype=complex)
for i in range(n):
for k in range(n):
d = r_screen if i == k else math.dist(positions[i], positions[k])
z_ss[i, k] = loop_impedance(r_dc if i == k else 0.0, d, rho, f)
d = r_screen if i == faulted else math.dist(positions[i], positions[faulted])
z_c[i] = loop_impedance(0.0, d, rho, f)
currents = -np.linalg.solve(z_ss, z_c)
return np.abs(currents) / abs(currents.sum())
TREFOIL = [(0.0, 0.0), (D_OUTER, 0.0), (D_OUTER / 2, D_OUTER * math.sqrt(3) / 2)]
GMR_TREFOIL = round((R_SCREEN_MEAN * D_OUTER**2) ** (1 / 3), 8) # bundle GMR = core-bundle GMD
# The thermal check compares the bundle current with cross_section_mm2: give the
# cross-section that covers the screen of the faulted core at 50 Hz.
SHARE_FAULTED_SCREEN = screen_current_shares(TREFOIL, 0, R_SCREEN_MEAN, R_SCREEN, RHO, 50.0)[0]
S_BUNDLE_MM2 = round(25.0 / SHARE_FAULTED_SCREEN, 1)
z_s3_expr = loop_expression(R_SCREEN, GMR_TREFOIL, parallel=3)
z_m3_expr = loop_expression(0.0, GMR_TREFOIL)
cable_system = gi.BranchType(
name="3x NA2XS(F)2Y 1x300RM/25 12/20 kV, trefoil, screens bonded both ends",
grounding_conductor=True,
self_impedance_formula=f"{z_s3_expr}*l",
mutual_impedance_formula=f"{z_m3_expr}*l",
phase_impedance_formula=f"{reduced_phase_expression(z_pp_expr, z_m3_expr, z_s3_expr)}*l",
conductor_material="Cu",
cross_section_mm2=S_BUNDLE_MM2,
)
cable_system = gi.BranchType(
name="3x NA2XS(F)2Y 1x300RM/25 12/20 kV, trefoil, screens bonded both ends",
grounding_conductor=True,
self_impedance_formula=(
"(0.727/3 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.03151272))*l"
),
mutual_impedance_formula=(
"(pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.03151272))*l"
),
phase_impedance_formula=(
"((0.1 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.00806059))"
" - (pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.03151272))**2"
"/(0.727/3 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.03151272)))*l"
),
conductor_material="Cu",
cross_section_mm2=69.7,
)
| f | r, own screen only | r, three screens in trefoil (bundle formula = matrix reduction = groundinsight) |
|---|---|---|
| 50 Hz | 0.703286 | 0.341570 |
| 250 Hz | 0.219869 | 0.080223 |
The other two screens halve the reduction factor at 50 Hz. Which type is right depends on how the screens are bonded: all three at both ends — the usual case — is the bundle; a cable system whose screens are bonded at one end only, or cross-bonded, needs its own derivation.
- Flat formation. The rows of \(Z_{ss}\) differ, and the bundle formula with
geometric mean distances is an approximation: for touching cables it is off
by 0.1 … 0.2 % in r at 50 Hz and by 2 … 5 % at 250 Hz (outer and middle
phase faulted). Compute the bundle with the matrix reduction
(
bundle_equivalentin the snippet) at the study frequencies and check the formula against it. - Thermal check of the screens.
check_conductor_limitscompares the current of the branch — here the bundle — withcross_section_mm2. The three screens do not share it equally: with the screens ideally bonded, the coupling drives 35.9 % of the bundle current through the screen of the faulted core at 50 Hz, and 48.1 % at 250 Hz (a voltage drop along the bundle adds an equal part to every screen). The type therefore carries 25 mm²/0.359 = 69.7 mm² instead of 75 mm², which covers the faulted core's screen at 50 Hz; with a large harmonic content use the larger share. - Screen temperature. r grows with the screen resistance. With the screens at 70 °C instead of 20 °C (factor 304.5/254.5 for copper) r of the trefoil system at 50 Hz rises from 0.342 to 0.397. The 20 °C value is the lower bound and gives the lower earth potential rise.
Overhead line with earth wire¶
For a line whose earth wire is bonded to the towers and the stations, the earth wire takes the place of the screen. With the earth wire's resistance \(R_{ew}'\) and geometric mean radius, and the distance \(d\) between the faulted phase conductor and the earth wire:
When the faulted phase is not known, or the line is transposed, use for \(d\) the geometric mean of the distances of the three phases to the earth wire; two earth wires form a bundle like the screens above. Model each span as a branch and each tower as a bus whose electrode is the tower footing.
Example: phase conductor 94-AL1/15-ST1A (Al/St 95/15, 0.3060 Ω/km, Ø 13.60 mm), earth wire 47-AL1/8-ST1A (0.6129 Ω/km, Ø 9.45 mm) [4], earth wire 2 m above the faulted phase at 10 m.
# 20 kV overhead line: phase conductor 94-AL1/15-ST1A (Al/St 95/15), earth wire
# 47-AL1/8-ST1A (Al/St 50/8), EN 50182 values; geometry: estimate.
R_EARTH_WIRE = 0.6129 # Ohm/km at 20 °C
GMR_EARTH_WIRE = round(math.exp(-0.25) * 9.45e-3 / 2, 8) # m, solid-conductor approximation
R_PHASE_OHL = 0.3060 # Ohm/km at 20 °C
GMR_PHASE_OHL = round(math.exp(-0.25) * 13.6e-3 / 2, 8) # m, solid-conductor approximation
H_PHASE, H_EARTH_WIRE = 10.0, 12.0 # m above ground, earth wire above the faulted phase
D_PHASE_EARTH_WIRE = H_EARTH_WIRE - H_PHASE # m
z_ew_expr = loop_expression(R_EARTH_WIRE, GMR_EARTH_WIRE)
z_pe_expr = loop_expression(0.0, D_PHASE_EARTH_WIRE)
overhead_line = gi.BranchType(
name="20 kV OHL 94-AL1/15-ST1A with earth wire 47-AL1/8-ST1A",
grounding_conductor=True,
self_impedance_formula=f"{z_ew_expr}*l",
mutual_impedance_formula=f"{z_pe_expr}*l",
phase_impedance_formula=(
f"{reduced_phase_expression(loop_expression(R_PHASE_OHL, GMR_PHASE_OHL), z_pe_expr, z_ew_expr)}*l"
),
)
def carson_earth_impedance(h_i, h_j, x, d, rho, f):
"""
Carson's loop or mutual impedance of overhead conductors, in Ohm/km.
With earth return, without the internal impedance:
``jωμ0/(2π)·ln(D/d) + jωμ0/π·∫ exp(−(h_i+h_j)λ)·cos(xλ)/(λ+√(λ²+m²)) dλ``,
``D`` the distance to the image conductor.
"""
omega = 2 * math.pi * f
m = cmath.sqrt(1j * omega * MU0 / rho)
height = h_i + h_j
def integrand(lam):
return cmath.exp(-height * lam) * math.cos(x * lam) / (lam + cmath.sqrt(lam * lam + m * m))
upper = 80.0 / height
points = sorted({abs(m), 10 * abs(m), 1 / height})
parts = [
integrate.quad(
lambda lam, part=part: getattr(integrand(lam), part),
0.0, upper, points=points, limit=400, epsabs=0.0, epsrel=1e-11,
)[0]
for part in ("real", "imag")
]
image = math.hypot(x, height)
z = 1j * omega * MU0 / (2 * math.pi) * math.log(image / d)
return (z + 1j * omega * MU0 / math.pi * complex(*parts)) * 1e3
overhead_line = gi.BranchType(
name="20 kV OHL 94-AL1/15-ST1A with earth wire 47-AL1/8-ST1A",
grounding_conductor=True,
self_impedance_formula=(
"(0.6129 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.00367983))*l"
),
mutual_impedance_formula=(
"(pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/2.0))*l"
),
phase_impedance_formula=(
"((0.306 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.00529585))"
" - (pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/2.0))**2"
"/(0.6129 + pi**2*1e-4*f + j*4*pi*1e-4*f*log(658*sqrt(rho/f)/0.00367983)))*l"
),
)
| f | r (a) closed form | r (b) Carson's integral | r (c) groundinsight |
|---|---|---|---|
| 50 Hz | 0.712107 | 0.711893 | 0.712107 |
| 250 Hz | 0.551584 | 0.550026 | 0.551584 |
Method (b) is Carson's integral for conductors above ground. Overhead conductors sit much higher than a buried cable, so the closed form loses accuracy sooner: 2·10⁻⁴ in r at 50 Hz, 1.6·10⁻³ at 250 Hz, and up to 2·10⁻² at 2.5 kHz in 10 Ω·m soil.
Electrode impedance of a station¶
A BusType needs the impedance of the station's electrode to remote earth,
Z_B — not the earthing impedance of the network at that station (see the
glossary). Two sources:
- A measurement. An earthing-impedance measurement at a station whose
cable screens are connected measures the network's driving-point impedance,
not
Z_B. Measure with the screens and earth wires disconnected, or deriveZ_Bfrom the measured value and the network. groundmeas manages and evaluates such measurements, including impedance against frequency and soil resistivity. - A standard formula for the electrode geometry. The common ones and two published variants each, at ρ = 100 Ω·m:
| Electrode | Formula in the BusType (source) |
Value | Second formula (source) | Value |
|---|---|---|---|---|
| rod, L = 3 m, Ø 20 mm | ρ/(2πL)·(ln(4L/a) − 1), a = radius (Dwight [6]) | 32.31 Ω | ρ/L (rough rule [7]) | 33.33 Ω |
| ring around 10 m × 10 m, D = 1.13·√A | 2ρ/(3D) (rough rule [7], [8]) | 5.90 Ω | ρ/(2π²D)·(ln(8D/d) + ln(4D/s)), d = 10 mm, s = 2·0.5 m (Dwight [6]) | 5.79 Ω |
| mesh 40 m × 40 m, 400 m conductor, 0.8 m deep | ρ·(1/LT + (1 + 1/(1 + h·√(20/A)))/√(20A)) (Sverak, IEEE 80 [9]) | 1.32 Ω | ρ/4·√(π/A) + ρ/LT (Laurent–Niemann, IEEE 80 [9]) | 1.36 Ω |
# Earth electrodes as BusType formulas in rho (Ohm*m); dimensions in m.
rod = gi.BusType( # one rod, L = 3 m, diameter 20 mm (Dwight 1936)
name="rod 3 m", system_type="Station", voltage_level=20.0,
impedance_formula="rho/(2*pi*3.0)*(log(4*3.0/0.01) - 1)",
)
ring = gi.BusType( # ring around 10 m x 10 m, D = 1.13*sqrt(A)
name="ring 10 m x 10 m", system_type="Station", voltage_level=20.0,
impedance_formula="2*rho/(3*1.13*sqrt(100.0))",
)
mesh = gi.BusType( # mesh 40 m x 40 m, 400 m of conductor at 0.8 m (IEEE 80, Sverak)
name="mesh 40 m x 40 m", system_type="Substation", voltage_level=110.0,
impedance_formula=(
"rho*(1/400.0 + 1/sqrt(20*1600.0)*(1 + 1/(1 + 0.8*sqrt(20/1600.0))))"
),
)
measured = gi.BusType( # a measured 50 Hz impedance, inductive part scaled with f
name="station, measured", system_type="Station", voltage_level=20.0,
impedance_formula="0.42 + j*0.08*f/50",
)
The two variants agree within 4 %; the soil model behind them — homogeneous
ρ — is the larger uncertainty. Frequency dependence is a modelling choice.
The formulas give a resistance, the same at every frequency. A measured
impedance with an inductive part is written so that the reactance scales with
frequency (0.42 + j*0.08*f/50 above); that form also tends to the resistance
at 0 Hz by itself.
At 0 Hz¶
DC studies and every FFT transient study evaluate the formulas at 0 Hz, where
f*log(658*sqrt(rho/f)/r) is 0·∞. The evaluator approaches 0 Hz numerically
(formula syntax); for the
types on this page it returns:
| Formula | Value at 0 Hz | Message |
|---|---|---|
self_impedance_formula |
Rs′·l, the DC resistance of the screen | none |
phase_impedance_formula |
Rc′·l, the DC resistance of the conductor | none |
mutual_impedance_formula |
about π²·10⁻¹²·l Ω — zero for every practical purpose, r = 1 | none |
The mutual impedance tends to zero: its real part \(\pi^2 10^{-4} f\) has no
constant term, so what the approach ends on, the value at 10⁻⁸ Hz, is all that
is left of it. A test relative to the value cannot judge such a limit — the
real part changes by 90 % of itself per decade however small it is — but the
step shrinks ten-fold per decade, as for anything linear in f, and the
evaluator accepts that as converged at every length. A formula that behaves
like \(\sqrt{f}\) or \(\log f\) near 0 Hz still gets a DCLimitWarning
"converges only slowly". The electrode formulas contain no f and are
unchanged at 0 Hz.
Check a new type¶
- Run a one-branch network and compare
valuewith \(\lvert 1 - Z_m/Z_s\rvert\) of the closed form, as method (c) does. - Compare r at 50 Hz with the typical values that EN 50522:2022 lists for cables and lines (Annex I).
- Evaluate the formulas at the lowest ρ, the lowest frequency and the shortest
length of the model: a negative real part or a NaN is refused
(formula syntax), and so is
a real part that runs to −∞ at 0 Hz, which a
log(f)term without a factorfproduces.
References¶
- Prysmian, data sheet "NA2XS(F)2Y 12/20KV CPR F", document code RO00_NA2XS_F_2Y20KVCPRF_07/11/2026, table of constructions, rows 1x300RM/25. https://datasheet.prysmiangroup.com/pdf/datasheet/en/322930
- EN 60228 / IEC 60228:2004, Conductors of insulated cables; values of the DC resistance at 20 °C as tabulated by Bayka, "Conductor resistance". https://www.bayka.de/en/service/technical-information/conductor-resistance
- J. R. Carson, "Wave propagation in overhead wires with ground return", Bell System Technical Journal, vol. 5, no. 4, pp. 539–554, 1926.
- EN 50182:2001, Conductors for overhead lines — Round wire concentric lay stranded conductors; values as tabulated by Lumino Industries, "EN 50182 Type A1/S1A". https://luminoindustries.com/wp-content/uploads/2024/04/EN-50182-2001-TYPE-A1-ST1A.pdf
- F. Pollaczek, "Über das Feld einer unendlich langen wechselstromdurchflossenen Einfachleitung", Elektrische Nachrichten-Technik, vol. 3, no. 9, pp. 339–359, 1926; A. Ametani, "A general formulation of impedance and admittance of cables", IEEE Transactions on Power Apparatus and Systems, vol. PAS-99, no. 3, pp. 902–910, 1980, doi:10.1109/TPAS.1980.319718.
- H. B. Dwight, "Calculation of resistances to ground", Transactions of the AIEE, vol. 55, no. 12, pp. 1319–1328, 1936, doi:10.1109/T-AIEE.1936.5057209; reproduced in IEEE Std 142 (Green Book), table "Formulas for the calculation of resistances to ground".
- DEHN, Lightning Protection Guide, 3rd ed., 2014, Table 5.5.1. https://resources.ipd.com.au/Flipbook/35_DS702_E_2014_Lightning_Protection_Guide/files/basic-html/page124.html
- EN 50522:2022, Earthing of power installations exceeding 1 kV a.c., Annex J (informative) "Basis for the design of earthing systems", J.2 "Resistance to earth"; Annex I (informative) "Reduction factors related to earth wires of overhead lines and metal sheaths of underground cables"; Annex L.1, soil resistivity measurement.
- IEEE Std 80-2013, IEEE Guide for Safety in AC Substation Grounding, clause 14.2.