What is the recommended way to save particle temperatures? #4296
Replies: 1 comment
-
Thanks for the great question @Nsh002! A few details before we start: WarpX is a kinetic modeling code and as such, our particles are most of the time non-Maxwellian. Thus, for a general simulation, we can guide you how to calculate moments or distributions of your particles in a simulation - but you need to check they are actually resembling a "temperature" for your scenario of interest. In output, we can output particles and fields. If you output particles, then you can calculate distributions and moments in post-processing from the individual macro-particles. Alternatively, you can also in situ derive field values from the particles per grid cell. The WarpX full diagnostics have these options:
That you can use to calculate an average momentum (or average kinetic energy) from the
|
Beta Was this translation helpful? Give feedback.
-
Is there an easy way to save particle temperatures? I'm having trouble trying to put temperature into the reduced diags. Is it not as straightforward as it is with ParticleNumber, ParticleEnergy, and ParticleMomentum? Or do I need to calculate the value?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions