Magnetic field#
Built, in active development, not approved yet (roadmap O18 step 4,
first slice). Implemented in crates/ohl-electrical
(magnetic). Used by ohl electrical magnetic and Checks › Electrical ›
Magnetic field… (Magnetic field: the
window step by step, every setting; Electrical: magnetic
field: the command
line).
Every assumption is marked Assumption (a value or a model taken where the line gives none) or Simplification (it changes the result), and said to be conservative (the field computed is at least the real one), not conservative, or neither, as far as that can be told. The program computes the field; which current, which places and which limit an ordinance asks for are the ordinance's (a plugin's parameter file), never built in.
What is computed#
The magnetic flux density of the line's currents at power frequency, as the rms value of the vector (the resultant field):
\[ B = \sqrt{|\underline B_x|^2 + |\underline B_y|^2 + |\underline B_z|^2} \]
with \( \underline B_x, \underline B_y, \underline B_z \) the complex rms phasors of the three components. The phases between the components do not enter (the rms of the vector, not its peak). This is the quantity the Swiss enforcement guide asks for (BAFU, Hochspannungsleitungen. Vollzugshilfe zur NISV, draft for trial, 2007, section 8.1.4, its equation 2) and the "resultant field" of IEC 62110 (Electric and magnetic field levels generated by AC power systems — Measurement procedures with regard to public exposure, 2009).
Beside it the program gives the largest value over the cycle: the field vector \( \Re(\vec{\underline B},e^{j\omega t}) \) traces an ellipse; with \( \vec{\underline B} = \vec R + j\vec I \) its semi-major axis (as an rms value) is
\[ B_{max} = \sqrt{\tfrac12(R^2 + I^2) + \sqrt{\tfrac14(R^2 - I^2)^2 + (\vec R\cdot\vec I)^2}} \]
(the largest eigenvalue of \( \vec R\vec R^T + \vec I\vec I^T \)). \( B_{max} \le B \le \sqrt2,B_{max} \): equal for a linearly polarised field, \( B/\sqrt2 \) for a circular one.
Several frequencies (a 16.7 Hz railway system beside a 50 Hz one): each frequency computed apart, added as \( B = \sqrt{B_{16.7}^2 + B_{50}^2} \) (Parseval; the guide's equation 3). The largest value over the cycle is then given as the root of the sum of each frequency's squares — not a physical value (two frequencies have no common cycle), only an indication.
What it is compared to. A limit (µT) is optional and yours to give: each point then shows its margin (limit − B) and each profile the width where B is at or above it. No limit is built in. Which current, which places and which load-flow directions govern are the ordinance's (a plugin's parameter file).
Inputs and parameters#
The window's names (Checks › Electrical › Magnetic field…), in the order
of its Setup tab. Defaults are those of a new window; the command line
(ohl electrical magnetic) has the same unless said (its option in
brackets). "Time" is the effect on how long a run takes.
| In the window | Default | Effect on the results | Effect on the time |
|---|---|---|---|
| 2 Scope › weather case | the first case | the wires' places (sag, swing) as solved in it | a case not solved yet is solved first |
current, per circuit: given for the circuit (--current C=A) |
0 A | the field in proportion; rms, each phase, balanced at the system's phase angles | none |
… or at its end points (--end C@S=A) |
in at the first end, the rest out at the last | each section's current by Kirchhoff's current law, branches included (Currents) | none |
… or the thermal rating (command line only, --thermal) |
— | the least ampacity over the circuit's sections, at your conductor temperature and ambient case | none |
… or per phase (--phase-current C:PHASE=A@DEG, every phase) |
— | each phase's own current and angle: an unbalanced circuit with its net current, which governs far from the line (Balanced input and the net current) | none |
Earth wire currents typed (--earth-current SECTION=A@DEG[@HZ]) |
none | that earth wire carries the typed current in every span instead of a computed one; the others (when on) are induced by the phases and by it | none |
load flow: along / against the line (:reverse) |
along | every phase turned by 180°: changes the field where circuits add or compensate | none |
Model: 3D / 2D (--two-d) |
3D | 3D: the wires as solved (sag, line angles, the line's length), jumpers, structures' currents; 2D: infinite straight wires at the profile | 2D: a moment |
wires at the span's mean height (2D only, --mean-heights) |
off | on: lower field under the lowest point (not conservative) | none |
Earth wires: carry the currents the phases induce (--earth-wires) |
off | either sign: on the synthetic example +5 to 6 % near the ground | small |
… through the structures' earthing (--towers) |
on in the window (off on the command line) | the earth wires as a network over the line, each structure to the ground through its earthing resistance; off: infinitely long, earthed everywhere (far larger currents on a short line) | small |
| Jumpers: carry their phase's current | on | near the structures; off: not conservative there (--no-jumpers) |
a few more pieces |
| Limit: given | none (1 µT when ticked) | the margin and the limit line's width | none |
| Points from CSV… | none | the field at each point | in proportion to the points |
| 3 Spans › Make | 2D: cuts and profiles | 2D: the cuts asked and (profiles too) the profiles; 3D: the volumes only | each kind a step of its own |
| 3 Spans › the span table | spans on an alignment ticked, others not | where profiles, cuts and volumes are computed | in proportion to the spans |
| Profiles | at each ticked span's lowest point | or beside its structures (10 m into the span), or one span (its lowest point or a place 0–1 along it) | per profile |
| Across: ± / every / at | ± 100 m, every 1 m, 1 m above the ground | the profile's width, spacing and height | in proportion to the points |
| 2D cuts at (+ station) / ± / every / up to | none; ± 100 m, every 1 m, up to 10 m over the highest wire | a vertical cut on the alignment with isolines; the step how closely the isolines follow their levels (measured: Cut-offs and grids) | in proportion to the points: halving the step, four times the points |
| Volumes: every (Volume ticked) | 2 m | how closely the surfaces follow their levels (measured: see below) | halving the step takes 4 to 8 times as long |
| 4 Model › Wire pieces: as solved / at most | as solved (1 m when ticked) | how far a wire lies off its pieces (millimetres) | in proportion to the pieces |
Modelled: wires within (--modelled-within) |
2 000 m in the window (2026-11-01; the whole line before, and in ohl; the window's "whole line" choice removed 2026-11-12 — a longer distance takes more wires) |
cuts and volumes only; the difference to the whole line is measured at each run (Cut-offs and grids) | far quicker on a long line |
| 5 Views and levels › levels | 1 and 10 µT on, 100 µT off | drawing only; none is a limit | each level a little |
| colour the cuts by band; also in any cross-section panel I open | on; off (0.5 m when on) | drawing only; the field in each cross-section view opened after a run | per view opened |
The window says the time of each choice before Run, at the speed of the last run on this computer (before a first run: a short measurement halved, see Performance).
How it works, step by step#
- The wires. The line is solved in the weather case: each wire's polyline per span, a bundle subconductor by subconductor, each jumper's shape.
- The currents. Each circuit's current (given, from its end points, or its thermal rating) at its phase angles, each section's direction along its conductor path (Currents, Which way the currents flow); optionally the earth wires' and structures' currents (Earth wire currents).
- The field. At every point, every straight piece of every wire adds its field in closed form (Biot–Savart), per component as a phasor (The 3D model); then \( B \) and \( B_{max} \) as above. No ground: the earth's currents are left out (The ground's return currents).
- The views. Profiles are plotted; grids, cuts and volumes are drawn between their points, and how far the drawing lies off its level is measured (Cuts, volumes and what they are drawn with).
The 3D model#
Each conductor and earth wire as the solver gives it in the chosen
weather case — the polyline of every span (sag, line angles, the finite
length of the line as modelled), a bundle subconductor by subconductor
(each subconductor's polyline offset from the bundle's centre line as the
views draw it, Bundle::polylines). Each straight piece from \( a \) to
\( b \) carries a current \( \underline I \) (rms phasor); its field at
\( p \) in closed form (Biot–Savart's law integrated along the piece;
e.g. D. J. Griffiths, Introduction to Electrodynamics, the field of a
straight wire segment):
\[ \vec B = \frac{\mu_0 \underline I}{4\pi\rho^2} \left( \frac{\vec r_a\cdot\hat u}{|\vec r_a|} - \frac{\vec r_b\cdot\hat u}{|\vec r_b|} \right) \hat u \times \vec d \]
with \( \hat u \) the piece's direction, \( \vec r_a = p - a \), \( \vec r_b = p - b \), \( \vec d \) the perpendicular from the piece's line to \( p \), \( \rho = |\vec d| \) — the textbook \( \frac{\mu_0 I}{4\pi\rho}(\cos\alpha_1 - \cos\alpha_2) \) as a vector. The pieces' fields are summed per component as phasors.
- Simplification: the wire straight between the solver's points. The
solver says how far the wire lies off its polyline
(
SpanShape.polyline_error: the largest sagitta \( R - \sqrt{R^2 - L^2/4} \approx L^2/(8R) \) of a piece of length \( L \) on the catenary's smallest radius of curvature \( R = H/w \); some millimetres: 64 pieces per span or part of a span, e.g. 7 m pieces and 4 mm on a 450 m span at H/w = 1700 m); the field moves by about that share of the distance (0.04 % at 10 m). Neither conservative nor not. Shorter pieces on request (Settings.piece_length): each solver piece cut into equal parts no longer than asked, the new points on the average of the two quadratics through the piece's ends and a neighbouring point (parameter: the length along the polyline); half the two quadratics' difference is the placing's estimate, reported with the sagitta bound over the shorter pieces (\( \propto L^2 \)). Where the two differ by more than the solver's bound (a kink: a spacer, a clamp, a span point) the piece is cut on its chord — no worse than the solver's pieces there. On a catenary of \( C \) = 1500 m, 6.25 m pieces cut to 0.9 m put the points within some µm of the curve (the chords lay up to 3.3 mm off). - The sum is the same for every piece; it is arranged per polyline (each vertex's distance computed once for the two pieces meeting there) and per block of 64 points (a wire's pieces stay in the processor's cache for the block): equal to the piece-by-piece sum within rounding (\( 10^{-12} \), tested), some times quicker on a long line.
- Assumption: a bundle's current shared equally by its subconductors (exact for a regular bundle by symmetry, close for the others).
- Assumption: the permeability of free space everywhere — the steel of the structures and of the earth wires' cores is not modelled magnetically (the structures' currents are: see Earth wire currents). Its size: a steel member of radius \( a \) and relative permeability \( \mu_r \) in a field across it disturbs that field outside it by at most \( \frac{\mu_r - 1}{\mu_r + 1} (a/r)^2 \) at the distance \( r \) from its axis (the 2D cylinder in a uniform field, exact): for a leg of 5 cm under 0.25 % at 1 m and 0.01 % at 5 m, for any \( \mu_r \). A lattice tower adds many such small disturbances near it; at mid-span and at the profiles' height none. Modelling it would take a finite-element field solution of the tower.
- The jumpers (since 2026-10-29; on by default, an option): a jumper between two section ends of one phase carries that phase's current as solved in the weather case, from the end whose section brings the current into the structure (by the sections' directions along the line and the circuit's load flow) to the end whose section takes it on. A jumper on a tap (the current shares itself), between different phases or between two ends the current enters (or leaves) by is left out and said (not conservative near that structure). Tested: a line cut at a structure and jumpered gives within 2.5 % the field of the line uncut right beside it, 9–10 % less without the jumper. Off: left out (not conservative near the structures).
- The modelled length. The line is modelled whole, as far as it goes. The guide asks for every conductor to be modelled at least five times the limit line's largest distance from a conductor before and after the plane of calculation (8.1.4.1). The program measures that reach on the profile (the farthest point at or above the limit from the nearest conductor at the station; without a limit, the profile's half width) and warns where the line is shorter than five times it on either side — near the line's ends, where the lines beyond (a substation, the next line) are not modelled: not conservative there. The reach is measured at the profile's height only; the limit line may reach farther at the conductors' height (not conservative for the rule's check).
The 2D model#
The wires of a cross-section as infinite straight parallel conductors; per conductor
\[ \vec B = \frac{\mu_0 \underline I}{2\pi r^2},\hat x \times \vec r, \qquad |\vec B| = \frac{\mu_0 |\underline I|}{2\pi r}. \]
The wires' places: by default where they cross the profile's plane (the cross-section at the station — at the span's lowest point by default: the wires lowest, the field there largest). For a sagging span this is conservative against the 3D model (the real wires rise towards the structures; on the synthetic example's 300 m spans the 2D maximum under the lowest point is 0.1 % above the 3D one, more on long spans with a large sag). Option: the span's mean height (the line parameters' rule) — not conservative under the lowest point.
The guide says when 2D is not to be used (8.1.4.2); the program warns:
- within reach of a line angle over 5° (a deviation from the straight line of more than 5°, the guide's footnote 27): the angle between the spans' axes at each structure; a structure within the profile's half width (or the limit line's reach, if larger) of the station is said;
- on a span between differently arranged structures: a wire's place relative to the others (across and up, relative to the wires' centre) differs by more than 0.5 m between the span's two ends (a choice of the program, to confirm);
- near crossings with other lines: not checked — other lines are not in the model yet (said).
Currents#
Per circuit (the phases of one system in one named circuit): an rms current, the same in each phase (balanced), no harmonics, at the system's phase angles (L1 0°, L2 −120°, L3 +120° unless the system gives its own; a transformer's fixed shift, e.g. Yd11, is typed as the system's angles). This is the governing state the guide describes (2.4.1 and 8.1.4); real operation is unbalanced — Assumption as the guide asks, neither conservative nor not in general.
-
At its end points: a circuit's end points are the structures where its sections end without going on to another of them (each phase's sections joined where they meet, by its jumpers); at each the current into the line (out: negative; one end may take the rest). Every section's current then follows by Kirchhoff's current law: on each phase's sections, a section's current is the sum of the currents in on its first structure's side once it is taken away — exact for a line with branches; a meshed circuit (its sections closing a loop) needs its impedances (the load flow, roadmap O18 step 2) and is refused. The direction of each section's current comes with it. Tested: in at one end and out at the other is the circuit's current along the line (in at the other: against it); a sum not zero, a structure not an end and two "rests" are refused.
-
Given (A) for the whole circuit, or
-
the circuit's thermal rating (
--thermalon the command line): the steady-state ampacity of each section's wire (Thermal rating) times its subconductors, at a conductor temperature and in an ambient case you give — the least over the circuit's sections (the weakest section governs, as the guide's 2.4.1 says for a line of mixed conductors). The guide's governing current is the thermal limit current at the ambient conditions it names (2.4.1); those conditions belong to the ordinance's parameter file, not to the program. -
Per phase (since 2026-11-11): each phase's current \( \underline I_k = I_k \angle \varphi_k \) typed — magnitude and angle, in the frame of the systems' phase angles, along the line. A circuit given so needs all its phases; it takes them in place of the balanced current (not together with the end points). The field is the same sum over the wires as before, each wire with its own phasor.
Balanced input and the net current#
NOT ON THE SAFE SIDE far from the line. A balanced circuit's currents sum to zero: seen from far away its wires cancel, and its field falls off as \( 1/d^2 \) with the distance \( d \). An unbalanced circuit leaves a net current
\[ \underline I_n = \sum_k \underline I_k \neq 0 , \]
whose field is that of one conductor, falling off only as \( 1/d \). For a flat circuit of phase spacing \( s \) (the far-field forms used below for the earth's images),
\[ B_{\text{bal}} \approx \frac{\sqrt3,\mu_0,I,s}{2\pi,d^2}, \qquad B_{\text{net}} = \frac{\mu_0,I_n}{2\pi,d}, \qquad B_{\text{net}} = B_{\text{bal}} \ \text{at} \ d^* = \frac{\sqrt3,I,s}{I_n} . \]
Beyond \( d^* \) the net current governs. Computed for \( I = 1000 \) A
and \( s = 8 \) m: a net current of 5 % (50 A) governs beyond 277 m
(0.036 µT there), of 2 % (20 A) beyond 693 m (0.0058 µT), of 1 % (10 A)
beyond 1386 m (0.0014 µT). Balanced input holds no net current, so it
gives too little there — small values, which matter where a low limit or
a long limit line is asked. Every result with a balanced circuit says so
("NOT ON THE SAFE SIDE far from the line: …", magnetic::BALANCED_NOTE);
a result whose circuits are all given per phase names each circuit's net
current instead. Which unbalance to assume is the user's (none is built
in). Tested (currents_per_phase_and_the_net_current): the phases typed
at the balanced values give the balanced field to \( 10^{-9} \); three
in-phase currents of 100 A give \( \mu_0 \cdot 300 / (2\pi \cdot 500) =
0.12 \) µT at 500 m (within 0.5 %) and half of it at twice the distance,
where the balanced circuit gives a quarter; 5 % more current in one
phase of 1000 A gives more than twice the balanced field at 500 m.
A direction per circuit: the load flow along the line (from its first structure to its last) or against it — every phase's current turned by 180°. Which combination of directions governs is the ordinance's question (the guide's 2.4.2); the program computes the one given.
DC systems are left out (a static field; said).
Which way the currents flow#
A circuit's current flows on through its sections and the jumpers joining them: the sections joined by jumpers are oriented alike (a jumper from one's last point to another's first: the same way; last to last or first to first: opposite ways), and each such chain is turned so that it runs along the line over most of its length (span by span, from the structure placed first along the alignments to the next; off the alignments, the way most sections between the two structures are drawn). "Reverse" on a circuit turns all its phases. Until 2026-10-29 each span took its direction alone; where the order of a span's two structures turned at a structure, a current left that structure by both sections (on a real line 3 of 77 profiles moved by more than 1 %, one by 9.7 %), and a section drawn backwards off the alignments made a span of its own. Tested: a section given backwards gives the same field.
Earth wire currents#
Optional. The earth wires are taken as infinitely long and earthed everywhere (zero voltage along them), so per span, from its mean cross-section and the primitive series impedances of the line parameters (Carson's earth return, the line's method and soil resistivity):
\[ \underline I_e = -,Z_{ee}^{-1} Z_{ep},\underline I_p . \]
Simplification: the towers' earthing (footing resistances) and the earth wires' ends are not modelled; near the ends of a line and with high footing resistances the real currents are smaller. Hence, since 2026-10-29, through the structures' earthing:
- Every structure bonds its earth wires (one voltage \( V_n \)) and leads
current into the ground through its earthing resistance \( R_n \)
(its own,
Structure.earthing_resistance_ohm; else the line's; else 10 Ω assumed, said — a common design target for towers, measured values ranging from under 1 Ω to hundreds). - In every span of length \( L \) from structure \( a \) to \( b \), the earth wires carry \[ \underline I_e = (Z_{ee} L)^{-1} \big( (V_a - V_b),\mathbf 1 - Z_{ep} \underline I_p L \big) \] (the same primitive matrices from the span's mean cross-section).
- Kirchhoff's current law at every structure, \( \sum_{\text{spans}} \mathbf 1^T \underline I_e \text{ (out)} + V_n/R_n = 0 \), is one linear system over the whole line (branches included); its solution gives the earth wires' currents per span and every structure's current into the ground \( V_n / R_n \). With every \( R_n \to 0 \) it is the infinitely long earth wire above (tested within 0.1 %); with very high ones no current flows; the structures' currents add to nothing (tested).
- The structures' currents are current paths of the 3D model: down the structure's axis from its highest earth wire point to its foot. Simplification: the current shares itself among the legs and members; the field within a few metres of the structure differs.
- Simplification, not conservative: the earth wires end at the line's end structures, earthed there alone; a substation's earthing grid (far lower) is not modelled — near the line's ends the real currents are larger.
On the synthetic double circuit (600 m, three structures of 10 Ω, 1000 A per circuit in the same direction) the network gives 2.3 A in the earth wire, the infinitely long earth wire 94 A: on a short line with real footings the infinite assumption overstates them by far. The guide does not ask for earth wire currents but takes them when the program computes them (its footnote 24). Their effect has either sign: in the synthetic double-circuit example (L1 lowest, L3 next to the earth wire) the induced current is nearly in phase with L1 and raises the field near the ground by about 5 % (one circuit) to 6 % (both); other arrangements lower it. Run both when it matters.
An earth wire's current typed#
Since 2026-11-11 an earth wire's current may be typed instead of computed (a measured or a specified current, e.g. a share of a net current returning in it): magnitude and angle, along the line, the same in every span of its section. It is carried whether the induced currents are on or off. With them on, the typed earth wires are given currents beside the phases': the others follow from
\[ \underline I_f = -,Z_{ff}^{-1}\left( Z_{fp},\underline I_p + Z_{ft},\underline I_t \right) \]
(\( f \) the earth wires computed, \( t \) those typed, \( p \) the
phases; the same primitive matrices). Not together with the structures'
network (it computes every earth wire's current: refused). Neither
conservative nor not: the typed value is the user's. Tested
(an_earth_wire_current_typed): typed at the induced value it gives the
induced field to \( 10^{-9} \); 60 A alone give \( \mu_0 \cdot 60 /
(2\pi \cdot 500) = 0.024 \) µT at 500 m.
The ground's return currents — left out#
Simplification. The earth's own currents (eddy currents, and the return of a net current such as an earth wire's) are not modelled: the field is that of the wires' currents in free space. Their effect can be estimated with the complex depth (Deri, Tevan, Semlyen, Castanheira, "The complex ground return plane", IEEE Trans. PAS-100 (8), 1981): the earth acts like an image of each current at the depth \( h + 2\underline p \), \( \underline p = \sqrt{\rho/(j\omega\mu_0)} \). At 50 Hz and 100 Ω·m, \( |\underline p| \approx 503 \) m: the images lie about 1 km down.
- Balanced phases (the currents sum to zero): the images form a balanced set about 1 km away, whose field falls as \( 1/d^2 \): for 1000 A on a flat line of 8 m spacing, \( \sqrt3,\mu_0 I s/(2\pi d^2) \approx 0.003 \) µT at the ground.
- A net current, e.g. 100 A in an earth wire returning through the earth: \( \mu_0 I/(2\pi d) \approx 2\cdot10^{-7}\cdot 100/1000 \approx 0.02 \) µT.
- At 10 Ω·m (\( |\underline p| \approx 160 \) m) about three times that.
Small against fields of the order of 1 µT; larger in relative terms far from the line, where the field is small anyway (the guide notes the model's uncertainty grows well below 1 µT, 8.1.4). Neither conservative nor not in general (the images oppose their sources' near fields).
Where#
- Profiles across the line at stations (every span's lowest point by default — the lowest point of its lowest phase conductor — or a place in a span), square to the span's axis, ±100 m every 1 m, at a height above the ground (1 m by default). The ground — Ground from : the surface of the checks, a terrain surface (TIN layer) of the project, or the survey's ground points along the spans made into a surface for the run; without any, straight between the structures' feet and level across (Simplification).
- What a run makes: 2D — the cuts asked and, asked, the profiles and points; 3D — the volumes only. Each kind is a step of its own, one after another: the cuts and the volumes from the wires in 3D, the profiles by their model (3D or 2D). The wires from the window's weather case and calculation, or a system's own (Per electrical system: e.g. the conductors at their load's temperature, the earth wires at the air's); each case and calculation solved once, every section taken from its system's.
- Grids on a horizontal plane at that height over a span, their own
step (
grid_step): the levels' isolines from above — in the engine andohl; the window no longer offers them. - Vertical cuts across the line: a grid in a vertical
plane, ± the width, from the lowest ground under it to some metres over
the highest wire, every step; every point computed (also under the
ground; the drawing stops at the ground, straight between the
columns). The plane: at a station of an alignment,
vertical and perpendicular to the alignment there; within 1 cm of an
alignment point (an angle point) along the bisector of the two
directions, as a structure stands — the same placement as a
cross-section panel (one implementation,
ohl_line::route::plane_at), so the run's cut and the panel opened at its station are one plane. A place in a span (its middle, its lowest point, a distance from its first structure) is first turned into the alignment station of that place, between the stations of the span's structures. Where the alignment and the span's chord are not parallel (a span beside the alignment, or the bisector at an angle point) the plane crosses the wires obliquely: the field is computed in that plane all the same (3D, the wires as solved), and a cut through an angle point shows both spans' wires as they meet at the structure. A span on no alignment can have no cut. The ground under the cut: the terrain where given, else straight between the feet of the span the plane crosses at the axis. The cross-section panels' own cuts (computed whenever a panel opens) take the panel's plane as it is. - Volumes: the isosurfaces of the levels in a box over a span (± the width, from the lowest ground under it to some metres over the highest wire), see below. Where the boxes of two volumes overlap (two alignments side by side, a branch leaving a structure), the coarse cells lying wholly in the volume computed first are left to it: the later volume does not refine them and draws no surface in them, so each place is computed and drawn once (2026-11-10). Every value drawn is computed as before; only which lattice carries the surface there changes, and at the first box's edge the two surfaces overlap by at most one coarse cell (four steps) and may show a seam, a matter of the drawing alone.
- Given points (e.g. places of sensitive use) from a CSV file: x, y and an elevation or a height above the ground.
With an optional limit (µT, yours to give): the margin at each point (limit − B) and per profile the extent where B is at or above it (the limit line's width at that height), and whether it reaches beyond the profile.
Cuts, volumes and what they are drawn with#
Every value at a grid or lattice point is the field computed in full; only the drawing between the points is interpolated (decided 2026-10-18: speed may only coarsen the display, never computed precision; the wires modelled are the user's choice, with its effect measured):
-
Isolines (marching squares, the two-dimensional case of W. E. Lorensen and H. E. Cline, "Marching cubes: a high resolution 3D surface construction algorithm", Computer Graphics (SIGGRAPH '87) 21 (4), 1987, pp. 163–169): where a level crosses a cell's edge, placed by the logarithm of the two values (a field falls about as a power of the distance, so its logarithm is closer to straight between points), straight across the cell; a saddle decided by the cell's mean.
-
Isosurfaces (marching tetrahedra, A. Doi and A. Koide, "An efficient method of triangulating equi-valued surfaces by using tetrahedral cells", IEICE Transactions on Information and Systems E74-D (1), 1991, pp. 214–224: each lattice cube cut into six tetrahedra around its diagonal, so neighbouring cubes split their faces alike and the surface has no cracks), the crossings placed as above.
-
The volume's lattice is computed only where a surface can pass: a coarse lattice first (4 steps apart), then the fine one in every coarse cell where a level lies between its corners' values or within 10 % of them (a surface bulging into the cell), in every cell within a coarse step of a wire piece (where a thin surface around a conductor can hide between coarse points), and, again and again, in every cell beyond a face of a fine cell that a level crosses (the surface is followed until it closes or leaves the box; tested: no holes but at the box's sides). In parts: a long volume's lattice is walked along its run in parts of whole coarse cells, at most some 20 million points (160 MB) held at once; two parts share the plane where they meet, the next starting from the values the one before computed there and following every surface that crosses it — the same points computed and the same surfaces as in one piece (tested). A surface that would come back across a shared plane into the part before after leaving it is only followed forward (Simplification: a fold of a surface back along the run, which the closed tubes around the wires do not make). Simplification: a surface lying wholly between coarse points, away from every wire and more than 10 % off the values around it, is not found — it would be smaller than a coarse cell. On a real span about half the fine lattice was computed. Thin pieces left out : a connected piece of a surface at most 2 steps across in two directions and at most 20 steps long is a stretch of a tube thinner than the lattice (round an earth wire at 5 kV/m: centimetres), met only where a lattice point happens to lie inside it; drawn, such pieces were beads along the wire (2–3 m thick, 4–21 m long at 2 m steps on a real line; the surface round the conductors 650 m). They are left out of the drawing and counted with each volume — a display choice, the values computed unchanged; a finer step resolves the tube.
-
How far the drawing lies off its level is measured, not assumed: after a run the field is computed again at up to 200 points spread over every isoline and surface, and the relative difference to the level reported (half of the points within …, nine in ten within …, the largest). It is largest where the field bends sharply between points, near the conductors: on a real line (1000 A per circuit) the 1 µT surface lay within 0.05 % for nine points in ten at a 2 m step, the 10 µT one within 1 %, the 100 µT one (a tube of some 2 m around each conductor) within 15 % and up to 55 %; at 1 m within 0.01 %, 0.3 % and 4 % (up to 11 %).
-
The wires modelled (
modelled_within, optional; the default is the whole line): a cut or volume may take the wires within a distance only (a piece by its nearer end and half its length). Simplification, measured: the whole line's field is computed at up to 200 points of the cut or volume and the relative difference reported. On a real line of 28 km, 2 km left the field within 0.03 % (500 m: 0.6 %). -
Time. The cost is the points times the pieces (some ns each per core). The estimates in the window take the last run's speed on the computer, else a short measurement halved (see Performance below).
Cut-offs and grids (measured)#
(Request: "give indications on the cutoffs and the improvement
with better grids … keep it quick enough".) Every value at a point is
computed in full, from every piece of every wire summed; what a setting
changes is which wires are summed (the cut-off) or where the
points are (the grids), and from that how a drawing follows the
field. Measured on the example double circuit
(examples/electrical, two spans, 800 A per circuit;
crates/ohl-electrical/tests/sensitivity.rs, a release build).
The cut-off: the wires modelled within a distance. Only the pieces within d of a cut or volume are summed; each run measures, at some 200 of the cut's points, how much the pieces left out change it.
| Modelled within | Pieces summed | The cut against the whole line (nine in ten / largest) | Time of the cut |
|---|---|---|---|
| 25 m | 72 | 50 % / 55 % | 2 ms |
| 50 m | 144 | 23 % / 28 % | 3 ms |
| 100 m | 264 | 7.3 % / 9.2 % | 5 ms |
| 200 m | 444 | 1.2 % / 1.6 % | 8 ms |
the whole line (ohl's default) |
768 | — | 12 ms |
The field of a long straight conductor falls off slowly (as 1/r), and a line's phases nearly cancel only far away: a short cut-off leaves out much. On a 28 km line, 2 km left the cuts within 0.03 % and made a volume ten times quicker — the cut-off is for long lines, at a distance of a kilometre or more, and each run says what it changed. 2 km is the window's default (the defaults reviewed for accuracy and speed: 0.03 % for ten times the speed); a line shorter than that is modelled whole all the same.
On a real line: a 27 km 220 kV line of five circuits (1000 A in each, assumed), 34 cuts along it — every kilometre and one at each line angle over 25°, ±150 m every 1 m — against the whole line. The points of 1 µT or more:
| Modelled within | Largest difference (B ≥ 1 µT) | Largest (B ≥ 0.1 µT) | The 1 µT isoline 1 m above the ground | Time (34 cuts) |
|---|---|---|---|---|
| 500 m | 1.4 % | 9.0 % | one grid step (1 m) off at 9 cuts | 6.6 s |
| 1 km | 1.0 % | 7.8 % | 1 m off at 4 cuts | 7.4 s |
| 2 km (default) | 0.16 % | 1.4 % | 1 m off at 3 cuts | 9.0 s |
| 5 km | 0.02 % | 0.15 % | 1 m off at 1 cut | 13.4 s |
| the whole line | — | — | — | 27 s |
The shorter cut-offs fail where the line bends or another line comes near (the largest differences at an angle and near a substation the line shares with another); at 2 km the 1 µT isoline moves only where it sits on its level within a grid step, and the 1.4 % lies in the faint field below 1 µT (some 0.002 µT). So the 2 km default holds, for a third of the time.
The width. On the same line the 1 µT isoline, 1 m above the ground, lay 52 to 76 m from the axis on one side in most cuts and 90 m in the cut along the bisector of a 49° angle: at the former ±50 m it reached the edge of 30 of the 34 cuts, cut short. Profiles, cuts and volumes reach ±100 m by default: the 34 cuts took 7.9 s against 6.1 s at ±50 m (the project's reading and the wires' solving included). Volumes twice as wide take about twice as long. Where a higher current or a lower level reaches farther, widen it: a level that touches the edge of a cut is cut short there. The electric field keeps ±50 m (its limits lie near the wires; its floors grow with the width).
A cut's step. The field at every grid point is exact; an isoline is drawn straight between the points where it crosses a cell, so it cuts the corners where it bends tightly — near the wires, where the higher levels' isolines are small circles.
| Step | Points (±60 m) | 1 µT | 3 µT | 10 µT | 30 µT | Time |
|---|---|---|---|---|---|---|
| 0.25 m | 96 681 | 0.00 % | 0.00 % | 0.01 / 0.40 % | 0.09 / 0.16 % | 49 ms |
| 0.5 m | 24 341 | 0.00 % | 0.01 % | 0.46 / 1.5 % | 0.33 / 0.61 % | 12 ms |
| 1 m (default) | 6 171 | 0.01 % | 0.03 % | 1.0 / 6.8 % | 1.3 / 2.9 % | 3 ms |
| 2 m | 1 586 | 0.03 % | 0.12 % | 5.0 / 32 % | 2.9 / 10 % | 1 ms |
(The isolines' points off their level: nine in ten / the largest.) The low levels — those of the limits at the ground and at houses, 1 µT for the NISV's installation limit — are wide and gentle: a 1 m grid draws them within 0.03 %, at a quarter of the points of 0.5 m. Close to the wires a finer step is needed for the higher levels; set it where those matter. Quicker at the same accuracy where it matters: more cuts at 1 m instead of fewer at 0.5 m.
A volume's step. The surfaces' points off their level (nine in ten / largest), the lattice points computed of the whole, over one span ±40 m:
| Step | Points computed | 1 µT | 3 µT | 10 µT | 30 µT | Time |
|---|---|---|---|---|---|---|
| 4 m | 27.5 k of 27.5 k | 0.26 / 0.52 % | 0.59 / 1.2 % | 4.0 / 38 % | 19 / 49 % | 0.03 s |
| 2 m (default) | 160 k of 182 k | 0.08 / 0.19 % | 0.17 / 0.28 % | 1.0 / 30 % | 5.2 / 11 % | 0.15 s |
| 1 m | 804 k of 1 292 k | 0.03 / 0.04 % | 0.04 / 0.08 % | 0.22 / 10 % | 1.3 / 2.6 % | 0.73 s |
As for the cuts, the wide low levels are drawn closely at 2 m; the tubes of the high levels around each conductor want 1 m or less.
Long volumes in parts keep the memory low without changing a value: see Cuts, volumes and what they are drawn with.
Performance#
How the computation is made fast, with its measured times: Performance.
The choices and why#
| Choice | Why | Effect on the result |
|---|---|---|
| Balanced currents by default, no harmonics | the governing state the NISV guide describes (2.4.1, 8.1.4) | near the line neither in general (Assumption); NOT ON THE SAFE SIDE far from the line (no net current), said in the result — give the currents per phase to include one |
| The wires in free space (no earth currents, no steel's permeability) | both are small at the profiles' distances (estimated above) | neither in general; small |
| 3D by default | it sees the sag, line angles, the line's length, jumpers | none; 2D under the lowest point is conservative against 3D on sagging spans |
| 2D at the wires' place in the profile (not the mean height) | the field is largest where the wires hang lowest | conservative against the mean height |
| The jumpers on by default | they carry the current through the structures | off: not conservative near the structures |
| Earth wire currents off by default | they need the earthing resistances; their sign depends on the phasing | either sign: run both when it matters |
| Through the structures' earthing (when the earth wires are on) | the infinitely long earth wire overstates the currents on a short line by far | neither in general; the line's ends not conservative (no substation earthing) |
| 10 Ω when no earthing resistance is given | a common design target, said | neither |
The wires within 2 000 m modelled by default in the window (the whole line in ohl; the window's whole-line choice removed 2026-11-12) |
a long line's wires far away change the values little and cost time; the difference to the whole line is measured at each run and said | possibly not conservative by the measured difference; a longer distance takes more wires |
| Only the drawing between points interpolated | speed may only coarsen the display, never computed precision | the drawing's offset from its levels measured and said |
What is left out#
- The earth's currents (eddy currents, the return of a net current): estimated above, small.
- The steel's magnetic permeability (structures, earth wire cores): estimated above, small beyond a few metres.
- Unbalance, unless the currents are given per phase: balanced input holds no net current — not on the safe side far from the line (above), said in the result.
- Harmonics: the currents are at power frequency.
- A substation's earthing grid at the line's ends (with the earth wire network): not conservative near the ends.
- Other lines (crossings, parallel lines): not in the model yet (said) — except on an offline working set's file, where the export's lines within 500 m of the spans computed are added by size (the network's code; checks on a working set).
- DC systems: a static field (said).
- The modelled length beyond the line's ends: warned where the line is shorter than five times the limit line's reach on either side.
Validation#
benchmarks/electrical/magnetic.toml (see Textbook and published
cases):
one infinite conductor (\( \mu_0 I/(2\pi d) \) = 20 µT, 2D and as a
200 km segment), finite segments and a sagging wire beside a second phase
against Biot–Savart's law integrated numerically (reference_magnetic.py,
scipy's adaptive quadrature; the ellipse by sampling the cycle) within
\( 10^{-9} \)–\( 10^{-8} \), a balanced flat line near it, and far
away against its closed form \( \sqrt3\mu_0 I s/(2\pi d^2) \) and its
\( 1/d^2 \) decay. A net current (electrical-074, 075; by hand, each
conductor's \( \mu_0 I/(2\pi d) \) added as phasors): three in-phase
conductors, and a flat line with 5 % more current in one phase, 13.5
times the balanced line's value at 4 km. Tests in the crate: the field of a split segment, a
reversed one, the ellipse's axes, and on the synthetic double circuit the
symmetry, the load-flow directions and phase arrangement, the earth wire's
currents, 2D against 3D, the 2D line angle warning, given points.
Against hvlbuzz (hvlbuzz — HVLBuzz 2.0 by Michael Kefeder, Gerhard Bräunlich and Joel Winiger (the authors its Cargo.toml names), © FKH, Switzerland (fkh.ch); source gitlab.com/fkh-ch/emc; documentation fkh-ch.gitlab.io/emc/hvlbuzz/index.html; GNU General Public License version 3; 2026-10-29, suggested): the 2D
model on three cross-sections (a 380 kV bundled circuit, a 110 kV double
circuit with and without an earth wire), 1 m above the ground: B equal to
hvlbuzz's last digits (validation).
Not validated yet against a published profile with all its inputs (to
find: IEC 62110's examples, CIGRE technical brochures on fields of
overhead lines, papers comparing with measurements); comparisons with
other programs on real lines stay private.
Standards and sources#
- BAFU (Swiss Federal Office for the Environment), Hochspannungsleitungen. Vollzugshilfe zur NISV, draft for trial (Entwurf zur Erprobung), 2007: sections 2.4 (the governing current and load-flow directions), 8.1.4 (modelling, 3D and 2D, the modelled length, 16.7 Hz and 50 Hz).
- DIN VDE 0848-1 (2000-08), Sicherheit in elektrischen, magnetischen und elektromagnetischen Feldern — Teil 1: Definitionen, Mess- und Berechnungsverfahren, section 5.1 (the calculation the guide refers to); EN 50413, the European basic standard on measurement and calculation procedures for human exposure to electric, magnetic and electromagnetic fields (0 Hz – 300 GHz).
- IEC 62110:2009, the resultant and the maximum field.
- Biot–Savart's law; D. J. Griffiths, Introduction to Electrodynamics (the field of a straight segment).
- A. Deri, G. Tevan, A. Semlyen, A. Castanheira, "The complex ground return plane", IEEE Trans. PAS-100 (8), 1981 (the earth's image).