Skip to content

Commit

Permalink
Merge pull request #3105 from PrometheusPi/fix_gammaFIlter_CTRplugin
Browse files Browse the repository at this point in the history
fix gamma filter transition radiation
  • Loading branch information
psychocoderHPC authored Nov 22, 2019
2 parents 4a01469 + c499c0c commit 431ae94
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/usage/plugins/transitionRadiation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ There are no external dependencies.
.param files
^^^^^^^^^^^^

In order to setup the transition radiation plugin, the :ref:`transitionRadiation.param <usage-params-plugins>` has to be configured **and** the radiating particles need to have the attributes ``weighting``, ``momentum``, and ``location``, as well as the flags ``massRatio``, ``chargeRatio``, and ``transitionRadiationMask`` which can be added in :ref:`speciesDefinition.param <usage-params-core>`.
In order to setup the transition radiation plugin, the :ref:`transitionRadiation.param <usage-params-plugins>` has to be configured **and** the radiating particles need to have the attributes ``weighting``, ``momentum``, ``location``, and ``transitionRadiationMask`` (which can be added in :ref:`speciesDefinition.param <usage-params-core>`) as well as the flags ``massRatio`` and ``chargeRatio``.

In *transitionRadiation.param*, the number of frequencies ``N_omega`` and observation directions ``N_theta`` and ``N_phi`` are defined.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ namespace traits
>::type;

// this plugin needs the transitionRadiationMask flag
using SpeciesHasMask = typename pmacc::traits::HasFlag<
using SpeciesHasMask = typename pmacc::traits::HasIdentifier<
FrameType,
transitionRadiationMask
>::type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright 2013-2019 Rene Widera, Benjamin Worpitz, Heiko Burau
/* Copyright 2013-2019 Rene Widera, Benjamin Worpitz, Heiko Burau,
* Richard Pausch
*
* This file is part of PIConGPU.
*
Expand Down Expand Up @@ -38,7 +39,8 @@ namespace picongpu
using DefaultParticleAttributes = MakeSeq_t<
position< position_pic >,
momentum,
weighting
weighting,
transitionRadiationMask
>;

/*########################### end particle attributes ########################*/
Expand All @@ -56,8 +58,7 @@ namespace picongpu
shape< UsedParticleShape >,
interpolation< UsedField2Particle >,
massRatio< MassRatioElectrons >,
chargeRatio< ChargeRatioElectrons >,
transitionRadiationMask
chargeRatio< ChargeRatioElectrons >
>;

/* define species electrons */
Expand Down

0 comments on commit 431ae94

Please sign in to comment.