Warwick-Plasma / epoch

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

How to read given particle pos and p from existed files #552

Closed smallrainbow closed 1 year ago

smallrainbow commented 1 year ago

Dear developers,

How to read given particle pos and p from existed files? Thank you.

Best regards, Zhongwei

smallrainbow commented 1 year ago

@Status-Mirror Dear Status-Mirror , Could you provide an example of particle_from_file block example? The species name could be the same as what defined in species block? How to define the mass and charge? Thank you very much!

smallrainbow commented 1 year ago

input.zip @Status-Mirror Please find the attached input deck for species "E1" and corresponding f90 file for generating the input particle x,y,px,py,pz dat files. it report as follows:

image

Could you help check which part is incorrect, thank you!

smallrainbow commented 1 year ago

Fixed. In the input.deck, I have to use species name E1 as defined before instead of "E1" or 'E1'. Cheers.