Skip to content

Commit d82b433

Browse files
author
Mathieu Lobet
committed
Rename chipa by particle_chi and chiph by photon_chi
1 parent 36ce601 commit d82b433

12 files changed

+326
-326
lines changed

doc/Sphinx/namelist.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,13 +1731,13 @@ tables.
17311731
17321732
:default: 128
17331733

1734-
Discretization of the *chimin* and *xip* tables in the *chipa* direction.
1734+
Discretization of the *chimin* and *xip* tables in the *particle_chi* direction.
17351735

17361736
.. py:data:: xip_chiph_dim
17371737
17381738
:default: 128
17391739

1740-
Discretization of the *xip* tables in the *chiph* direction.
1740+
Discretization of the *xip* tables in the *photon_chi* direction.
17411741

17421742
.. py:data:: output_format
17431743
@@ -1749,15 +1749,15 @@ tables.
17491749
17501750
:default: 1e-3
17511751

1752-
Threshold on the particle quantum parameter *chipa*. When a particle has a
1752+
Threshold on the particle quantum parameter *particle_chi*. When a particle has a
17531753
quantum parameter below this threshold, radiation reaction is not taken
17541754
into account.
17551755

17561756
.. py:data:: chipa_disc_min_threshold
17571757
17581758
:default: 1e-2
17591759

1760-
Threshold on the particle quantum parameter *chipa* between the continuous
1760+
Threshold on the particle quantum parameter *particle_chi* between the continuous
17611761
and the discontinuous radiation model.
17621762

17631763
.. py:data:: table_path
@@ -1871,13 +1871,13 @@ There are two tables used for the multiphoton Breit-Wheeler refers to as the
18711871
18721872
:default: 128
18731873

1874-
Discretization of the *chimin* and *xip* tables in the *chiph* direction.
1874+
Discretization of the *chimin* and *xip* tables in the *photon_chi* direction.
18751875

18761876
.. py:data:: xip_chipa_dim
18771877
18781878
:default: 128
18791879

1880-
Discretization of the *xip* tables in the *chipa* direction.
1880+
Discretization of the *xip* tables in the *particle_chi* direction.
18811881

18821882
--------------------------------------------------------------------------------
18831883

src/MultiphotonBreitWheeler/MultiphotonBreitWheeler.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void MultiphotonBreitWheeler::operator() (Particles &particles,
171171
double* tau = &( particles.tau(0));
172172

173173
// Quantum parameter
174-
double * chiph = &( particles.chi(0));
174+
double * photon_chi = &( particles.chi(0));
175175

176176
// Photon id
177177
// uint64_t * id = &( particles.id(0));
@@ -193,7 +193,7 @@ void MultiphotonBreitWheeler::operator() (Particles &particles,
193193
+ momentum[2][ipart]*momentum[2][ipart]);
194194

195195
// Computation of the Lorentz invariant quantum parameter
196-
chiph[ipart] = MultiphotonBreitWheeler::compute_chiph(
196+
photon_chi[ipart] = MultiphotonBreitWheeler::compute_chiph(
197197
momentum[0][ipart],momentum[1][ipart],momentum[2][ipart],
198198
(*gamma)[ipart],
199199
(*(Ex+ipart-ipart_ref)),(*(Ey+ipart-ipart_ref)),(*(Ez+ipart-ipart_ref)),
@@ -206,9 +206,9 @@ void MultiphotonBreitWheeler::operator() (Particles &particles,
206206
{
207207

208208
// If the photon has enough energy
209-
// We also check that chiph > chiph_threshold,
210-
// else chiph is too low to induce a decay
211-
if (((*gamma)[ipart] > 2.) && (chiph[ipart] > chiph_threashold))
209+
// We also check that photon_chi > chiph_threshold,
210+
// else photon_chi is too low to induce a decay
211+
if (((*gamma)[ipart] > 2.) && (photon_chi[ipart] > chiph_threashold))
212212
{
213213
// Init local variables
214214
event_time = 0;
@@ -228,7 +228,7 @@ void MultiphotonBreitWheeler::operator() (Particles &particles,
228228
else if (tau[ipart] > epsilon_tau_)
229229
{
230230
// from the cross section
231-
temp = MultiphotonBreitWheelerTables.compute_dNBWdt(chiph[ipart],(*gamma)[ipart]);
231+
temp = MultiphotonBreitWheelerTables.compute_dNBWdt(photon_chi[ipart],(*gamma)[ipart]);
232232

233233
// Time to decay
234234
// If this time is above the remaining iteration time,

0 commit comments

Comments
 (0)