Traceon is a Python library designed for the modeling of electron microscopes.
Traceon features a Boundary Element Method (BEM) solver that computes electrostatic and magnetostatic fields for accurate particle tracing. By relying on the BEM rather than FEM, Traceon offers notable improvements in speed and accuracy compared to most commercial alternatives. It supports both radially symmetric and fully 3D geometries, while leveraging advanced axial field interpolations to greatly speed up the particle tracing.
The core of Traceon is completely free to use and open source, and distributed under the MPL 2.0
license. The software downloaded when using pip install traceon
does not include any closed source software. There is a commercial package called traceon_pro
which builds on the traceon
package to provide a more capable library.
Feature | Traceon | Traceon Pro |
---|---|---|
Parametric mesher | ✅ | ✅ |
Plot module | ✅ | ✅ |
Radial symmetric solver (electrostatic, magnetostatic) | ✅ | ✅ |
Radial symmetric particle tracer | ✅ | ✅ |
Radial symmetric axial interpolation (fast tracing) | ✅ | ✅ |
3D direct solver (electrostatic, magnetostatic) | ✅ | |
3D solver using fast multipole method | ✅ | |
3D particle tracing | ✅ | |
3D axial interpolation (fast tracing) | ✅ |
Please cite the software as follows:
L.B. van Velzen. Traceon software (version 0.9.0). 2024. https://doi.org/10.5281/zenodo.14606886
Install using the Python package manager:
pip install traceon
The installation is known to work on Linux, Windows and Mac OS. Please reach out to me if you have any installation problems.
To ensure the accuracy of the package, different problems from the literature have been analyzed using this software. See /validation directory for more information. The validations can easily be executed from the command line, for example:
python3 ./validation/edwards2007.py --help
python3 ./validation/capacitance-sphere.py --help
etc...
Don't worry. You can reach me.
- Add permanent magnets
- Small improvements to geometry module (add annulus methods)
- More general rotations for GeometricObject
- Various bug fixes and improvements
Breaking changes
FieldRadialAxial
was moved fromsolver.py
tofield.py
- New plotting module (charge density, equipotential lines)
- Automatic orientation of normal vectors
- Geometry functions for extruding/revolving edges of surfaces
- Tracing of particles other than electrons (charge, mass as input)
- Various bug fixes and improvements
Breaking changes:
- Call
P.show()
afterP.plot_mesh()
to show figures - Normal vectors should be oriented automatically (please check if this works correctly for your geometry)
- Generate structured, high quality meshes using the new parametric mesher (drop GMSH)
- Consistenly use 3D points and geometries throughout codebase
- Add support for Fast Multipole Method (Traceon Pro)
- Add support for Mac OS on x64
- Big improvements to code quality, testing, infrastructure
- Drop dependency on GSL
- New methods to integrate triangle potential and field contribution over a triangle
- Fix 3D convergence issues by more accurately calculating neighbouring triangle interactions
- Fix error calculation in particle tracing
- Introduce logging module to control verbosity of printing
- Clean up unit tests
- Remove higher order (curved) triangle support, in preparation of parametric meshers and improved FFM implementation
- Add preliminary support for magnetostatics
- Improve and generalize mesh class (allow import/export)
- Make consistent use of SI units
- Introduce Fast Multipole Method (FMM) for large 3D problems
- Compute 3D radial expansion coefficients using analytical formulas
- Further speed up computation of 3D radial expansion coefficients
- Big code quality improvement of validation/ files
- Use adaptive integration using GNU Scientific Library (GSL)
- Add support for boundary constraint
- Use Vedo for better plotting capabilities
- Use higher order triangle elements for 3D (curved triangles)
- Precompute jacobians/positions for better performance
- First implementation of element splitting based on charges (work in progress)
- Use higher order charge distribution on line elements in radial symmetry
- Use higher order line elements (polynomials) in radial symmetry
- Better integration techniques, especially with regards to the logarithmic singularities
- Uses the powerful GMSH library for meshing
- Solve for surface charge distribution using BEM
- General 3D geometries and radially symmetric geometries
- Dielectrics
- Floating conductors
- Accurate electron tracing using adaptive time steps
- Field/potential calculation by integration over surface charges
- Fast field/potential calculation by radial series expansion
- Superposition of electrostatic fields