Skip to content

Tutorials

Ten tutorials take you from a single earth rod to reproducible studies of whole low-voltage networks. They are for readers who want to learn the package step by step; if you only need a recipe for one task, the how-to guides are shorter. Each tutorial is a Jupyter notebook: the page shows the stored outputs of a complete run, and you can download the notebook and run it yourself. Every tutorial explains what is computed and why, gives the physics in a few sentences, and checks its key numbers against a second method — a closed-form formula, a limit, another engine or a convergence study — in assert cells.

Tutorial You learn
T01 Your first grounding impedance soil, world, electrode, source, engine; reading a result; checks against Dwight (1936) and the analytic surface potential
T02 Layered soil two- and three-layer soil, the homogeneous limits, the layered Green's function as series and as Sommerfeld integral, rods through the interface
T03 Interconnected systems and the three impedances ideal bonds and PEN branches; input, cluster and electrode impedance; split factor; the mutual impedance matrix \(Z_G\)
T04 Frequency response and the rho-f model inductive conductors and earth-return models; the standard rho-f form and vector fitting, validated on unseen data
T05 Export to groundinsight BusType documents, round-trip accuracy, rho_at_fit, passivity, evaluation inside groundinsight
T06 TN networks, synthetic and from OpenStreetMap TnNetworkGenerator, LvNetworkLayout from cached Overpass data, penetration of foundation earth electrodes
T07 The fall-of-potential measurement two-terminal sources, the 61.8 % rule, measurement leads on junction nodes, lead coupling
T08 Touch and step voltages touch-voltage envelope, image vs mom near grids, EN 50522 limits, harmonic fault currents
T09 Choosing an engine and checking convergence the backend family, compare_engines, line vs point kernel, convergence against an exact reference
T10 Reproducible studies seeds, network plans, provenance, result files, re-runs and reference checks

Where to start

  • New to groundfield: the quickstart, then T01 → T02 → T03. They cover the workflow, the soil models and the impedances of connected systems.
  • Reduced models for network studies: T03 → T04 → T05.
  • Studies on real LV networks: T03 → T06 → T07, then T10 before a large parameter study.
  • Safety assessment: T01 → T03 → T08.
  • Validation and method questions: T02 and T09, and choosing an engine.

After the tutorials, the examples apply the same tools to complete engineering studies: a secondary substation with its low-voltage network, a single-family house, and the mesh grid of a high-voltage substation in two-layer soil.

Running the notebooks yourself

Install groundfield with the extras the tutorials use and Jupyter:

pip install "groundfield[geo,groundinsight]" jupyterlab

Download a notebook from its page (or take it from docs/tutorials/ in a checkout) and open it from its own directory: T06 reads its OpenStreetMap data from data/osm/ next to the notebooks. No tutorial needs network access; each runs in well under two minutes on a laptop. The numbers in your run may differ from the stored ones in the last digits on another platform; the assert cells use tolerances that allow for that.

The test suite executes every tutorial (tests/test_tutorials.py, marker slow), so the stored notebooks run with the version of groundfield they are published with.

The terms used (Ortsnetz, PEN, foundation earth electrode, EPR, …) are explained in the glossary, units and sign conventions in units and conventions.