Return-Path: Received: from [149.220.60.34] (account widera@hzdr.de [149.220.60.34] verified) by hzdr.de (CommuniGate Pro SMTP 6.1.12) with ESMTPSA id 16150770 for picongpu-users@hzdr.de; Thu, 12 Jan 2017 11:50:47 +0100 Subject: Re: [PIConGPU-Users] [PIConGPU-Users] Relativistic momentum To: picongpu-users@hzdr.de References: From: =?UTF-8?Q?Ren=c3=a9_Widera?= Message-ID: Date: Thu, 12 Jan 2017 11:50:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Dear Danila, you are right, `BinEnergyPraticles` works with a threshold to calculate the energy with more accuracy in the case that the particle is non-relativistic. The threshold (GAMMA_THRESH) can be changed in the file `speciesConstants.param` René On 01/10/2017 04:30 PM, Khikhlukha Danila wrote: > Dear all, > > After looking into a pusher code I realized that the relativistic > correction is applied during the new momentum calculations. So my > question is irrelevant. > > Initially I got confused by the BinEnergyParticles.hpp file where there > are two branches of code for energy: relativistic and non-relativistic. > I guess the non-relativistic case represents a limit of low gamma (while > the momentum is kept to be relativistic) and introduced for the sake of > accuracy. > > > > Thanks, > > Danila. > > > > *From:* picongpu-users@hzdr.de [mailto:picongpu-users@hzdr.de] *On > Behalf Of *Khikhlukha Danila > *Sent:* Tuesday, January 10, 2017 11:38 AM > *To:* picongpu-users@hzdr.de > *Subject:* [PIConGPU-Users] Relativistic momentum > > > > Dear all, > > I have a bit naïve question regarding data in h5 files for the version > 0.2.2. Am I correct that the moment of particles saved in simulations > dumps is not relativistic corrected? > > And then if I want to calculate the kinetic energy histogram, for > instance, I need to calculate gamma manually? There is a plugin to > calculate energy histogram while simulation is running. However I wasn’t > using it, so I need to calculate it during my post-processing. > > > > Thanks, > > Danila. > -- René Widera Abteilung Laser-Teilchenbeschleunigung (FWKT) Helmholtz-Zentrum Dresden-Rossendorf Tel: +49 (0351) 260 3543 r.widera@hzdr.de http://www.hzdr.de Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey, Prof. Dr. Dr. h. c. Peter Joehnk Vereinsregister: VR 1693 beim Amtsgericht Dresden