murillo-group / sarkas

Sarkas Python MD suite for Dense Plasmas Physics
https://murillo-group.github.io/sarkas/
MIT License
14 stars 12 forks source link

Electric Fields #35

Open mmmikemon opened 3 years ago

mmmikemon commented 3 years ago

Thank you for producing this excellent software! I have read most of the documentation and run about half of the example cases. A calculation I would like to do is to generate a histogram of a time sequence of electric field values at a fixed point in space of a proton/electron plasma. I have looked, and I don't think the electric field (or the force) is one of the "observable" quantities. Can you recommend the best way to go to pull this information out the code/simulations? I'm guessing I could postprocess the checkpoint dumps if they contain the particle positions, but I imagine that this might not be very fast. Thanks!

lucianogsilvestri commented 3 years ago

@mmmikemon Thank you for using Sarkas. At the moment Sarkas is not able to calculate Electric Fields at a specific point in space. However, I think it can be extracted from the saved data in the .npz files where we store the acceleration (force/mass) of each particle at each time step.

Does this help?