Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/fcc_paracrystal.py

    re7e9231 rda7b26b  
    33#note - calculation requires double precision 
    44r""" 
     5.. warning:: This model and this model description are under review following  
     6             concerns raised by SasView users. If you need to use this model,  
     7             please email help@sasview.org for the latest situation. *The  
     8             SasView Developers. September 2018.* 
     9 
    510Definition 
    611---------- 
     
    1015negligible, and the size of the paracrystal is infinitely large. 
    1116Paracrystalline distortion is assumed to be isotropic and characterized by 
    12 a Gaussian distribution.  
     17a Gaussian distribution. 
    1318 
    1419The scattering intensity $I(q)$ is calculated as 
     
    95100 
    96101Authorship and Verification 
    97 ---------------------------- 
     102--------------------------- 
    98103 
    99104* **Author:** NIST IGOR/DANSE **Date:** pre 2010 
    100 * **Last Modified by:** Paul Butler **Date:** September 16, 2018 
    101 * **Last Reviewed by:** Paul Butler **Date:** September 16, 2018 
     105* **Last Modified by:** Paul Butler **Date:** September 29, 2016 
     106* **Last Reviewed by:** Richard Heenan **Date:** March 21, 2016 
    102107""" 
    103108 
     
    118123# pylint: disable=bad-whitespace, line-too-long 
    119124#             ["name", "units", default, [lower, upper], "type","description"], 
    120 parameters = [["lattice_spacing", "Ang", 220, [-inf, inf], "", "Lattice spacing"], 
    121               ["lattice_distortion", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 
     125parameters = [["dnn", "Ang", 220, [-inf, inf], "", "Nearest neighbour distance"], 
     126              ["d_factor", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 
    122127              ["radius", "Ang", 40, [0, inf], "volume", "Particle radius"], 
    123128              ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 
     
    134139    # copied from bcc_paracrystal 
    135140    radius = 10**np.random.uniform(1.3, 4) 
    136     lattice_distortion = 10**np.random.uniform(-2, -0.7)  # sigma_d in 0.01-0.7 
    137     lattice_spacing_fraction = np.random.beta(a=10, b=1) 
    138     lattice_spacing = radius*4/np.sqrt(2)/lattice_spacing_fraction 
     141    d_factor = 10**np.random.uniform(-2, -0.7)  # sigma_d in 0.01-0.7 
     142    dnn_fraction = np.random.beta(a=10, b=1) 
     143    dnn = radius*4/np.sqrt(2)/dnn_fraction 
    139144    pars = dict( 
    140145        #sld=1, sld_solvent=0, scale=1, background=1e-32, 
    141         latice_spacing=lattice_spacing, 
    142         lattice_distortion=d_factor, 
     146        dnn=dnn, 
     147        d_factor=d_factor, 
    143148        radius=radius, 
    144149    ) 
Note: See TracChangeset for help on using the changeset viewer.