Changes in / [1dd2854:6794301] in sasmodels


Ignore:
Location:
sasmodels/models
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/correlation_length.py

    r0cc31e1 r326281f  
    1616incoherent background B and the two exponents n and m are used as fitting 
    1717parameters. (Respectively $porod\_scale$, $lorentz\_scale$, $background$, $exponent\_p$ and  
    18 $exponent\_l$ in the parameter list.) The remaining parameter \ |xi|\ is a correlation  
     18$exponent\_l$ in the parameter list.) The remaining parameter \xi is a correlation  
    1919length for the polymer chains. Note that when m=2 this functional form becomes the  
    2020familiar Lorentzian function. Some interpretation of the values of A and C may be  
  • sasmodels/models/elliptical_cylinder.py

    r0cc31e1 r74fd96f  
    1212.. figure:: img/elliptical_cylinder_geometry.png 
    1313 
    14    Elliptical cylinder geometry $a$ = $r_{minor}$ and \ |nu|\ = $axis\_ratio$ = $r_{major} / r_{minor}$ 
     14   Elliptical cylinder geometry $a$ = $r_{minor}$ and \nu = $axis\_ratio$ = $r_{major} / r_{minor}$ 
    1515 
    1616The function calculated is 
  • sasmodels/models/fuzzy_sphere.py

    r0cc31e1 raa2edb2  
    1919 
    2020    A(q) = \frac{3\left[\sin(qR) - qR \cos(qR)\right]}{(qR)^3} 
    21            \exp\left(\frac{-(\sigma_{fuzzy}q)^2}{2}\right) 
     21           \exp\left(\frac{-(o_{fuzzy}q)^2}{2}\right) 
    2222 
    2323Here *|A(q)|*:sup:`2`\  is the form factor, *P(q)*. The scale is equivalent to the 
     
    2626solvent. 
    2727 
    28 Poly-dispersion in radius and in fuzziness is provided for, though the fuzziness 
    29 must be kept much smaller than the sphere radius for meaningful results. 
     28Poly-dispersion in radius and in fuzziness is provided for. 
    3029 
    3130 
     
    6665or just volume fraction for absolute scale data 
    6766radius: radius of the solid sphere 
    68 fuzziness = the standard deviation of the fuzzy interfacial 
     67fuzziness = the STD of the height of fuzzy interfacial 
    6968thickness (ie., so-called interfacial roughness) 
    7069sld: the SLD of the sphere 
     
    7776# pylint: disable=bad-whitespace,line-too-long 
    7877# ["name", "units", default, [lower, upper], "type","description"], 
    79 parameters = [["sld",         "1e-6/Ang^2",  1, [-inf, inf], "",       "Particle scattering length density"], 
    80               ["sld_solvent", "1e-6/Ang^2",  3, [-inf, inf], "",       "Solvent scattering length density"], 
     78parameters = [["sld",         "1e-6/Ang^2",  1, [-inf, inf], "",       "Layer scattering length density"], 
     79              ["solvent_sld", "1e-6/Ang^2",  3, [-inf, inf], "",       "Solvent scattering length density"], 
    8180              ["radius",      "Ang",        60, [0, inf],    "volume", "Sphere radius"], 
    82               ["fuzziness",   "Ang",        10, [0, inf],    "",       "std deviation of Gaussian convolution for interface (must be << radius)"], 
     81              ["fuzziness",   "Ang",        10, [0, inf],    "",       "The STD of the height of fuzzy interfacial"], 
    8382             ] 
    8483# pylint: enable=bad-whitespace,line-too-long 
     
    9695    const double bes = sph_j1c(qr); 
    9796    const double qf = q*fuzziness; 
    98     const double fq = bes * (sld - sld_solvent) * form_volume(radius) * exp(-0.5*qf*qf); 
     97    const double fq = bes * (sld - solvent_sld) * form_volume(radius) * exp(-0.5*qf*qf); 
    9998    return 1.0e-4*fq*fq; 
    10099    """ 
     
    103102    // never called since no orientation or magnetic parameters. 
    104103    //return -1.0; 
    105     return Iq(sqrt(qx*qx + qy*qy), sld, sld_solvent, radius, fuzziness); 
     104    return Iq(sqrt(qx*qx + qy*qy), sld, solvent_sld, radius, fuzziness); 
    106105    """ 
    107106 
     
    115114 
    116115demo = dict(scale=1, background=0.001, 
    117             sld=1, sld_solvent=3, 
     116            sld=1, solvent_sld=3, 
    118117            radius=60, 
    119118            fuzziness=10, 
     
    122121 
    123122oldname = "FuzzySphereModel" 
    124 oldpars = dict(sld='sldSph', sld_solvent='sldSolv', radius='radius', fuzziness='fuzziness') 
     123oldpars = dict(sld='sldSph', solvent_sld='sldSolv', radius='radius', fuzziness='fuzziness') 
    125124 
    126125 
Note: See TracChangeset for help on using the changeset viewer.