Skip to content

Python tools for constructing meshes and geometry matrices used in tomography problems

License

Notifications You must be signed in to change notification settings

C-bowman/tokamesh

Repository files navigation

Tokamesh

Documentation Status

Tokamesh is a Python package which provides tools for constructing meshes and geometry matrices used in tomographic inversion problems in toroidal fusion-energy devices such as MAST-U.

Features

  • Advanced geometry matrix calculation
    • Tokamesh constructs geometry matrices using barycentric linear-interpolation rather than the typical zeroth-order interpolation. This allows for accurate tomographic inversions with a significantly lower number of basis functions. geo matrix example

  • Tomography-optimised mesh construction
    • Tokamesh provides tools to create meshes that are optimised for tomography problems, e.g. local-refinement of triangles to increase mesh density in areas where it is needed without greatly increasing the size of the mesh. Example mesh

Jupyter notebook demos

Jupyter notebooks are available which demonstrate mesh construction and geometry matrix calculation.

Installation

Tokamesh is available from PyPI, so can be easily installed using pip as follows:

pip install tokamesh

Documentation

The package documentation is available at tokamesh.readthedocs.io.

About

Python tools for constructing meshes and geometry matrices used in tomography problems

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages