| 1 |
+++ |
| 2 |
title = "Mixture" |
| 3 |
weight = 20 |
| 4 |
+++ |
| 5 |
|
| 6 |
## Particle mixture |
| 7 |
|
| 8 |
A `Mixture` is a probabilistic particle: at each placement, it |
| 9 |
resolves to one of its configured particle types — the possible |
| 10 |
outcomes — with probabilities given by the (internally normalized) |
| 11 |
abundance weights. This is especially suited to uncorrelated |
| 12 |
compositional disorder: random substitutions at lattice sites, or |
| 13 |
species mixing in dilute distributions. |
| 14 |
|
| 15 |
```python |
| 16 |
mix = ba.Mixture() |
| 17 |
mix.addParticle(particle_1, 0.8) |
| 18 |
mix.addParticle(particle_2, 0.2) |
| 19 |
``` |
| 20 |
|
| 21 |
Equal abundances may also be expressed without normalization: |
| 22 |
|
| 23 |
```python |
| 24 |
mix.addParticle(particle_1, 1) |
| 25 |
mix.addParticle(particle_2, 1) |
| 26 |
``` |
| 27 |
|
| 28 |
Like every `IParticle`, a `Mixture` can be deposited directly in |
| 29 |
a `Layer`, wrapped in `Dilute2D`, or used as the basis particle |
| 30 |
of an ordered structure such as |
| 31 |
[`RadialParacrystal`](/ref/sample/struct/2d/radial_paracryst). |
| 32 |
|
| 33 |
### Physics |
| 34 |
|
| 35 |
Compared with [`Compound`](compound), which coherently sums the |
| 36 |
form factors of its constituents at fixed positions, `Mixture` |
| 37 |
represents the incoherent case: each particle type contributes to |
| 38 |
the scattered intensity independently, weighted by its abundance, |
| 39 |
with no interference between different types. |
| 40 |
|
| 41 |
### Examples |
| 42 |
|
| 43 |
- [Uncorrelated mixture](/ref/sample/struct/2d/disorder/mixture) |
| 44 |
— a dilute layout of cylinders and prisms with equal abundance. |
| 45 |
- [Decoupling and SSCA approximations](/ref/sample/struct/2d/approx) |
| 46 |
— Mixture supplying the multi-particle content of an ordered |
| 47 |
structure. |