Open n01r opened 6 years ago
Can you please copy the photon
definition in you speciesDefinition.param
here?
/*--------------------------- photons ----------------------------------------*/
value_identifier( float_X, MassRatioPhotons, 0.0 );
value_identifier( float_X, ChargeRatioPhotons, 0.0 );
using ParticleFlagsPhotons = bmpl::vector<
particlePusher< particles::pusher::Photon >,
shape< UsedParticleShape >,
interpolation< UsedField2Particle >,
massRatio< MassRatioPhotons >,
chargeRatio< ChargeRatioPhotons >,
exchangeMemCfg< PhotonExchangeMemCfg >
>;
/* define species photons */
using Photons = Particles<
PMACC_CSTRING( "ph" ),
ParticleFlagsPhotons,
DefaultParticleAttributes
>;
The massRatio
is given because I remember we once had an offline discussion about that we do not want to assume zero mass when it's not given but we want to explicitly treat zero-mass particles separately.
How are the photons created? Bremsstrahlung or Synchrotronstrahlung?
Looks to me like the Energy Particles
is already calculating them correctly but something weird happens to them, e.g. some have no momentum or so... One should dump all photons and verify if some of them have weird looking attribute values (momentum, specifically).
They're created from Bremsstrahlung.
I have photon dumps in my particle dumps as well, so I can have a look at their attributes.
If the Energy Particles plugin is activated for photons, one gets
nan
values after some point.I have just noticed this but haven't figured out exactly why, yet.
Here some example output of
<sim>/simOutput/ph_energy_all.dat
. From a 3D sim:From a 2D sim:
My production branch is based on
commit 2b7bd80eee09d7f6d352d562e1626571879abe71
.