Skip to main content

custemx

custemx is an open-source Python toolkit for 3D electromagnetic forward modeling and inversion in geophysics. Built on FEniCSx, it brings together finite-element formulations, mesh and model setup, field calculation, and post-processing for controlled-source EM (CSEM) and magnetotellurics (MT).

Documentation · Examples · Source code

Capabilities

  • Model 3D CSEM and MT problems on unstructured tetrahedral meshes, with utilities for mesh generation, import, and export.
  • Use Nedelec finite elements to calculate complex electric fields and derive magnetic fields and MT responses.
  • Represent isotropic or anisotropic electrical and electromagnetic properties, including VTI and full anisotropy for conductivity, permeability, and permittivity.
  • Include frequency-dependent induced polarization using Cole-Cole parameters.
  • Choose direct PETSc/MUMPS or iterative PETSc solver workflows, and run distributed simulations with MPI.
  • Adapt the Python workflow through configurable model parameters, sources, receivers, formulations, and post-processing components.

Start with an example

The examples repository is the recommended place to start: each case includes working model setup and run scripts, rather than a disconnected API snippet.

See the examples README for repository layout and run instructions.

Installation

custemx requires Python 3.10 or later and a working FEniCSx, PETSc, and MPI environment. Create the recommended environment with conda, then install the published Python package with pip:

conda create -n custemx -c conda-forge fenics-dolfinx tetgen mpich
conda activate custemx
python -m pip install custemx

The conda environment provides the FEniCSx runtime; pip installs custemx and its declared Python dependencies.

Project information

See the full documentation for more information.

Metadata

Release files for custemx 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for custemx 0.9.6
File Size Uploaded Provenance Actions
custemx-0.9.6.tar.gz 4.6 MB Without provenance Details for custemx-0.9.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for custemx 0.9.6
File Interpreter ABI Platform Actions
custemx-0.9.6-py3-none-any.whl Python 3 none any Details for custemx-0.9.6-py3-none-any.whl

Total release size: 9.2 MB

Release files / custemx-0.9.6.tar.gz

Download URL custemx-0.9.6.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a3a507efae37e287f8d4d6be6d9748921380021a4aa23cb45d3a00537857af8a
BLAKE2b-256 checksum
How to use checksums
e31ca38cc90d16bb017cbc53adea634d0368e4504371b9988f5f532b559c558f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / custemx-0.9.6-py3-none-any.whl

Download URL custemx-0.9.6-py3-none-any.whl
Size 4.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8ec61e0e437da17b9f4fadc6a5682efb01c5cbf2f8686252c1a2157ea185a568
BLAKE2b-256 checksum
How to use checksums
007bc60eccfc3a4ae1e393ed41879e93ad78f77544cc6083552cea78625774cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for custemx 0.9.6

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.9.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page