Changeset 40a87fa in sasmodels for sasmodels/models/stacked_disks.py


Ignore:
Timestamp:
Aug 8, 2016 11:24:11 AM (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:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/stacked_disks.py

    r42356c8 r40a87fa  
    1414of the q vector which is defined as 
    1515 
    16 .. math:: 
    17  
    18     q = \sqrt{q_x^2 + q_y^2} 
     16.. math:: q = \sqrt{q_x^2 + q_y^2} 
    1917 
    2018Definition 
     
    2826 
    2927    I(q) = N\int_{0}^{\pi /2}\left[ \Delta \rho_t 
    30     \left( V_tf_t(q) - V_cf_c(q)\right) + \Delta \rho_cV_cf_c(q) 
    31     \right]^2S(q)\sin{\alpha d\alpha} + background 
     28    \left( V_t f_t(q) - V_c f_c(q)\right) + \Delta \rho_c V_c f_c(q) 
     29    \right]^2 S(q)\sin{\alpha}\ d\alpha + \text{background} 
    3230 
    3331where the contrast 
     
    3533.. math:: 
    3634 
    37     \Delta \rho_i = \rho_i - \rho_{solvent} 
    38  
    39 and *N* is the number of discs per unit volume, 
    40 $\alpha$ is the angle between the axis of the disc and *q*, 
     35    \Delta \rho_i = \rho_i - \rho_\text{solvent} 
     36 
     37and $N$ is the number of discs per unit volume, 
     38$\alpha$ is the angle between the axis of the disc and $q$, 
    4139and $V_t$ and $V_c$ are the total volume and the core volume of 
    4240a single disc, respectively. 
     
    4644    \left\langle f_{t}^2(q)\right\rangle_{\alpha} = 
    4745    \int_{0}^{\pi/2}\left[ 
    48     \left(\frac{sin(q(d+h)\cos{\alpha})}{q(d+h)\cos{\alpha}}\right) 
     46    \left(\frac{\sin(q(d+h)\cos{\alpha})}{q(d+h)\cos{\alpha}}\right) 
    4947    \left(\frac{2J_1(qR\sin{\alpha})}{qR\sin{\alpha}} \right) 
    50     \right]^2 \sin{\alpha d\alpha} 
     48    \right]^2 \sin{\alpha}\ d\alpha 
    5149 
    5250    \left\langle f_{c}^2(q)\right\rangle_{\alpha} = 
    5351    \int_{0}^{\pi/2}\left[ 
    54     \left(\frac{sin(qh)\cos{\alpha})}{qh\cos{\alpha}}\right) 
    55     \left(\frac{2J_1(qR\sin{\alpha})}{qR\sin{\alpha}} \right) 
    56     \right]^2 \sin{\alpha d\alpha} 
    57  
    58 where *d* = thickness of the layer (layer_thick), 
    59 *2h* = core thickness (core_thick), and *R* = radius of the disc (radius). 
     52    \left(\frac{\sin(qh)\cos{\alpha})}{qh\cos{\alpha}}\right) 
     53    \left(\frac{2J_1(qR\sin{\alpha})}{qR\sin{\alpha}}\right) 
     54    \right]^2 \sin{\alpha}\ d\alpha 
     55 
     56where $d$ = thickness of the layer (*layer_thick*), 
     57$2h$ = core thickness (*core_thick*), and $R$ = radius of the disc (*radius*). 
    6058 
    6159.. math:: 
    6260 
    6361    S(q) = 1 + \frac{1}{2}\sum_{k=1}^n(n-k)\cos{(kDq\cos{\alpha})} 
    64     exp\left[ -k(q\cos{\alpha})^2\sigma_D/2\right] 
    65  
    66 where *n* = the total number of the disc stacked (n_stacking), 
    67 *D* = 2*(*d*+*h*)the next neighbor center-to-center distance (d-spacing), 
    68 and $\sigma_D$ = the Gaussian standard deviation of the d-spacing (sigma_d). 
     62    \exp\left[ -k(q\cos{\alpha})^2\sigma_D/2\right] 
     63 
     64where $n$ is the total number of the disc stacked (*n_stacking*), 
     65$D = 2(d+h)$ is the next neighbor center-to-center distance (d-spacing), 
     66and $\sigma_D$ = the Gaussian standard deviation of the d-spacing (*sigma_d*). 
    6967 
    7068.. note:: 
    71     Each assmebly in the stack is layer/core/layer, so the spacing of the cores 
    72     is core plus two layers. The 2nd virial coefficient of the cylinder is  
    73     calculated based on the  
    74     *radius* and *length* = *n_stacking* * (*core_thick* + 2 * *layer_thick*) 
     69    Each assmebly in the stack is layer/core/layer, so the spacing of the 
     70    cores is core plus two layers. The 2nd virial coefficient of the cylinder 
     71    is calculated based on the *radius* and *length* 
     72    = *n_stacking* * (*core_thick* + 2 * *layer_thick*) 
    7573    values, and used as the effective radius for $S(Q)$ when $P(Q) * S(Q)$ 
    7674    is applied. 
     
    9492---------- 
    9593 
    96 A Guinier and G Fournet, *Small-Angle Scattering of X-Rays*, John Wiley and Sons, New York, 1955 
     94A Guinier and G Fournet, *Small-Angle Scattering of X-Rays*, 
     95John Wiley and Sons, New York, 1955 
    9796 
    9897O Kratky and G Porod, *J. Colloid Science*, 4, (1949) 35 
    9998 
    100 J S Higgins and H C Benoit, *Polymers and Neutron Scattering*, Clarendon, Oxford, 1994 
     99J S Higgins and H C Benoit, *Polymers and Neutron Scattering*, 
     100Clarendon, Oxford, 1994 
    101101 
    102102**Author:** NIST IGOR/DANSE **on:** pre 2010 
Note: See TracChangeset for help on using the changeset viewer.