Null-collision method
The equations of plasmacoll.mcc, declared on the code that implements them and checked by the tests.
attenuation
functionsourceReturn sum_k n_k(x) sigma_k(E) (1/m), the inverse mean free path.
- attenuation
- Assumes
- targets at rest: , their temperature and drift ignored, for markers much faster than the neutrals
- Built from
collide
functionsourceCollide one species' markers for one time step dt (s).
- max speed
- probability
- selection
- rate
- Assumes
- at most one collision per marker and step, so ; warns once when exceeds
max_collision_probability(0.1) - with a NumPy generator the gaps between candidates are geometric, the same independent draw per marker at O(candidates); other generators draw one number per marker
- each candidate draws one neutral velocity per background and uniform in ; the real frequencies use the density factor where the marker is (exact thinning)
- candidates whose total frequency exceeds are counted in
bound_violationsand warned about once: their rate is too low - the largest temperature factor; eight thermal speeds leave about per component for a faster neutral
- at most one collision per marker and step, so ; warns once when exceeds
- References
- Vahedi and Surendra, Comput. Phys. Commun. 87, 179 (1995)00171-W)
- Skullerud, J. Phys. D 1, 1567 (1968)
- Built from
collide_now
functionsourceCollide the markers indices (all if None) now, each with a real process.
- choice
- Assumes
- every given marker collides with a real process (no null collision); a draw that rounding leaves above the sum goes to the last process
- for event-driven transport: the free path is sampled from
attenuationoutside; raises where the attenuation is zero
- Built from
frequency_bound
functionsourceReturn nu_max (1/s) valid for relative speeds up to max_relative_speed.
- bound
- table
- Assumes
- =
bound_safety(1.02) covers the maxima of a piecewise-linear times between grid speeds; 1 is exact for piecewise-constant cross sections - the running maximum is tabulated per species and background on 4096 (
num_bound_samples) logarithmic speeds from times the speed of the largest table energy, merged with the speeds of every table point and of every threshold - beyond the table every is constant and , which the direct evaluation at covers
- with tabulated cross sections is interpolated linearly between the grid speeds (its error between them is the one covers) and extended as beyond the grid, exact there; other cross sections are evaluated
- a sum of per-background bounds bounds the sum; a fixed profile is tabulated at its largest density, a
DynamicProfileat the reference density and scaled by its currentmax_factor
- =
- Built from
process_frequency
functionsourceReturn n sigma(E) g (1/s) for relative speeds g (m/s).
- frequency
- lookup energy
- Assumes
- process on background of reference density and density profile ; the relative speed
- without a density factor the largest the background reaches, =
max_factor: the bound the null-collision method needs
scattering_cosine
functionsourceReturn the cosine of the scattering angle for incident energy (eV).
- isotropic
- vahedi surendra
- okhrimovskyy
- Assumes
- each the inverse of the model's cumulative distribution in , uniform in
- clipped at zero; Vahedi-Surendra isotropic below eV; both anisotropic forms clipped to
- the scattering angle about the incident direction , at the pre-collision lookup energy; the azimuth uniform
- References