Checks on a working set: what is pulled in#

Built 2026-11-20 (the country server's phase 10), in active development, not approved yet. Implemented in crates/ohl-scope; computed by a network's server (crates/ohl-server, network_scoped.rs) when a client asks for a check on a working set (server mode).

On a network a user works on a working set (a part of one line, Working sets). A check's result can depend on objects outside it: another line's wires crossing or running beside, this line's own wires beyond the working set, other lines' sections on a shared tower, other lines' currents near. Each check declares its reach — the distance within which other objects can change its result — and the objects within it are pulled in: read (as solving each section alone reads it, never a whole line), solved in the check's case with their own line's settings and wires, and used. Every result lists what was pulled in.

Labels as in Conventions.

The rule: never less than on the whole network#

A scoped result must be equal to the same check on the whole network (every line solved whole, every wire a target) or more conservative. Where it cannot be, the result says NOT ON THE SAFE SIDE and this page says why. A neighbour that could not be read or solved makes the check not all checked — never a pass on the assumption that nothing is there.

Timing never changes a result (2026-11-25): every section solve of a scoped check (clearances, fields, loads) has the wire solver's iteration limit (100) and no clock (ohl_scope::solve_budget). Before, it had the solver's 120 s time limit too: under heavy load (load average ~115) the network's electric field check on an offline file once gave three spans 0.74–1.45 kV/m where the same check gave 1.16–2.03 kV/m alone — a neighbour's section most likely stopped on the clock and its wires were left out (said NOT ALL CHECKED, but a lower value that depended on the machine's load). A solve that does not converge now fails the same way every time and is said NOT ALL CHECKED (tested: a neighbour line that cannot be solved is named NOT ALL CHECKED, never a quietly lower field). The small sub-models inside a section's solve (a string's or a clamp's position, of a few elements) keep the solver's own 120 s limit: one stopping fails its section, said the same way.

Proven on the synthetic country (each route a line of its own, towers shared by two routes twins, as a network holds them; crates/ohl-scope, tests.rs):

Check Scoped against the whole network
Clearances between wires (other lines, this line), two weather cases (still air, wind), three working sets of the lines with shared towers the same results to the bit: 22 239 pairs and wires, 2 499 of them below the rules' distances, 1 022 other lines' objects used
Loads on shared towers, nine towers, every load case the same loads to the bit; against the country as one project (a different model: a tower of two routes is solved there with one route's alignment), within 1.7 % of each point's load
Magnetic field, lines within 500 m what the field distance leaves out: at most 0.00019 µT where the largest field is 4.2 µT (NOT ON THE SAFE SIDE, below)
Electric field, lines within 500 m solved together (2026-11-24) every point at least this line alone; the method said (exact for one other line); the wires beyond the field distance NOT ON THE SAFE SIDE (below)

The reach of each check#

Check Reach
Clearances between wires (rules to other lines and between this line's wires; crossings among them) every wire within the largest reach of the wire rules applying to the case
Clearances to the ground and to points the working set's own wires; the ground and the points are not served by a network yet: not checked there, said
Distance between conductors (in the span, under unequal wind) what the working set holds: its sections and every section on its structures
Magnetic field every line with wires within the field distance (500 m, decided 2026-11-16; a setting of the check)
Electric field the same lines as the magnetic field; each profile's system: their wires within the field distance of its middle
Structure loads other lines' sections on the working set's structures: their twins
A plugin's check as its manifest declares ([reach], Writing plugins); none declared: the working set's whole line and every line within 2 km

Clearances between wires#

The reach. The largest plan reach of the wire rules applying to the case (Rule::reach_in_plan: the rule's largest distance and its search margin), worked out for every potential a section near the working set can have and up to the highest wire there can be.

  • Conservative: the potentials are each phase of each system of every line found near (a superset of its sections' own), and the highest wire the top of the highest structure near plus 2 m for a bundle — the reach is never smaller than the one the sections themselves would give. With the lines found in the larger area it is worked out again until it no longer grows.

The candidates. A span's wire, before it is solved, lies within a bound of its structures' chord:

\[ |P - M| \le \tfrac{\ell}{2} + \tfrac{R_A + R_B}{2} \]

for every point P of the wire in plan, M the middle of the structures' chord, ℓ the wire's length and R each structure's radius (its points and wire points from its position, plus its longest string — how far a wire point can swing). Proof: |P − E_A| + |P − E_B| ≤ ℓ along the wire between its ends E, so |P − M_E| ≤ ℓ/2 for the ends' middle, and a projection shortens every distance.

  • Conservative assumption: no wire is longer than 1.5 times the straight line between its ends (a sag of about half the span: no overhead line comes near it), ℓ ≤ 1.5 · √((d + R_A + R_B)² + (Δz + H_A + H_B)²) with d the structures' plan distance, Δz their height difference and H their heights. Every candidate solved is checked against it; a wire outside it makes the result say NOT ON THE SAFE SIDE (a wire farther away could have been left out).
  • Conservative assumption: a structure with a type, before its type is read, has its points within 50 m of its position and at most 150 m above it (larger than any overhead line structure).

A section is a candidate when one of its spans' bounds comes within the reach of a checked wire. Each candidate is solved; its wires within the reach are listed as used, the others as read.

The same results. The rules run by one function on the working set's wires, this line's others and the other lines' (ohl_scope::clearance::run_rules), the wires taken in one order (by line, section, span): a pair's distances, requirements and counts depend on its two wires only, so every pair within reach comes out as on the whole network.

  • Conservative: pairs are looked for from three points of each piece of a checked wire; the scoped run looks as far as its reach plus the longest piece, so no pair within a rule's distance is missed whatever the pieces' length (the whole network's run may look less far).

Magnetic field#

The working set's line is computed as one: its sections and this line's sections within the field distance, their currents' phases and directions together, at profiles across the working set's spans. Every other line with wires within the field distance is computed on its own (its sections there, its own settings and currents) and its field added at each point.

  • Conservative: the other lines' fields are added by size. Two lines' phase angles to each other are not known to the program, and the size of a sum of fields is at most the sum of their sizes (the rms of the vector is a norm). The exact treatment: the lines' currents with their phase angles to each other, summed as phasors.
  • Not on the safe side (said in every result): the wires farther than the field distance from the working set's wires — of this line and of others — are left out (decided 2026-11-16: "fields pulling in lines within 500 m"). Their field at the points is not in the result, so the real field can be higher (the result says so, with the distance). On the synthetic country (lines of 50 to 380 kV, 500 A in every circuit) it leaves out at most 0.00019 µT where the largest field is 4.2 µT; a line with far larger currents just beyond the distance leaves more out. The distance is a setting of the check: larger, less is left out.
  • A circuit without a current (its system gives none and the check gives none) takes 0 A, said: its field is then missing, so the real field can be higher — give the check's current or the systems' operating currents.
  • On an offline working set's file (2026-11-24): OHL-Design's Magnetic field window takes the other lines by this same selection and computes them by the same code (ohl_scope::fields::other_lines on the file, through ohl_server::offline_checks::field_neighbours), measured from the wires of the sections whose spans it computes, and adds their field by size at its own outputs — profiles, given points and cuts (the same sums as here, to the bit, tested). Its own line is the file's line as the window computes it (the working set and the read-only parts around it): more of this line than the network's sections within the field distance, never less. The volumes' surfaces stay this line's field alone (NOT ALL CHECKED, said); a given point far from the spans computed may lie nearer another line than the distance (NOT ON THE SAFE SIDE, said: that line's field is missing there, so the real field at the point can be higher; compute a span near the point too, else check the point by hand).

Electric field#

Built 2026-11-24, in active development, not approved yet (ROADMAP O17; ohl_scope::electric, the check electric of ohl network check-offline and the server's electric_field check).

The lines are taken as for the magnetic field (every section, of this line or another, whose spans can come within the field distance of the working set's wires; ohl_scope::fields::near_sections, the same selection). Unlike the magnetic field they are solved together: one system of charges over every line's wires and earth wires — a neighbour's conductors change this line's charges and its earth wires screen, so fields computed apart and added by size are not a proven bound for the electric field. The method, its derivation and its sources: Electric field › Other lines: solved together.

  • This line's own field at profiles across the working set's spans (1 m above the ground, ±50 m every 5 m by default), in its own model with the ground plane under each point; then, when another line is near, the lines together at the same points. At every point the larger of the two (conservative against either model alone).
  • The unknown phase angles between the lines: the worst over them — exact for one other line (two parts: in closed form), an upper bound for more (each pair's cross term at its largest: conservative). Every result says which (method) and what the system took in (taken_in: this line's sections, each other line's).
  • Not on the safe side (said in every result): the wires farther than the field distance from the working set's wires, and in each profile's system those farther than it from the profile's middle, are left out: their field is not in the result, so the real field can be higher; a larger field distance (a setting of the check) takes them in. The electric field of a line falls off far faster than its magnetic field (its charges and their images form dipoles with the earth).
  • Every line's phases at their systems' voltages — the highest operating voltage where the line gives one, else the nominal (NOT ON THE SAFE SIDE, said with the circuits: the field falls with the voltage; give the highest operating voltage with the system). DC poles left out (said).
  • A profile whose system cannot be solved (a wire at or below the ground in it) is this line alone there and the result not all checked.
  • Measured on the synthetic country (300 pylons, lines of 50 to 380 kV, a working set of four sections with one other line near, a heavily shared machine): 0.4–7.2 s for one to three profiles, 586–1 068 pieces per system.
  • On an offline working set's file (2026-11-24): OHL-Design's Electric field window takes the other lines by this same selection and solves them by the same code (ohl_scope::electric::joint_lines and joint_at on the file, through ohl_server::offline_checks::electric_neighbours), measured from the wires of the sections whose spans it computes, at its own profile points and given points; its own value at each point stays where it is larger. The cuts and the volumes' surfaces stay this line's field alone (NOT ALL CHECKED, said); a given point far from the spans computed may lie nearer another line than the distance (NOT ON THE SAFE SIDE, said: that line's field is missing there, so the real field at the point can be higher; compute a span near the point too, else check the point by hand).

Loads on shared towers#

A tower carrying wires of several lines is, on a network, one structure in each line's model: twins — of the same type, within 0.5 m in plan (the network's import lists them so). Each line's sections hang on its own twin's points.

  • Under each line's load cases (its own library's, else the shipped defaults) every line's sections on the tower are solved in that case, each with its own line's settings and wires, and the loads at its twin's points taken. The worst kept: per point and component the largest factored load by size, with the line and case giving it.
  • At a point holding one line's sections: that line's load there. At a point holding none: the case's line's own twin's (its strings only). The wind on the body: the case's line's, once.
  • Conservative: at a point holding several lines' sections their loads are added, each line's strings there counted again (more load, said). The exact treatment: one model of the tower holding every line's strings.
  • Conservative: the other lines' sections are solved in every case the case's line's twin takes, their own lines' structure groups set aside (the tower is the case's line's).
  • Not on the safe side (said with the tower): the loads are solved rigid (calculation level 2). A line set to level 3 or 4 takes the larger of the rigid and the flexible solve's loads in its own checks; here the flexible solve is not made.
  • On an offline working set's file (2026-11-24): OHL-Design's Structure loads window runs this same computation on the file (ohl_server::offline_checks::shared_tower_loads, the network's check without its report) for the shared towers of the working set among the structures it computes — the same loads, to the bit (tested). A shared tower outside the working set (read-only in the file) is not checked there with its other lines (NOT ALL CHECKED, said).

The usage of a shared tower on every line's loads#

Built 2026-11-25, in active development, not approved yet. Each case of a shared tower above — line ( x )'s case, every line's loads on it as added there — is made one load case of the working set's structure (ohl_scope::loads::combine): at each point the loads the tower's loads add (every line's with sections there, else line ( x )'s own), moved onto the structure (the same type: the same points), the case's factors, strength factor and weather line ( x )'s, every line's missing wires there kept (the check then incomplete, never a pass). That case is checked by the same structure check as the line's own loads (ohl_loads::capacity, ohl_scope::loads::tower_usage): allowable spans, allowable loads, the finite-element model, the pole, the type's and member sections' libraries of the working set's line, its structure groups set aside (the cases are those the loads took).

  • The result per member is the larger of the line's own loads and every line's: OHL-Design's Usage view lists the cases of every line's loads beside the line's own, and a structure's governing usage is the largest over all of them — the largest member usage of either, so per member the larger of the two (the largest of maxima is the maximum of the larger ones).
  • A broken wire in every span: each line's sections are solved with it (the case taken whole), each break its own load. The finite-element and pole checks take every combination of one break per line as a variant of its own, the worst kept (a member force ( a,T + b,L + c,V ) combines the components, so an envelope is not a bound for it). The allowable loads take the lines' envelopes added: per component ( \max_{ ext{combinations}}|\sum_m v_m| \le \sum_m \max|v_m| ) — conservative. More than 256 combinations: the first 256, NOT ALL CHECKED (said with why: a combination left out can load a member more; a type checked by allowable loads alone is checked whole).
  • Allowable spans (Method 1): computed with the working set's line's conductor positions — at a point shared with another line its vertical load is the sum over the lines there over this line's weight per metre: a larger weight span, conservative. The other lines' own positions are not in this line's spans (their wires' spans are their own lines'), checked by allowable spans in their lines.
  • NOT ALL CHECKED for twins turned more than 0.5° apart (said, with the angle): each line's loads are in its own twin's axes and at its points by label, added as if the axes were one; with the twins turned apart a label can name another place and a component another direction, so the loads (the Shared towers view's too) and their usage can be wrong either way. What makes it safe: one orientation for the tower in every line (one tower).
  • The network's server reads the working set's line's libraries of structures, poles, models, loads, bolts and sections (the shipped ones where it has none), laid out as OHL-Design keeps them, and runs no member-check plugin: a library naming one is refused there (NOT ALL CHECKED, said: its usage is checked in OHL-Design, whose window takes the plugin). The check on an offline file (check_offline, the command line) takes the file's libraries and its user's plugins.
  • NOT ON THE SAFE SIDE in the window with Use local conditions ticked (said): every line's loads are without the local conditions while the line's own take them; what makes it safe: the larger of the two usages is kept (a tower governed by its own loads), else untick it.
  • The rigid solve (above) is said NOT ON THE SAFE SIDE with the tower as before; the usage on every line's loads takes those loads.

Neighbours a user may not see#

The server computes every check with every neighbour, those its user may not see too (decided 2026-11-16), so the numbers are those of the whole network. Its report says only what the rights allow: a neighbour the user may not see is never named nor placed — "a hidden object of another line is within 3.41 m", "check result limited by an object you may not see" on the user's own span, without the point on it — and is counted in what was pulled in. Its texts naming one are replaced. A change of a neighbour makes the result stale; the notice names it only when the user may see it.

Results out of date#

Each result is watched: the working set's objects, the neighbours it read, the tiles its reach covers, the lines it read. The first change touching any of them tells its user once that the result is stale; OHL-Design marks the working set's routes out of date in its replica, as a shared tower's move marks them (Shared towers).

A check run on the replica alone#

A check run in OHL-Design on a working set's replica (without asking the network) reads what the replica holds. Where its reach needs more — the wire rules, the structure loads, a plugin's check without a reach of 0 — its result starts with NOT ALL CHECKED and says what was not pulled in.

View this page's source on GitHub