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


Ignore:
Timestamp:
Nov 30, 2015 9: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/spherepy.py

    rd138d43 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*, 
     
    6461title = "Spheres with uniform scattering length density" 
    6562description = """\ 
    66 P(q)=(scale/V)*[3V(sld-solvent_sld)*(sin(qR)-qRcos(qR)) 
    67                 /(qR)^3]^2 + background 
    68     R: radius of sphere 
     63P(q)=(scale/V)*[3V(sld-solvent_sld)*(sin(qr)-qr cos(qr)) 
     64                /(qr)^3]^2 + background 
     65    r: radius of sphere 
    6966    V: The volume of the scatter 
    7067    sld: the SLD of the sphere 
     
    10198    fq = bes * (sld - solvent_sld) * form_volume(radius) 
    10299    return 1.0e-4 * fq ** 2 
    103 Iq.vectorized = True  # Iq accepts an array of Q values 
     100Iq.vectorized = True  # Iq accepts an array of q values 
    104101 
    105102def Iqxy(qx, qy, sld, solvent_sld, radius): 
    106103    return Iq(sqrt(qx ** 2 + qy ** 2), sld, solvent_sld, radius) 
    107 Iqxy.vectorized = True  # Iqxy accepts arrays of Qx, Qy values 
     104Iqxy.vectorized = True  # Iqxy accepts arrays of qx, qy values 
    108105 
    109106def sesans(z, sld, solvent_sld, radius): 
Note: See TracChangeset for help on using the changeset viewer.