Changeset d138d43 in sasmodels for sasmodels/models/lamellarPC.py


Ignore:
Timestamp:
Nov 30, 2015 12:24:28 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
eb69cce
Parents:
1ec7efa
Message:

remove documentation build errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lamellarPC.py

    r3e428ec rd138d43  
    77can be used for large multilamellar vesicles.** 
    88 
    9 *2.1.33.1. Definition* 
     9Definition 
     10---------- 
    1011 
    11 The scattering intensity *I(q)* is calculated as 
     12In the equations below, 
    1213 
    13 .. image:: img/image145.jpg 
     14- *scale* is used instead of the mass per area of the bilayer $\Gamma_m$ 
     15  (this corresponds to the volume fraction of the material in the bilayer, 
     16  *not* the total excluded volume of the paracrystal), 
     17 
     18- *sld* $-$ *solvent_sld* is the contrast $\Delta \rho$, 
     19 
     20- *thickness* is the layer thickness $t$, 
     21 
     22- *Nlayers* is the number of layers $N$, 
     23 
     24- *spacing* is the average distance between adjacent layers 
     25  $\langle D \rangle$, and 
     26 
     27- *spacing_polydisp* is the relative standard deviation of the Gaussian 
     28  layer distance distribution $\sigma_D / \langle D \rangle$. 
     29 
     30 
     31The scattering intensity $I(q)$ is calculated as 
     32 
     33.. math:: 
     34 
     35    I(q) = 2\pi\Delta\rho^2\Gamma_m\frac{P_\text{bil}(q)}{q^2} Z_N(q) 
    1436 
    1537The form factor of the bilayer is approximated as the cross section of an 
    16 infinite, planar bilayer of thickness *t* 
     38infinite, planar bilayer of thickness $t$ 
    1739 
    18 .. image:: img/image146.jpg 
     40.. math:: 
    1941 
    20 Here, the scale factor is used instead of the mass per area of the 
    21 bilayer (*G*). The scale factor is the volume fraction of the material in 
    22 the bilayer, *not* the total excluded volume of the paracrystal. 
    23 *Z*\ :sub:`N`\ *(q)* describes the interference effects for aggregates 
     42    P_\text{bil}(q) = \left(\frac{\sin(qt/2)}{qt/2}\right)^2 
     43 
     44$Z_N(q)$ describes the interference effects for aggregates 
    2445consisting of more than one bilayer. The equations used are (3-5) 
    25 from the Bergstrom reference below. 
     46from the Bergstrom reference: 
     47 
     48.. math:: 
     49 
     50 
     51    Z_N(q) = \frac{1 - w^2}{1 + w^2 - 2w \cos(q \langle D \rangle)} 
     52        + x_N S_N + (1 - x_N) S_{N+1} 
     53 
     54where 
     55 
     56.. math:: 
     57 
     58    S_N(q) = \frac{a_N}{N}[1 + w^2 - 2 w \cos(q \langle D \rangle)]^2 
     59 
     60and 
     61 
     62.. math:: 
     63 
     64    a_N = 4w^2 - 2(w^3 + w) \cos(q \langle D \rangle) 
     65        - 4w^{N+2}\cos(Nq \langle D \rangle) 
     66        + 2 w^{N+3}\cos[(N-1)q \langle D \rangle] 
     67        + 2w^{N+1}\cos[(N+1)q \langle D \rangle] 
     68 
     69for the layer spacing distribution $w = \exp(-\sigma_D^2 q^2/2)$. 
    2670 
    2771Non-integer numbers of stacks are calculated as a linear combination of 
    2872the lower and higher values 
    2973 
    30 .. image:: img/image147.jpg 
     74.. math:: 
     75 
     76    N_L = x_N N + (1 - x_N)(N+1) 
    3177 
    3278The 2D scattering intensity is the same as 1D, regardless of the orientation 
    33 of the *q* vector which is defined as 
     79of the $q$ vector which is defined as 
    3480 
    3581.. math:: 
    3682 
    37     Q = \sqrt{Q_x^2 + Q_y^2} 
     83    q = \sqrt{q_x^2 + q_y^2} 
    3884 
    39 The parameters of the model are *Nlayers* = no. of layers, and 
    40 *pd_spacing* = polydispersity of spacing. 
    4185 
    42 ==============  ========  ============= 
    43 Parameter name  Units     Default value 
    44 ==============  ========  ============= 
    45 background      |cm^-1|   0 
    46 scale           None      1 
    47 Nlayers         None      20 
    48 pd_spacing      None      0.2 
    49 sld_layer       |Ang^-2|  1e-6 
    50 sld_solvent     |Ang^-2|  6.34e-6 
    51 spacing         |Ang|     250 
    52 thickness       |Ang|     33 
    53 ==============  ========  ============= 
     86.. figure:: img/lamellarPC_1d.jpg 
    5487 
    55 .. image:: img/image148.jpg 
     88    1D plot using the default values above (w/20000 data point). 
    5689 
    57 *Figure. 1D plot using the default values above (w/20000 data point).* 
    58  
    59 Our model uses the form factor calculations implemented in a C library 
    60 provided by the NIST Center for Neutron Research (Kline, 2006). 
    61  
    62 REFERENCE 
     90Reference 
     91--------- 
    6392 
    6493M Bergstrom, J S Pedersen, P Schurtenberger, S U Egelhaaf, 
     
    90119               "d-spacing of paracrystal stack"], 
    91120              ["spacing_polydisp", "Ang", 0.0, [0.0, inf], "", 
    92                "d-spacing of paracrystal stack"], 
     121               "d-spacing polydispersity"], 
    93122              ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", 
    94123               "layer scattering length density"], 
Note: See TracChangeset for help on using the changeset viewer.