Changeset 5d4777d in sasmodels for sasmodels/models/cylinder.py


Ignore:
Timestamp:
Sep 1, 2014 11:24:38 PM (10 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:
f4cf580
Parents:
ff7119b
Message:

reorganize, check and update models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/cylinder.py

    ra7684e5 r5d4777d  
     1# cylinder model 
    12# Note: model title and parameter table are inserted automatically 
    23r""" 
     
    3132To provide easy access to the orientation of the cylinder, we define the 
    3233axis of the cylinder using two angles $\theta$ and $\phi$. Those angles 
    33 are defined in Figure :num:`figure #CylinderModel-orientation`. 
     34are defined in Figure :num:`figure #cylinder-orientation`. 
    3435 
    35 .. _CylinderModel-orientation: 
     36.. _cylinder-orientation: 
    3637 
    3738.. figure:: img/image061.JPG   (should be img/cylinder-1.jpg, or img/cylinder-orientation.jpg) 
     
    6465Validation of our code was done by comparing the output of the 1D model 
    6566to the output of the software provided by the NIST (Kline, 2006). 
    66 Figure :num:`figure #CylinderModel-compare` shows a comparison of 
     67Figure :num:`figure #cylinder-compare` shows a comparison of 
    6768the 1D output of our model and the output of the NIST software. 
    6869 
    69 .. _CylinderModel-compare: 
     70.. _cylinder-compare: 
    7071 
    7172.. figure:: img/image065.JPG 
     
    9192the intensity for fully oriented cylinders, we can compare the result of 
    9293averaging our 2D output using a uniform distribution $p(\theta, \phi) = 1.0$. 
    93 Figure :num:`figure #CylinderModel-crosscheck` shows the result of 
     94Figure :num:`figure #cylinder-crosscheck` shows the result of 
    9495such a cross-check. 
    9596 
    96 .. _CylinderModel-crosscheck: 
     97.. _cylinder-crosscheck: 
    9798 
    9899.. figure:: img/image066.JPG 
     
    111112title = "Right circular cylinder with uniform scattering length density." 
    112113description = """ 
    113      f(q)= 2*(sldCyl - sldSolv)*V*sin(qLcos(alpha/2)) 
     114     P(q)= 2*(sld - solvent_sld)*V*sin(qLcos(alpha/2)) 
    114115            /[qLcos(alpha/2)]*J1(qRsin(alpha/2))/[qRsin(alpha)] 
    115116 
     
    119120            L: Length of the cylinder 
    120121            J1: The bessel function 
    121             alpha: angle betweenthe axis of the 
     122            alpha: angle between the axis of the 
    122123            cylinder and the q-vector for 1D 
    123124            :the ouput is P(q)=scale/V*integral 
    124125            from pi/2 to zero of... 
    125             f(q)^(2)*sin(alpha)*dalpha+ bkg 
    126     """ 
     126            f(q)^(2)*sin(alpha)*dalpha + background 
     127""" 
    127128 
    128129parameters = [ 
     
    143144    ] 
    144145 
    145 source = [ "lib/J1.c", "lib/gauss76.c", "lib/cylkernel.c", "cylinder.c"] 
     146source = [ "lib/J1.c", "lib/gauss76.c", "cylinder.c" ] 
    146147 
    147148def ER(radius, length): 
Note: See TracChangeset for help on using the changeset viewer.