ModularEIT.jl

Modular building blocks for Electrical Impedance Tomography in Julia.

Work in progress

The package is being rebuilt; interfaces may still change.

ModularEIT — Module
ModularEIT

Modular building blocks for Electrical Impedance Tomography (EIT): electrode models, forward solvers, adjoint-state and Kohn–Vogelius objectives, regularizers, optimizers and projected linear solvers that can be combined freely. The finite element discretization comes from a back end package: ModularEITFerrite (Ferrite.jl) or ModularEITGridap (Gridap.jl).

source

Installation

using Pkg
Pkg.Registry.add(RegistrySpec(url = "https://github.com/MathStruct/Registry.git"))
Pkg.add(["ModularEIT", "ModularEITFerrite"])
# or, for the Gridap back end:
Pkg.add(["ModularEIT", "ModularEITGridap"])

ModularEIT has no finite element code of its own; the discretization comes from a back end package in lib/ of this repository: ModularEITFerrite (Ferrite.jl) or ModularEITGridap (Gridap.jl). Load ModularEIT with one of them, e.g. using ModularEIT, ModularEITFerrite.

ModularEIT depends on KrylovBlockCG.jl (block conjugate gradients with null-space projection, for Krylov.jl), and the Ferrite back end on FerriteAdaptiveTriangular.jl (newest vertex bisection with coarsening for triangle meshes, for Ferrite.jl). Both work with the released Krylov.jl and Ferrite.jl. All of them are in the MathStruct registry, which the first line adds.

Package overview

ComponentTypes / functions
DiscretizationFerriteDiscretization, FEMatrices, ConductivityTensor
Electrode modelsContinuumModel, PointElectrodeModel, GapModel, CompleteElectrodeModel
Forward problemForwardModel, forward_neumann, forward_dirichlet
ObjectivesAdjointStateObjective, KohnVogeliusObjective
Linear solversDirectSolver, BlockCGSolver, pbcg, projected_cholesky

Theory wiki

The mathematical background (the Complete Electrode Model, regularization theory, …) lives in an Obsidian vault that is published alongside this documentation.

Open the ModularEIT theory wiki →