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

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.5.1
File Size Uploaded Provenance Actions
custemx-0.9.5.1.tar.gz 538.1 kB Without provenance Details for custemx-0.9.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / custemx-0.9.5.1.tar.gz

Download URL custemx-0.9.5.1.tar.gz
Size 538.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8896c6076e1f77600b598a4a45c9cb8aa5c61c8f01543b0d34df3cc5d0c2df1f
BLAKE2b-256 checksum
How to use checksums
86f926672397dbd1fa2884c98cc4b4776e3aa0961ee7e24a2b660553967cb09f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

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

Download URL custemx-0.9.5.1-py3-none-any.whl
Size 472.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8478f221d94fc8af76125fd288ed5d2d490de4877548372c22be5a2ba33e41d
BLAKE2b-256 checksum
How to use checksums
df553f7141f32fe7b9f08a51d0ddcb0553d71c1f02af368143aa0f150a8074d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for custemx 0.9.5.1

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