Ignore:
Timestamp:
Oct 1, 2016 12:36:48 PM (8 years ago)
Author:
butler
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:
30fbe2e
Parents:
b99734a
Message:

normalize nearest neighbor spaccing dnn, vs bragg spacing d_spacing and
polydispersity in spacing sigma_d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lamellar_stack_paracrystal.py

    r0bef47b r7c57861  
    2222- *Nlayers* is the number of layers $N$, 
    2323 
    24 - *spacing* is the average distance between adjacent layers 
     24- *d_spacing* is the average distance between adjacent layers 
    2525  $\langle D \rangle$, and 
    2626 
    27 - *spacing_polydisp* is the relative standard deviation of the Gaussian 
     27- *sigma_d* is the relative standard deviation of the Gaussian 
    2828  layer distance distribution $\sigma_D / \langle D \rangle$. 
    2929 
     
    115115              ["Nlayers", "", 20, [0, inf], "", 
    116116               "Number of layers"], 
    117               ["spacing", "Ang", 250., [0.0, inf], "", 
    118                "d-spacing of paracrystal stack"], 
    119               ["spacing_polydisp", "Ang", 0.0, [0.0, inf], "", 
    120                "d-spacing polydispersity"], 
     117              ["d_spacing", "Ang", 250., [0.0, inf], "", 
     118               "lamellar spacing of paracrystal stack"], 
     119              ["sigma_d", "Ang", 0.0, [0.0, inf], "", 
     120               "Sigma (polydispersity) of the lamellar spacing"], 
    121121              ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "sld", 
    122122               "layer scattering length density"], 
     
    136136 
    137137demo = dict(scale=1, background=0, 
    138             thickness=33, Nlayers=20, spacing=250, spacing_polydisp=0.2, 
     138            thickness=33, Nlayers=20, d_spacing=250, sigma_d=0.2, 
    139139            sld=1.0, sld_solvent=6.34, 
    140140            thickness_pd=0.2, thickness_pd_n=40) 
     
    143143tests = [ 
    144144    [{'scale': 1.0, 'background': 0.0, 'thickness': 33.,'Nlayers': 20.0, 
    145       'spacing': 250., 'spacing_polydisp': 0.2, 'sld': 1.0, 
     145      'd_spacing': 250., 'sigma_d': 0.2, 'sld': 1.0, 
    146146      'sld_solvent': 6.34, 'thickness_pd': 0.0, 'thickness_pd_n': 40 }, 
    147147     [0.001, 0.215268], [21829.3, 0.00487686]], 
Note: See TracChangeset for help on using the changeset viewer.