Strange ion trajectory

Hello,I generated some ions inside the detector, but there were some ions with strange trajectories. According to the direction of the electric field, the ions should move from the bottom of the detector to the top. But there are some ions whose trajectories are deflected and at a large angle. I’m not sure why this is, but it didn’t appear in the previous simulation results.
The first picture shows the voltage distribution.

can you provide a minimal working example that reproduces this issue?
Many thanks

ok,I uploaded my own program, thanks! (7.7 KB)

Thanks, I’ll take a look.

But just for the record: what you sent is not a minimal working example. A large fraction of the lines of code in your program are commented out or not relevant for the issue you want to illustrate.

Sorry for the very long delay in getting back to you.

In order to fix this issue you can impose a maximum allowable step size by adding a line like this:

1 Like

Thank you very much for the suggestion, I will try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.