Skip to content

Commit 0fb818c

Browse files
committed
Merge branch 'develop'
2 parents c894776 + 3fe0185 commit 0fb818c

20 files changed

+438
-435
lines changed

doc/Sphinx/namelist.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ The block ``Main`` is **mandatory** and has the following syntax::
180180
.. py:data:: patch_arrangement
181181
182182
:default: ``"hilbertian"``
183-
183+
184184
Determines the ordering of patches and the way they are separated into the
185185
various MPI processes. Options are:
186-
186+
187187
* ``"hilbertian"``: following the Hilbert curve (see :ref:`this explanation<LoadBalancingExplanation>`).
188188
* ``"linearized_XY"`` in 2D or ``"linearized_XYZ"`` in 3D: following the
189189
row-major (C-style) ordering.
@@ -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

@@ -2173,16 +2173,16 @@ To add one probe diagnostic, include the block ``DiagProbe``::
21732173
.. py:data:: fields
21742174
21752175
:default: ``[]``, which means ``["Ex", "Ey", "Ez", "Bx", "By", "Bz", "Jx", "Jy", "Jz", "Rho"]``
2176-
2176+
21772177
A list of fields among ``"Ex"``, ``"Ey"``, ``"Ez"``,
21782178
``"Bx"``, ``"By"``, ``"Bz"``, ``"Jx"``, ``"Jy"``, ``"Jz"`` and ``"Rho"``.
21792179
Only listed fields will be saved although they are all calculated.
2180-
2180+
21812181
The contributions of each species to the currents and the density are also available,
21822182
although they are not included by default. They may be added to the list as
21832183
``"Jx_abc"``, ``"Jy_abc"``, ``"Jz_abc"`` or ``"Rho_abc"``, where ``abc`` is the
21842184
species name.
2185-
2185+
21862186
In the case of an envelope model for the laser (see :doc:`laser_envelope`),
21872187
the following fields are also available: ``"Env_A_abs"``, ``"Env_Chi"``, ``"Env_E_abs"``.
21882188

src/MultiphotonBreitWheeler/MultiphotonBreitWheeler.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
MultiphotonBreitWheeler::MultiphotonBreitWheeler(Params& params, Species * species)
2020
{
2121
// Dimension position
22-
nDim_ = params.nDim_particle;
22+
n_dimensions_ = params.nDim_particle;
2323

2424
// Time step
2525
dt = params.timestep;
2626

2727
// Normalized Schwinger Electric Field
28-
norm_E_Schwinger = params.electron_mass*params.c_vacuum*params.c_vacuum
28+
norm_E_Schwinger_ = params.electron_mass*params.c_vacuum*params.c_vacuum
2929
/ (params.red_planck_cst*params.reference_angular_frequency_SI);
3030

31-
// Inverse of norm_E_Schwinger
32-
inv_norm_E_Schwinger = 1./norm_E_Schwinger;
31+
// Inverse of norm_E_Schwinger_
32+
inv_norm_E_Schwinger_ = 1./norm_E_Schwinger_;
3333

3434
// Number of positrons and electrons generated per event
3535
this->mBW_pair_creation_sampling[0] = species->mBW_pair_creation_sampling[0];
@@ -161,7 +161,7 @@ void MultiphotonBreitWheeler::operator() (Particles &particles,
161161
// for now particles could be created outside of the local domain
162162
// without been subject do boundary conditions (including domain exchange)
163163
//double* position[3];
164-
//for ( int i = 0 ; i<nDim_ ; i++ )
164+
//for ( int i = 0 ; i<n_dimensions_ ; i++ )
165165
// position[i] = &( particles.position(i,0) );
166166

167167
// Weight shortcut
@@ -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,29 +206,29 @@ 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;
215215

216216
// New even
217217
// If tau[ipart] <= 0, this is a new process
218-
if (tau[ipart] <= epsilon_tau)
218+
if (tau[ipart] <= epsilon_tau_)
219219
{
220220
// New final optical depth to reach for emision
221-
while (tau[ipart] <= epsilon_tau)
221+
while (tau[ipart] <= epsilon_tau_)
222222
tau[ipart] = -log(1.-Rand::uniform());
223223

224224
}
225225

226226
// Photon decay: emission under progress
227-
// If epsilon_tau > 0
228-
else if (tau[ipart] > epsilon_tau)
227+
// If epsilon_tau_ > 0
228+
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,
@@ -241,17 +241,17 @@ void MultiphotonBreitWheeler::operator() (Particles &particles,
241241

242242
// If the final optical depth is reached
243243
// The photon decays into pairs
244-
if (tau[ipart] <= epsilon_tau)
244+
if (tau[ipart] <= epsilon_tau_)
245245
{
246246

247247
// Update of the position
248248
// Move the photons
249249

250250
//#ifdef __DEBUG
251-
// for ( int i = 0 ; i<nDim_ ; i++ )
251+
// for ( int i = 0 ; i<n_dimensions_ ; i++ )
252252
// particles.position_old(i,ipart) = position[i][ipart];
253253
//#endif
254-
// for ( int i = 0 ; i<nDim_ ; i++ )
254+
// for ( int i = 0 ; i<n_dimensions_ ; i++ )
255255
// position[i][ipart] += event_time*momentum[i][ipart]/(*gamma)[ipart];
256256

257257

@@ -343,14 +343,14 @@ void MultiphotonBreitWheeler::pair_emission(int ipart,
343343
//inv_gamma = 1./sqrt(1.+p*p);
344344

345345
// Positions
346-
for (i=0; i<nDim_; i++) {
346+
for (i=0; i<n_dimensions_; i++) {
347347
new_pair[k].position(i,idNew)=particles.position(i,ipart);
348348
// + new_pair[k].momentum(i,idNew)*remaining_dt*inv_gamma;
349349
}
350350

351351
// Old positions
352352
#ifdef __DEBUG
353-
for (i=0; i<nDim_; i++) {
353+
for (i=0; i<n_dimensions_; i++) {
354354
new_pair[k].position_old(i,idNew)=particles.position(i,ipart) ;
355355
}
356356
#endif

src/MultiphotonBreitWheeler/MultiphotonBreitWheeler.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class MultiphotonBreitWheeler
6464
double & Bx, double & By, double & Bz)
6565
{
6666

67-
return inv_norm_E_Schwinger
67+
return inv_norm_E_Schwinger_
6868
* sqrt( fabs( pow(Ex*kx + Ey*ky + Ez*kz,2)
6969
- pow(gamma*Ex - By*kz + Bz*ky,2)
7070
- pow(gamma*Ey - Bz*kx + Bx*kz,2)
@@ -125,7 +125,7 @@ class MultiphotonBreitWheeler
125125
// General parameters
126126

127127
//! Dimension of position
128-
int nDim_;
128+
int n_dimensions_;
129129

130130
//! Time step
131131
double dt;
@@ -146,13 +146,13 @@ class MultiphotonBreitWheeler
146146
// Factors
147147

148148
//! Normalized Schwinger Electric field
149-
double norm_E_Schwinger;
149+
double norm_E_Schwinger_;
150150

151151
//! Inverse Normalized Schwinger Electric field
152-
double inv_norm_E_Schwinger;
152+
double inv_norm_E_Schwinger_;
153153

154154
//! Espilon to check when tau is near 0
155-
const double epsilon_tau = 1e-100;
155+
const double epsilon_tau_ = 1e-100;
156156

157157
};
158158

0 commit comments

Comments
 (0)