Changeset d57b06c in sasmodels for sasmodels/models/spherical_sld.py
- Timestamp:
- Mar 30, 2019 4:06:15 PM (5 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/spherical_sld.py
rc1e44e5 rd57b06c 18 18 sub-shell is described by a line function, with *n_steps* sub-shells per 19 19 interface. 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. 20 24 21 25 Interface shapes are as follows: … … 73 77 3 \rho_\text{solvent} V(r_N) 74 78 \Big[ \frac{\sin(qr_N) - qr_N \cos(qr_N)} {qr_N^3} \Big] 75 76 79 77 80 Here we assumed that the SLDs of the core and solvent are constant in $r$. … … 156 159 \end{align*} 157 160 158 159 161 We assume $\rho_{\text{inter}_j} (r)$ is approximately linear 160 162 within the sub-shell $j$. … … 179 181 when $P(Q) * S(Q)$ is applied. 180 182 181 182 183 References 183 184 ---------- … … 187 188 188 189 Authorship and Verification 189 --------------------------- -190 --------------------------- 190 191 191 192 * **Author:** Jae-Hie Cho **Date:** Nov 1, 2010 192 193 * **Last Modified by:** Paul Kienzle **Date:** Dec 20, 2016 193 * **Last Reviewed by:** Paul Butler **Date:** September 8, 2018194 * **Last Reviewed by:** Steve King **Date:** March 29, 2019 194 195 """ 195 196 … … 199 200 200 201 name = "spherical_sld" 201 title = "Sp erical SLD intensity calculation"202 title = "Spherical SLD intensity calculation" 202 203 description = """ 203 204 I(q) = … … 211 212 # pylint: disable=bad-whitespace, line-too-long 212 213 # ["name", "units", default, [lower, upper], "type", "description"], 213 parameters = [["n_shells", "", 1, [1, 10], "volume", "number of shells "],214 parameters = [["n_shells", "", 1, [1, 10], "volume", "number of shells (must be integer)"], 214 215 ["sld_solvent", "1e-6/Ang^2", 1.0, [-inf, inf], "sld", "solvent sld"], 215 216 ["sld[n_shells]", "1e-6/Ang^2", 4.06, [-inf, inf], "sld", "sld of the shell"], … … 224 225 single = False # TODO: fix low q behaviour 225 226 have_Fq = True 226 effective_radius_type= ["outer radius"]227 radius_effective_modes = ["outer radius"] 227 228 228 229 profile_axes = ['Radius (A)', 'SLD (1e-6/A^2)']
Note: See TracChangeset
for help on using the changeset viewer.