[990d8df] | 1 | .. pd_help.rst |
---|
| 2 | |
---|
| 3 | .. This is a port of the original SasView html help file to ReSTructured text |
---|
| 4 | .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. |
---|
| 5 | |
---|
| 6 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 7 | |
---|
[eda8b30] | 8 | .. _polydispersityhelp: |
---|
| 9 | |
---|
[990d8df] | 10 | Polydispersity Distributions |
---|
| 11 | ---------------------------- |
---|
| 12 | |
---|
[eda8b30] | 13 | With some models in sasmodels we can calculate the average intensity for a |
---|
[990d8df] | 14 | population of particles that exhibit size and/or orientational |
---|
[eda8b30] | 15 | polydispersity. The resultant intensity is normalized by the average |
---|
[990d8df] | 16 | particle volume such that |
---|
| 17 | |
---|
| 18 | .. math:: |
---|
| 19 | |
---|
| 20 | P(q) = \text{scale} \langle F^* F \rangle / V + \text{background} |
---|
| 21 | |
---|
| 22 | where $F$ is the scattering amplitude and $\langle\cdot\rangle$ denotes an |
---|
| 23 | average over the size distribution. |
---|
| 24 | |
---|
| 25 | Each distribution is characterized by its center $\bar x$, its width $\sigma$, |
---|
| 26 | the number of sigmas $N_\sigma$ to include from the tails, and the number of |
---|
| 27 | points used to compute the average. The center of the distribution is set by the |
---|
| 28 | value of the model parameter. Volume parameters have polydispersity *PD* |
---|
| 29 | (not to be confused with a molecular weight distributions in polymer science) |
---|
| 30 | leading to a size distribution of width $\text{PD} = \sigma / \bar x$, but |
---|
| 31 | orientation parameters use an angular distributions of width $\sigma$. |
---|
| 32 | $N_\sigma$ determines how far into the tails to evaluate the distribution, with |
---|
| 33 | larger values of $N_\sigma$ required for heavier tailed distributions. |
---|
| 34 | The scattering in general falls rapidly with $qr$ so the usual assumption |
---|
| 35 | that $G(r - 3\sigma_r)$ is tiny and therefore $f(r - 3\sigma_r)G(r - 3\sigma_r)$ |
---|
| 36 | will not contribute much to the average may not hold when particles are large. |
---|
| 37 | This, too, will require increasing $N_\sigma$. |
---|
| 38 | |
---|
| 39 | Users should note that the averaging computation is very intensive. Applying |
---|
| 40 | polydispersion to multiple parameters at the same time or increasing the |
---|
| 41 | number of points in the distribution will require patience! However, the |
---|
| 42 | calculations are generally more robust with more data points or more angles. |
---|
| 43 | |
---|
| 44 | The following five distribution functions are provided: |
---|
| 45 | |
---|
| 46 | * *Rectangular Distribution* |
---|
| 47 | * *Gaussian Distribution* |
---|
| 48 | * *Lognormal Distribution* |
---|
| 49 | * *Schulz Distribution* |
---|
| 50 | * *Array Distribution* |
---|
| 51 | |
---|
| 52 | These are all implemented as *number-average* distributions. |
---|
| 53 | |
---|
| 54 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 55 | |
---|
| 56 | Rectangular Distribution |
---|
| 57 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 58 | |
---|
| 59 | The Rectangular Distribution is defined as |
---|
| 60 | |
---|
| 61 | .. math:: |
---|
| 62 | |
---|
| 63 | f(x) = \frac{1}{\text{Norm}} |
---|
| 64 | \begin{cases} |
---|
| 65 | 1 & \text{for } |x - \bar x| \leq w \\ |
---|
| 66 | 0 & \text{for } |x - \bar x| > w |
---|
| 67 | \end{cases} |
---|
| 68 | |
---|
| 69 | where $\bar x$ is the mean of the distribution, $w$ is the half-width, and |
---|
| 70 | *Norm* is a normalization factor which is determined during the numerical |
---|
| 71 | calculation. |
---|
| 72 | |
---|
| 73 | Note that the standard deviation and the half width $w$ are different! |
---|
| 74 | |
---|
| 75 | The standard deviation is |
---|
| 76 | |
---|
| 77 | .. math:: \sigma = w / \sqrt{3} |
---|
| 78 | |
---|
| 79 | whilst the polydispersity is |
---|
| 80 | |
---|
| 81 | .. math:: \text{PD} = \sigma / \bar x |
---|
| 82 | |
---|
| 83 | .. figure:: pd_rectangular.jpg |
---|
| 84 | |
---|
| 85 | Rectangular distribution. |
---|
| 86 | |
---|
| 87 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 88 | |
---|
| 89 | Gaussian Distribution |
---|
| 90 | ^^^^^^^^^^^^^^^^^^^^^ |
---|
| 91 | |
---|
| 92 | The Gaussian Distribution is defined as |
---|
| 93 | |
---|
| 94 | .. math:: |
---|
| 95 | |
---|
| 96 | f(x) = \frac{1}{\text{Norm}} |
---|
| 97 | \exp\left(-\frac{(x - \bar x)^2}{2\sigma^2}\right) |
---|
| 98 | |
---|
[1f058ea] | 99 | where $\bar x$ is the mean of the distribution and *Norm* is a normalization |
---|
| 100 | factor which is determined during the numerical calculation. |
---|
[990d8df] | 101 | |
---|
| 102 | The polydispersity is |
---|
| 103 | |
---|
| 104 | .. math:: \text{PD} = \sigma / \bar x |
---|
| 105 | |
---|
| 106 | .. figure:: pd_gaussian.jpg |
---|
| 107 | |
---|
| 108 | Normal distribution. |
---|
| 109 | |
---|
| 110 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 111 | |
---|
| 112 | Lognormal Distribution |
---|
| 113 | ^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 114 | |
---|
| 115 | The Lognormal Distribution is defined as |
---|
| 116 | |
---|
| 117 | .. math:: |
---|
| 118 | |
---|
| 119 | f(x) = \frac{1}{\text{Norm}} |
---|
| 120 | \frac{1}{xp}\exp\left(-\frac{(\ln(x) - \mu)^2}{2p^2}\right) |
---|
| 121 | |
---|
| 122 | where $\mu=\ln(x_\text{med})$ when $x_\text{med}$ is the median value of the |
---|
| 123 | distribution, and *Norm* is a normalization factor which will be determined |
---|
| 124 | during the numerical calculation. |
---|
| 125 | |
---|
[1f058ea] | 126 | The median value for the distribution will be the value given for the |
---|
| 127 | respective size parameter, for example, *radius=60*. |
---|
[990d8df] | 128 | |
---|
| 129 | The polydispersity is given by $\sigma$ |
---|
| 130 | |
---|
| 131 | .. math:: \text{PD} = p |
---|
| 132 | |
---|
| 133 | For the angular distribution |
---|
| 134 | |
---|
| 135 | .. math:: p = \sigma / x_\text{med} |
---|
| 136 | |
---|
| 137 | The mean value is given by $\bar x = \exp(\mu+ p^2/2)$. The peak value |
---|
| 138 | is given by $\max x = \exp(\mu - p^2)$. |
---|
| 139 | |
---|
| 140 | .. figure:: pd_lognormal.jpg |
---|
| 141 | |
---|
| 142 | Lognormal distribution. |
---|
| 143 | |
---|
| 144 | This distribution function spreads more, and the peak shifts to the left, as |
---|
| 145 | $p$ increases, so it requires higher values of $N_\sigma$ and more points |
---|
| 146 | in the distribution. |
---|
| 147 | |
---|
| 148 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 149 | |
---|
| 150 | Schulz Distribution |
---|
| 151 | ^^^^^^^^^^^^^^^^^^^ |
---|
| 152 | |
---|
| 153 | The Schulz distribution is defined as |
---|
| 154 | |
---|
| 155 | .. math:: |
---|
| 156 | |
---|
| 157 | f(x) = \frac{1}{\text{Norm}} |
---|
| 158 | (z+1)^{z+1}(x/\bar x)^z\frac{\exp[-(z+1)x/\bar x]}{\bar x\Gamma(z+1)} |
---|
| 159 | |
---|
| 160 | where $\bar x$ is the mean of the distribution and *Norm* is a normalization |
---|
| 161 | factor which is determined during the numerical calculation, and $z$ is a |
---|
| 162 | measure of the width of the distribution such that |
---|
| 163 | |
---|
| 164 | .. math:: z = (1-p^2) / p^2 |
---|
| 165 | |
---|
| 166 | The polydispersity is |
---|
| 167 | |
---|
| 168 | .. math:: p = \sigma / \bar x |
---|
| 169 | |
---|
| 170 | Note that larger values of PD might need larger number of points and $N_\sigma$. |
---|
| 171 | For example, at PD=0.7 and radius=60 |Ang|, Npts>=160 and Nsigmas>=15 at least. |
---|
| 172 | |
---|
| 173 | .. figure:: pd_schulz.jpg |
---|
| 174 | |
---|
| 175 | Schulz distribution. |
---|
| 176 | |
---|
| 177 | For further information on the Schulz distribution see: |
---|
| 178 | M Kotlarchyk & S-H Chen, *J Chem Phys*, (1983), 79, 2461. |
---|
| 179 | |
---|
| 180 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 181 | |
---|
| 182 | Array Distribution |
---|
| 183 | ^^^^^^^^^^^^^^^^^^ |
---|
| 184 | |
---|
| 185 | This user-definable distribution should be given as as a simple ASCII text |
---|
| 186 | file where the array is defined by two columns of numbers: $x$ and $f(x)$. |
---|
| 187 | The $f(x)$ will be normalized to 1 during the computation. |
---|
| 188 | |
---|
| 189 | Example of what an array distribution file should look like: |
---|
| 190 | |
---|
| 191 | ==== ===== |
---|
| 192 | 30 0.1 |
---|
| 193 | 32 0.3 |
---|
| 194 | 35 0.4 |
---|
| 195 | 36 0.5 |
---|
| 196 | 37 0.6 |
---|
| 197 | 39 0.7 |
---|
| 198 | 41 0.9 |
---|
| 199 | ==== ===== |
---|
| 200 | |
---|
| 201 | Only these array values are used computation, therefore the parameter value |
---|
| 202 | given for the model will have no affect, and will be ignored when computing |
---|
| 203 | the average. This means that any parameter with an array distribution will |
---|
| 204 | not be fittable. |
---|
| 205 | |
---|
| 206 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 207 | |
---|
| 208 | Note about DLS polydispersity |
---|
| 209 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
---|
| 210 | |
---|
| 211 | Many commercial Dynamic Light Scattering (DLS) instruments produce a size |
---|
[1f058ea] | 212 | polydispersity parameter, sometimes even given the symbol $p$\ ! This |
---|
[990d8df] | 213 | parameter is defined as the relative standard deviation coefficient of |
---|
| 214 | variation of the size distribution and is NOT the same as the polydispersity |
---|
| 215 | parameters in the Lognormal and Schulz distributions above (though they all |
---|
| 216 | related) except when the DLS polydispersity parameter is <0.13. |
---|
| 217 | |
---|
| 218 | For more information see: |
---|
| 219 | S King, C Washington & R Heenan, *Phys Chem Chem Phys*, (2005), 7, 143 |
---|
| 220 | |
---|
| 221 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 222 | |
---|
| 223 | *Document History* |
---|
| 224 | |
---|
| 225 | | 2015-05-01 Steve King |
---|
| 226 | | 2017-05-08 Paul Kienzle |
---|