Skip to content

Commit

Permalink
Change name of time step to camelCase
Browse files Browse the repository at this point in the history
DELTA_T_AU --> timeStepAU
  • Loading branch information
Marco Garten committed Aug 4, 2015
1 parent 5596535 commit 3b326be
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,17 @@ namespace ionization
* math::exp(float_X(-2.0) * util::cube(protonNumber) / (float_X(3.0) * util::cube(nEff) * eInAU));

/* simulation time step in atomic units */
const float_X DELTA_T_AU = float_X(DELTA_T / ATOMIC_UNIT_TIME);
const float_X timeStepAU = float_X(DELTA_T / ATOMIC_UNIT_TIME);
/* ionization probability
*
* probability = rate * time step
* --> for infinitesimal time steps
*
* the whole ensemble should then follow
* P = 1 - exp(-rate * time step) if the laser wavelength is
* sampled well enough
*/
float_X probADK = rateADK * DELTA_T_AU;
float_X probADK = rateADK * timeStepAU;

/* ionization condition */
if (randNr < probADK && chargeState < protonNumber)
Expand Down

0 comments on commit 3b326be

Please sign in to comment.