Changeset 26a6608 in sasmodels for doc


Ignore:
Timestamp:
Nov 20, 2017 9:49:03 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a66b004
Parents:
a70959a (diff), fa70e04 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into boltzmann

Location:
doc/guide/pd
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • doc/guide/pd/polydispersity.rst

    r1f058ea r75e4319  
    4040calculations are generally more robust with more data points or more angles. 
    4141 
    42 The following five distribution functions are provided: 
     42The following six distribution functions are provided: 
    4343 
    4444*  *Rectangular Distribution* 
     45*  *Uniform Distribution* 
    4546*  *Gaussian Distribution* 
    4647*  *Lognormal Distribution* 
    4748*  *Schulz Distribution* 
    4849*  *Array Distribution* 
     50*  *Boltzmann Distribution* 
    4951 
    5052These are all implemented as *number-average* distributions. 
     
    8385    Rectangular distribution. 
    8486 
     87Uniform Distribution 
     88^^^^^^^^^^^^^^^^^^^^^^^^ 
     89 
     90The Uniform Distribution is defined as 
     91 
     92    .. math:: 
     93 
     94        f(x) = \frac{1}{\text{Norm}} 
     95        \begin{cases} 
     96          1 & \text{for } |x - \bar x| \leq \sigma \\ 
     97          0 & \text{for } |x - \bar x| > \sigma 
     98        \end{cases} 
     99 
     100    where $\bar x$ is the mean of the distribution, $\sigma$ is the half-width, and 
     101    *Norm* is a normalization factor which is determined during the numerical 
     102    calculation. 
     103 
     104    Note that the polydispersity is given by 
     105 
     106    .. math:: \text{PD} = \sigma / \bar x 
     107 
     108    .. figure:: pd_uniform.jpg 
     109 
     110        Uniform distribution. 
     111 
    85112.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
    86113 
     
    181208^^^^^^^^^^^^^^^^^^ 
    182209 
    183 This user-definable distribution should be given as as a simple ASCII text 
     210This user-definable distribution should be given as a simple ASCII text 
    184211file where the array is defined by two columns of numbers: $x$ and $f(x)$. 
    185212The $f(x)$ will be normalized to 1 during the computation. 
     
    200227given for the model will have no affect, and will be ignored when computing 
    201228the average.  This means that any parameter with an array distribution will 
    202 not be fittable. 
     229not be fitable. 
     230 
     231.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     232 
     233Boltzmann Distribution 
     234^^^^^^^^^^^^^^^^^^^^^^ 
     235 
     236The Boltzmann Distribution is defined as 
     237 
     238.. math:: 
     239 
     240    f(x) = \frac{1}{\text{Norm}} 
     241           \exp\left(-\frac{ | x - \bar x | }{\sigma}\right) 
     242 
     243where $\bar x$ is the mean of the distribution and *Norm* is a normalization 
     244factor which is determined during the numerical calculation. 
     245The width is defined as 
     246 
     247.. math:: \sigma=\frac{k T}{E} 
     248 
     249which is the inverse Boltzmann factor, 
     250where $k$ is the Boltzmann constant, $T$ the temperature in Kelvin and $E$ a 
     251characteristic energy per particle. 
     252 
     253.. figure:: pd_boltzmann.jpg 
     254 
     255    Boltzmann distribution. 
    203256 
    204257.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
Note: See TracChangeset for help on using the changeset viewer.