Ignore:
Timestamp:
Mar 19, 2016 5:37:29 PM (8 years ago)
Author:
richardh
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:
aa24114
Parents:
81d3a0c
Message:

tidy docs and renam solvent_sld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/elliptical_cylinder.py

    raa2edb2 re65a3e7  
    1212.. figure:: img/elliptical_cylinder_geometry.png 
    1313 
    14     *a* = *r_minor* and |nu|\ :sub:`n` = $r_ratio$ (i.e., $r_major / r_minor$). 
     14   Elliptical cylinder geometry $a$ = $r_{minor}$ and \nu = $r_{ratio}$ = $r_{major} / r_{minor}$ 
    1515 
    1616The function calculated is 
     
    2626    F(\mathbf{q},\alpha,\psi)=2\frac{J_1(a)\sin(b)}{ab} 
    2727    \\ 
    28     a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2} 
     28    where  a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2} 
    2929    \\ 
    3030    b=\mathbf{q}\frac{L}{2}\cos(\alpha) 
     
    7474    The intensities averaged from 2D over different numbers of bins and angles. 
    7575 
    76 Reference 
    77 --------- 
     76References 
     77---------- 
    7878 
    7979L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum, 
     
    9898              ["length",      "Ang",        400.0, [1, inf],    "volume",      "Length of the cylinder"], 
    9999              ["sld",         "1e-6/Ang^2", 4.0,   [-inf, inf], "",            "Cylinder scattering length density"], 
    100               ["solvent_sld", "1e-6/Ang^2", 1.0,   [-inf, inf], "",            "Solvent scattering length density"], 
     100              ["sld_solvent", "1e-6/Ang^2", 1.0,   [-inf, inf], "",            "Solvent scattering length density"], 
    101101              ["theta",       "degrees",    90.0,  [-360, 360], "orientation", "In plane angle"], 
    102102              ["phi",         "degrees",    0,     [-360, 360], "orientation", "Out of plane angle"], 
     
    108108 
    109109demo = dict(scale=1, background=0, r_minor=100, r_ratio=1.5, length=400.0, 
    110             sld=4.0, solvent_sld=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3) 
     110            sld=4.0, sld_solvent=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3) 
    111111 
    112112oldname = 'EllipticalCylinderModel' 
    113 oldpars = dict(theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', solvent_sld='sldSolv') 
     113oldpars = dict(theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', sld_solvent='sldSolv') 
    114114 
    115115def ER(r_minor, r_ratio, length): 
     
    132132           'sld': 4.0, 
    133133           'length':400.0, 
    134            'solvent_sld':1.0, 
     134           'sld_solvent':1.0, 
    135135           'background':0.0 
    136136          }, 0.001, 675.504402]] 
Note: See TracChangeset for help on using the changeset viewer.