Changeset eb69cce in sasmodels for sasmodels/models/sphere.py


Ignore:
Timestamp:
Nov 30, 2015 7:18:41 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:
d18f8a8
Parents:
d138d43
Message:

make model docs more consistent; build pdf docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/sphere.py

    r0fa687d reb69cce  
    1111.. math:: 
    1212 
    13     I(Q) = \frac{\text{scale}}{V} \cdot \left[ \ 
    14         3V(\Delta\rho) \cdot \frac{\sin(QR) - QR\cos(QR))}{(QR)^3} \ 
     13    I(q) = \frac{\text{scale}}{V} \cdot \left[ 
     14        3V(\Delta\rho) \cdot \frac{\sin(qr) - qr\cos(qr))}{(qr)^3} 
    1515        \right]^2 + \text{background} 
    1616 
    1717where *scale* is a volume fraction, $V$ is the volume of the scatterer, 
    18 $R$ is the radius of the sphere, *background* is the background level and 
     18$r$ is the radius of the sphere, *background* is the background level and 
    1919*sld* and *solvent_sld* are the scattering length densities (SLDs) of the 
    2020scatterer and the solvent respectively. 
     
    2727The 2D scattering intensity is the same as above, regardless of the 
    2828orientation of $\vec q$. 
    29  
    30 Our model uses the form factor calculations as defined in the IGOR 
    31 package provided by the NIST Center for Neutron Research (Kline, 2006). 
    3229 
    3330Validation 
     
    4946 
    5047 
    51 Reference 
    52 --------- 
     48References 
     49---------- 
    5350 
    5451A Guinier and G. Fournet, *Small-Angle Scattering of X-Rays*, 
     
    6360title = "Spheres with uniform scattering length density" 
    6461description = """\ 
    65 P(q)=(scale/V)*[3V(sld-solvent_sld)*(sin(qR)-qRcos(qR)) 
    66                 /(qR)^3]^2 + background 
    67     R: radius of sphere 
     62P(q)=(scale/V)*[3V(sld-solvent_sld)*(sin(qr)-qr cos(qr)) 
     63                /(qr)^3]^2 + background 
     64    r: radius of sphere 
    6865    V: The volume of the scatter 
    6966    sld: the SLD of the sphere 
     
    9390    double sn, cn; 
    9491    SINCOS(qr, sn, cn); 
    95     // Use taylor series for low Q to avoid cancellation error.  Tested against 
     92    // Use taylor series for low q to avoid cancellation error.  Tested against 
    9693    // the following expression in quad precision: 
    9794    //     3.0*(sn-qr*cn)/(qr*qr*qr); 
Note: See TracChangeset for help on using the changeset viewer.