Getting started#
OpenOHL is pre-alpha: the engines and both applications are in active development, nothing is approved yet, and every result must be checked by a qualified engineer. Build it with a Rust toolchain (cargo); the examples below run from the top of the source tree.
OHL-Design, the line application#
cargo run --release -p ohl-app -- examples/synthetic-line/synthetic-line.ohl.json \
--terrain examples/synthetic-line/synthetic-survey.csv \
--weather examples/synthetic-line/weather-cases.ohlwc
See OHL-Design. On macOS, double-click Start OHL-Design.command at the top of the source tree: it builds both applications and starts the line application on its start page.
The structure application#
OHL-Structure (ohl-structure) edits one structure file on its own —
its points and strings, body, design, loads and finite-element results,
its libraries and plugins. Without a file it opens on a start page (Open a
structure…, the recent files, New structure…).
cargo run --release -p ohl-structure-app --bin ohl-structure
cargo run --release -p ohl-structure-app --bin ohl-structure -- examples/synthetic-line/Structures/type-02.ohls
On macOS, double-click Start OHL-Structure.command. See OHL-Structure.
| Program | What it does | See |
|---|---|---|
ohl-design (Start OHL-Design.command) |
OHL-Design, the line application: projects, lines, terrain, checks | OHL-Design |
ohl-structure (Start OHL-Structure.command) |
OHL-Structure, the structure application: one structure file, detail levels 1 to 4, its libraries and plugins | OHL-Structure |
ohl-structure-export |
a level 3 structure as IFC, SAF or CSV, without a window | OHL-Structure |
ohl-structure-layout |
the joint layout of a structure file without a window (run), and the joints it leaves for a person to check, by reason (left) |
Lay out joints |
A new line, step by step#
The tutorial Start from scratch — your first line goes through these steps one by one, with the starter template; here they are in a few lines.
A line is made in the steps below, most needing the one before. Its layout is three kinds of record: a route, its alignments (each on one route), and the alignment points of each alignment, in order.
- The route — File › New project (it starts with OpenOHL's default weather and load cases — arbitrary values for checking, not from a design code — unless you untick them), then name its route (the first window of a new project asks for it; Line › Terrain › Routes later). A route is the path of the line; everything else is put on it.
- Its alignment and its points — the New alignment tool is held: click its points in order (an existing alignment point is used as it is — shared, a junction; a survey or LiDAR point or a structure snaps; elsewhere you type E, N and height), Enter, choose its route (with no route yet, it offers to create one). Or place the points first with the Add alignment point tool (not connected), then pick them one after another with New alignment; Edit alignment later reroutes a stretch, extends an end, or branches off; or type them in Line › Terrain › Alignments and Line › Terrain › Alignment points.
- The ground and survey — Line › Terrain › Terrain surfaces (TIN)…, LiDAR point clouds, then View › Fit views (the 3D view does not turn to new ground by itself). They can come before step 2 — the tutorial does so — to snap the points to them and give them the ground's heights.
- The structures — Edit › Tools › New structure from a template… (the face of the structure: its crossarm levels and lengths; build the suspension type, switch to Strain, build the strain type), then the Add structure tool (Edit › Tools › Structures) and a click on the alignment's first point: in the structure window choose its type (the type button opens the structure picker), open Also on other points of this alignment, tick All and give the other points their types in the Type column ((the type above) takes the first point's) — one command; each turned along the line, then it stays as placed (Properties › Placement… › Put it on the line again). One at a time: the same tool, with nothing ticked there. They go on the route of the alignment they stand on.
- Their strings — the Add string tool, or the structure's type.
- The wires — the String wire tool: click the strings of a section in line order (each string's wire point has a set number: the tutorial's drawing), Enter, the section's window; section by section, then the jumpers (the Add jumper tool, a click on the structure).
- The electrical systems, then the checks (clearances, loads, …).
Command-line tool#
ohl runs every calculation without a window. ohl --help lists the commands, ohl <command> --help their options.
cargo run -p ohl-cli -- info # version information
cargo run -p ohl-cli -- validate # run all validation cases in benchmarks/
cargo run -p ohl-cli -- validate --list # calculations available to cases
(cd plugins/examples/hello-wasm && cargo build --release --target wasm32-wasip2)
cargo run -p ohl-cli -- plugin info plugins/examples/hello-wasm # the example plugin, built first
ohl validate exits with a non-zero code if any case fails or exceeds its time limit, and --report report.md writes a Markdown report.
| Command | What it does | See |
|---|---|---|
ohl info |
the program's version and build | — |
ohl validate |
runs the validation cases (benchmarks/) against their reference results; --report FILE writes the report |
Validation |
ohl sagtension |
sag-tension of one tension section from a job file | below |
ohl line |
solves a line file in 3D: clearances, structure loads, usage, exports; given a project, with the libraries it keeps | Line files, Terrain and ground clearance, Load cases, Project files |
ohl zones |
vertical and radial clearances to the ground and LiDAR classes in the wind, by a rule file (the desktop clearance windows' check); given a project, with the libraries it keeps | Terrain and ground clearance |
ohl tensions |
the wire tension check: every span's tension against a factor of the wire's strength, by the [[tension_rule]] tables of a rule file; --sag-to-limits: the largest stringing tension of each section that keeps them |
Wire tension rules, Wire tensions |
ohl strings |
the string check: each string's load, swing and uplift, and the post insulators' ratings, by the [[string_rule]] tables |
String rules |
ohl internal |
internal clearances: the conductors, jumpers and strings against the members of each structure's body, by the [[internal_rule]] tables |
Internal clearance rules, Internal clearances |
ohl lightning |
lightning shielding: shielding angle or rolling sphere, per phase and span, by the [[lightning_rule]] tables |
Lightning shielding rules, Lightning shielding |
ohl ice-shedding |
the conductor jump when the ice drops, against the other wires of the span, by the [[ice_shedding_rule]] tables |
Ice shedding, Ice shedding |
ohl safety-volume |
safety volumes for work near the line, written as DXF, IFC4 and KML/KMZ | Safety volumes, Safety volumes |
ohl electrical |
parameters (series impedance with earth return, capacitance, sequence values), magnetic, electric and fields (the fields of the line's currents and voltages) |
Line parameters, Magnetic field, Electric field |
ohl sheet-templates |
the sheet templates the drawings may use; with --out, written as .ohlsheet files |
Sheet templates |
ohl plugin |
info: loads a plugin of any kind and prints what it describes; check: checks a plugin folder as the applications will use it; new: a new plugin from a template; wit: the plugin interface's files; points: the extension points |
Plugins |
ohl drawing |
plan and profile sheets and profile exports | Drawings |
ohl structures (or ohl structure) |
derive structure types; fe frame/truss and pole analysis; points and link: a structure's attachment points and their joints; analyse / report: a structure's results and report from OHL-Structure's headless tool ohl-structure-report (asked in JSON, found next to ohl, on the PATH or through OHL_STRUCTURE_REPORT) |
Structure libraries, Structure analysis, OHL-Structure |
ohl code |
weather and load cases from a design-code plugin | Design codes |
ohl thermal |
ampacity and clearance-limited temperature | Thermal rating |
ohl bom |
bill of materials and cost estimate | Bill of materials |
ohl spot |
optimum structure spotting along a route | Spotting |
ohl staking |
the staking table: each structure's station, offset, line angle, spans, coordinates, ground and bearing, and the feet of the typed structures | Staking table |
ohl clearance |
galloping ellipses, blowout against the right of way | Analyses |
ohl lidar |
LAS/LAZ information, classification, vegetation, as-built wires | Analyses, Terrain |
ohl project, ohl pointcloud, ohl surface |
the project file: commands, undo, versions, point clouds, terrain surfaces | Project files, Versions |
ohl formats, ohl import |
file formats for import and export | Import and export |
ohl crs |
coordinate systems | Coordinate systems |
ohl serve |
hosts a project for several users | Server mode |
Sag-tension of a tension section#
cargo run -p ohl-cli -- sagtension examples/sagtension/drake-section.toml
cargo run -p ohl-cli -- sagtension examples/sagtension/drake-section.toml --units us --csv chart.csv
The job file names the wire type (from the .ohlw wire libraries in libraries/cables/ — see Wire library files), the spans (horizontal length and rise), the weather cases (temperature, radial ice, wind pressure), and either a fixed stringing tension or tension criteria. The report gives the ruling span, the governing stringing tension with the utilisation of every criterion, the tension and sag in each weather case, and a stringing chart; --csv exports the chart in SI units. A wire type with stress-strain curves adds, per weather case, the tension initially, after creep and after load with the governing final state, and takes the criteria on its curves, each with a condition (initial, creep or load); a [sagging] table adds the crew's sagging outputs.
Python#
pip install ./crates/ohl-py
python -c "import ohl; print(ohl.convert('length', '1000 ft', 'm'))" # 304.8
Quantities given as text must always carry a unit ("1000 ft", "16 N/m", "-20 °C"); a bare number is rejected rather than guessed.