ModularEIT.jl
Modular building blocks for Electrical Impedance Tomography in Julia.
ModularEIT — Module
ModularEITModular 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).
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
| Component | Types / functions |
|---|---|
| Discretization | FerriteDiscretization, FEMatrices, ConductivityTensor |
| Electrode models | ContinuumModel, PointElectrodeModel, GapModel, CompleteElectrodeModel |
| Forward problem | ForwardModel, forward_neumann, forward_dirichlet |
| Objectives | AdjointStateObjective, KohnVogeliusObjective |
| Linear solvers | DirectSolver, 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.