Skip to content
Projects

Charge states

The equations of plasmacoll.charge_states, declared on the code that implements them and checked by the tests.

charge_state_fractions

functionsource

Return the fractions of every state at every point of a path.

rate equations
dFdz=∑tnt(z) Mt F,πt=∫nt dz\frac{d\mathbf F}{dz} = \sum_t n_t(z)\,\mathsf M_t\,\mathbf F, \qquad \pi_t = \int n_t\,dz
step
Fk=exp⁡(∑tΔπt,k Mt) Fk−1\mathbf F_k = \exp\Big(\sum_t \Delta\pi_{t,k}\,\mathsf M_t\Big)\,\mathbf F_{k-1}
expm
eA=(∑j=018(2−sA)jj!)2s,s=⌈log⁡2∥A∥10.5⌉e^{\mathsf A} = \Big(\sum_{j=0}^{18} \frac{(2^{-s}\mathsf A)^j}{j!}\Big)^{2^s}, \qquad s = \Big\lceil \log_2 \frac{\|\mathsf A\|_1}{0.5} \Big\rceil
negative
F−=e−(s1+s2)πF_- = e^{-(s_1 + s_2)\pi}
neutral
F0=s1s1+s2−s3(e−s3π−e−(s1+s2)π)F_0 = \frac{s_1}{s_1 + s_2 - s_3}\Big(e^{-s_3\pi} - e^{-(s_1 + s_2)\pi}\Big)
Assumes
  • exact where the targets' density ratios are constant over a step; the line densities non-decreasing and at the same points for every target
  • the matrix exponential accurate to round-off, also for defective matrices (equal cross sections)
  • the closed forms: one target, single and double stripping s1s_1, s2s_2, stripping of the neutrals s3s_3, no capture, F−(0)=1F_-(0) = 1
Built from

ChargeStateTransitions

classsource

The charge-changing cross sections of a beam, per target.

matrix
(Mt)ji+=σi→jt,(Mt)ii−=σi→jt,dFdπt=MtF(\mathsf M_t)_{ji} \mathrel{+}= \sigma^t_{i \to j}, \qquad (\mathsf M_t)_{ii} \mathrel{-}= \sigma^t_{i \to j}, \qquad \frac{d\mathbf F}{d\pi_t} = \mathsf M_t \mathbf F
conservation
∑j(Mt)ji=0 ⇒ ∑iFi=const\sum_j (\mathsf M_t)_{ji} = 0 \ \Rightarrow\ \sum_i F_i = \text{const}
Assumes
  • constant cross sections at one beam energy, in m2^2, per target tt; the states -, 0, + by default

equilibrium

functionsource

Return the fractions after a thick target (the null vector of M).

equilibrium
(∑twtMt)F∞=λminF∞,∣λmin∣ smallest,∑iF∞,i=1\Big(\sum_t w_t \mathsf M_t\Big)\mathbf F_\infty = \lambda_\mathrm{min}\mathbf F_\infty, \qquad |\lambda_\mathrm{min}| \text{ smallest}, \qquad \sum_i F_{\infty,i} = 1
Assumes
  • a thick target: wtw_t the targets' shares of the line density (equal by default); the eigenvalue is zero up to round-off

stripping_processes

functionsource

Return the stripping processes of every state, for the Monte Carlo collisions.

frequency
ν=n σ g≈n σ v(v≫vtarget)\nu = n\,\sigma\,g \approx n\,\sigma\,v \quad (v \gg v_\mathrm{target})
charge change
q=Zto−Zfromq = Z_\mathrm{to} - Z_\mathrm{from}
Assumes
  • one stripping process per transition and target, constant cross section, looked up in the lab frame
  • electrons released for q>0q > 0, a target ion left behind for q<0q < 0 (capture), each if a species is given
Built from