groundfield
Numerical field computation for grounding systems.
groundfield computes the electric field of grounding systems in
layered soil: electrodes of any shape, the PEN conductors, cable screens
and measurement leads that connect them (with inductive coupling and
earth return), and the resulting current and potential distribution
below 1 kHz. From a field solution it derives grounding impedances,
touch and step voltages (EN 50522) and reduced rho-f models that are
exported to the sister project
groundinsight. Together
with groundmeas (measurements) the three packages model networked
grounding systems in medium- and low-voltage distribution networks.
- Documentation: https://ce1ectric.github.io/groundfield/
- Release notes: changelog
- Source and issues: https://github.com/Ce1ectric/groundfield
Installation
pip install groundfield # Python 3.12 to 3.14
pip install "groundfield[geo,fast]" # optional: OpenStreetMap footprints, compiled kernels
pip install "groundfield[groundinsight]" # optional: live groundinsight BusType objects
For development: git clone, then poetry install (see the
installation guide).
Example
A substation ring earth and a house rod 40 m away, joined by a PEN conductor, in two-layer soil; 1 A injected at the substation:
import groundfield as gf
world = gf.create_world(soil=gf.TwoLayerSoil(rho_1=100.0, rho_2=300.0, h_1=2.0))
gf.create_electrode(world, "ring", name="substation", center=(0.0, 0.0, 0.8), radius=3.0)
gf.create_electrode(world, "rod", name="house", position=(40.0, 0.0, 0.0), length=3.0)
gf.create_conductor(world, name="pen", start="substation", end="house", cross_section=95e-6)
gf.create_source(world, attached_to="substation", magnitude=1.0)
result = world.solve(gf.create_engine(frequencies=[50.0]))
print(result.input_impedance()[0]) # 11.27 Ω, seen at the feeding point
print(result.cluster_impedance("substation")[0]) # 14.10 Ω, the substation earth alone
Coordinates are in metres, with the depth z positive downwards. The
quickstart
explains the example and the tutorials
continue from there.
Development
poetry install --with docs
poetry run pytest -n auto # tests
poetry run ruff format . && poetry run ruff check --select F,E9,B,W605 .
poetry run mkdocs serve # documentation preview
python scripts/release.py calver --dry-run # maintainers: release checks
Versions follow calendar versioning YYYY.M.MICRO (from 2026.11.0;
up to 0.15.0 semantic versioning); deprecated names keep working for
at least two releases and six months.
Citing
If you use groundfield in academic work, please cite it with the
metadata in CITATION.cff.
License
groundfield is released under the MIT license.
Metadata
Release files for groundfield 2026.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| groundfield-2026.11.0.tar.gz | 883.9 kB | With provenance | Details for groundfield-2026.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| groundfield-2026.11.0-py3-none-any.whl | Python 3 | none | any | Details for groundfield-2026.11.0-py3-none-any.whl |
Total release size: 1.9 MB
Release files / groundfield-2026.11.0.tar.gz
| Download URL | groundfield-2026.11.0.tar.gz |
|---|---|
| Size | 883.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
503c78517d078a47b52e48cbb98d74422301888ff37dc790f089b85ce05290bf
|
|
BLAKE2b-256 checksum How to use checksums |
68dde0fb59faaebf6f3d65860170a80789812ee5fbd74758be35f5ee7bcc0b18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / groundfield-2026.11.0-py3-none-any.whl
| Download URL | groundfield-2026.11.0-py3-none-any.whl |
|---|---|
| Size | 973.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd35a78d55833d8fb5e47452a12fbddbcb5b0ac699ed456bd1374fb424073faf
|
|
BLAKE2b-256 checksum How to use checksums |
90034d22e61e2ea4c974dddb91e425e9667517d30b75c9e2228a8489085f5253
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for groundfield 2026.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for groundfield-2026.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.