Skip to content
Discussion options

You must be logged in to vote

In the namelist, the filter = my_filter parameter carries out this filter every time particles are written to the disk. They may not be the same particles every time.

If you want to track particles that have initially some condition you must recall something from the documentation (https://smileipic.github.io/Smilei/Use/namelist.html#filter):

The id attribute contains the particles identification number. This number is set to 0 at the beginning of the simulation. Only after particles have passed the filter, they acquire a positive id.

This means that you can make a different filter initially, and use the fact that id > 0 only for those which have passed the filter at t=0/

def my_filter(…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Changxiang-Mao
Comment options

Answer selected by Z10Frank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #858 on January 27, 2026 20:59.