Changeset d57b06c in sasmodels for sasmodels/models/spherical_sld.py


Ignore:
Timestamp:
Mar 30, 2019 4:06:15 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master
Children:
be0942c
Parents:
a42b091 (diff), e15a822 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into ticket-1263-source-link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/spherical_sld.py

    rc1e44e5 rd57b06c  
    1818sub-shell is described by a line function, with *n_steps* sub-shells per 
    1919interface. The form factor is normalized by the total volume of the sphere. 
     20 
     21.. note:: 
     22 
     23   *n_shells* must be an integer. *n_steps* must be an ODD integer. 
    2024 
    2125Interface shapes are as follows: 
     
    7377    3 \rho_\text{solvent} V(r_N) 
    7478    \Big[ \frac{\sin(qr_N) - qr_N \cos(qr_N)} {qr_N^3} \Big] 
    75  
    7679 
    7780Here we assumed that the SLDs of the core and solvent are constant in $r$. 
     
    156159    \end{align*} 
    157160 
    158  
    159161We assume $\rho_{\text{inter}_j} (r)$ is approximately linear 
    160162within the sub-shell $j$. 
     
    179181    when $P(Q) * S(Q)$ is applied. 
    180182 
    181  
    182183References 
    183184---------- 
     
    187188 
    188189Authorship and Verification 
    189 ---------------------------- 
     190--------------------------- 
    190191 
    191192* **Author:** Jae-Hie Cho **Date:** Nov 1, 2010 
    192193* **Last Modified by:** Paul Kienzle **Date:** Dec 20, 2016 
    193 * **Last Reviewed by:** Paul Butler **Date:** September 8, 2018 
     194* **Last Reviewed by:** Steve King **Date:** March 29, 2019 
    194195""" 
    195196 
     
    199200 
    200201name = "spherical_sld" 
    201 title = "Sperical SLD intensity calculation" 
     202title = "Spherical SLD intensity calculation" 
    202203description = """ 
    203204            I(q) = 
     
    211212# pylint: disable=bad-whitespace, line-too-long 
    212213#            ["name", "units", default, [lower, upper], "type", "description"], 
    213 parameters = [["n_shells",             "",           1,      [1, 10],        "volume", "number of shells"], 
     214parameters = [["n_shells",             "",           1,      [1, 10],        "volume", "number of shells (must be integer)"], 
    214215              ["sld_solvent",          "1e-6/Ang^2", 1.0,    [-inf, inf],    "sld", "solvent sld"], 
    215216              ["sld[n_shells]",        "1e-6/Ang^2", 4.06,   [-inf, inf],    "sld", "sld of the shell"], 
     
    224225single = False  # TODO: fix low q behaviour 
    225226have_Fq = True 
    226 effective_radius_type = ["outer radius"] 
     227radius_effective_modes = ["outer radius"] 
    227228 
    228229profile_axes = ['Radius (A)', 'SLD (1e-6/A^2)'] 
Note: See TracChangeset for help on using the changeset viewer.