Warwick-Plasma / epoch

Particle-in-cell code for plasma physics simulations
https://epochpic.github.io
GNU General Public License v3.0
174 stars 54 forks source link

particle track issues #49

Open keithbennett opened 3 years ago

keithbennett commented 3 years ago

In GitLab by Weijun Zhou on 06 Nov 2018, 03:15 UTC (GitLab issue GL#1852)

Dear all,

I'm working on the synchrotron radiation generation by the electrons in the WFLA. Therefore, the trajectory of the electrons through the simulation is very important. I hope to generate the history trajectory that include the positions and momentum of the electrons with specified ids. I wonder whether the EPOCH codes can dump the history trajectory of these electrons at the end of the simulations, rather than the snapshots at each dump steps. And how can I realize it if it is feasible.

Looking for your help

Weijun Zhou

keithbennett commented 3 years ago

In GitLab by Christopher Brady (@csbrady-warwick) on 06 Nov 2018, 08:19 UTC

Hi,

we're actually working on improving EPOCH's ability to do that right now and we hope to have a full featured package available for the next release. At the moment you don't have as much control as you might like. You can turn on EPOCH's particle ID labelling by compiling the code with "-DPARTICLE_ID" in the Makefile and then use a subset (https://cfsa-pmw.warwick.ac.uk/mediawiki/index.php/EPOCH:Input_deck_subset) to track a subset of particle IDs. Unfortunately you still have to output that subset as a separate SDF file for each timestep that you want information about.

We hope to have a new release fairly soon in 2019 which will give you much more control of selecting particle subsets, including allowing you to manually specify particle ID (or have particles tracked based on a specific selection criterion, so you could select all particles in a region of space at a specific time) and more efficient time history files.

keithbennett commented 3 years ago

In GitLab by Weijun Zhou on 06 Nov 2018, 10:35 UTC

@chris Thank you so much for your relpy. I'm really looking forward such new version in the near future!

keithbennett commented 3 years ago

In GitLab by Keith Bennett (@keithbennett) on 16 Nov 2018, 09:06 UTC

added ~1154 ~1149 labels