• Simulation

    Quasi Scientist • a day ago • 0 comments

    I like the project of 3D printed SEM. One of the great ideas there is it nice simulation of particle moving in electric and magnet force. 

    Unfortunately, it was written in LUA language which I am not familiar with. 

    So I thought it would be a good idea to rewrite it in Python, which much common language. 

    You can find the code here

    Basically, you have a simulation of electric fields (in my case its simple plates with 2000v potential)

    Magnetic coil 

    Now, here I had found that original code has same issues.  No matter what I did could not make electron focus in some place. From theory for electron movement it should make helix movement with predefined radius. 

    The problem (IMHO) is that FEMM simulator is only XY, no Z plane. The magnetic filed force electron to move to Z plane. Although the author deal with it, movement should be updated in around the axis manner. 

    Luckily, in Python there is a library (BorisIntegrator from plasmapy.simulation.particle_integrators) for movement of electron in magnet + electric field.

    This is how I got this image:

    Now I know simulation is working.