Changeset b716cc6 in sasmodels for sasmodels/models/surface_fractal.py


Ignore:
Timestamp:
Oct 14, 2016 5:20:17 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a48772
Parents:
6831fa0
Message:

surface_fractal: document usable q range; suppress negative values outside that range

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/surface_fractal.py

    ra807206 rb716cc6  
    1010.. math:: 
    1111 
    12     I(q) = scale \times P(q)S(q) + background 
    13  
    14 .. math:: 
    15  
    16     P(q) = F(qR)^2 
    17  
    18 .. math:: 
    19  
    20     F(x) = \frac{3\left[sin(x)-xcos(x)\right]}{x^3} 
    21  
    22 .. math:: 
    23  
    24     S(q) = \frac{\Gamma(5-D_S)\zeta^{5-D_S}}{\left[1+(q\zeta)^2 
    25     \right]^{(5-D_S)/2}} 
    26     \frac{sin\left[(D_S - 5) tan^{-1}(q\zeta) \right]}{q} 
    27  
    28 .. math:: 
    29  
    30     scale = scale\_factor \times NV^2(\rho_{particle} - \rho_{solvent})^2 
    31  
    32 .. math:: 
    33  
    34     V = \frac{4}{3}\pi R^3 
     12    I(q) &= \text{scale} \times P(q)S(q) + \text{background} \\ 
     13    P(q) &= F(qR)^2 \\ 
     14    F(x) &= \frac{3\left[\sin(x)-x\cos(x)\right]}{x^3} \\ 
     15    S(q) &= \Gamma(5-D_S)\xi^{\,5-D_S}\left[1+(q\xi)^2 \right]^{-(5-D_S)/2} 
     16            \sin\left[-(5-D_S) \tan^{-1}(q\xi) \right] q^{-1} \\ 
     17    \text{scale} &= \phi N V^2(\rho_\text{particle} - \rho_\text{solvent})^2 \\ 
     18    V &= \frac{4}{3}\pi R^3 
    3519 
    3620where $R$ is the radius of the building block, $D_S$ is the **surface** fractal 
    37 dimension,| \zeta\|  is the cut-off length, $\rho_{solvent}$ is the scattering 
    38 length density of the solvent, 
    39 and $\rho_{particle}$ is the scattering length density of particles. 
     21dimension, $\xi$ is the cut-off length, $\rho_\text{solvent}$ is the scattering 
     22length density of the solvent, $\rho_\text{particle}$ is the scattering 
     23length density of particles and $\phi$ is the volume fraction of the particles. 
    4024 
    4125.. note:: 
    42     The surface fractal dimension $D_s$ is only valid if $1<surface\_dim<3$. 
    43     It is also only valid over a limited $q$ range (see the reference for 
    44     details) 
     26 
     27    The surface fractal dimension is only valid if $1<D_S<3$. The result is 
     28    only valid over a limited $q$ range, $\tfrac{5}{3-D_S}\xi^{\,-1} < q < R^{-1}$. 
     29    See the reference for details. 
    4530 
    4631 
     
    8974source = ["lib/sph_j1c.c", "lib/sas_gamma.c", "surface_fractal.c"] 
    9075 
    91 demo = dict(scale=1, background=0, 
     76demo = dict(scale=1, background=1e-5, 
    9277            radius=10, fractal_dim_surf=2.0, cutoff_length=500) 
    9378 
Note: See TracChangeset for help on using the changeset viewer.