Changeset 693570c in sasmodels
- Timestamp:
- Mar 21, 2016 7:18:58 PM (9 years ago)
- 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:
- e664a11
- Parents:
- c6652bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/pringle.py
raf4da90 r693570c 1 1 r""" 2 This model provides the form factor, $P(q)$, for a 'pringle' or 'saddle-shaped'3 object (a hyperbolic paraboloid).4 5 .. figure:: img/pringles_fig1.png6 7 (Graphic from Matt Henderson, matt@matthen.com)8 9 The returned value is in units of cm^-1, on absolute scale.10 11 2 Definition 12 3 ---------- 13 4 14 The form factor calculated is 5 The form factor for this bent disc is essentially that of a hyperbolic 6 paraboloid and calculated as 15 7 16 8 .. math:: 17 9 18 I(q) = (\Delta \rho )^2 V \int^{\pi/2}_0 d\psi \sin{\psi} sinc^210 P(q) = (\Delta \rho )^2 V \int^{\pi/2}_0 d\psi \sin{\psi} sinc^2 19 11 \left( \frac{qd\cos{\psi}}{2} \right) 20 12 \left[ \left( S^2_0+C^2_0\right) + 2\sum_{n=1}^{\infty} 21 \left( S^2_ 0+C^2_0\right) \right]13 \left( S^2_n+C^2_n\right) \right] 22 14 23 15 where … … 25 17 .. math:: 26 18 27 C_n = \int^{R}_{0} r dr\cos {qr^2\alpha \cos{\psi}}19 C_n = \int^{R}_{0} r dr\cos(qr^2\alpha \cos{\psi}) 28 20 J_n\left( qr^2\beta \cos{\psi}\right) 29 21 J_{2n}\left( qr \sin{\psi}\right) … … 31 23 .. math:: 32 24 33 S_n = \int^{R}_{0} r dr\sin {qr^2\alpha \cos{\psi}}25 S_n = \int^{R}_{0} r dr\sin(qr^2\alpha \cos{\psi}) 34 26 J_n\left( qr^2\beta \cos{\psi}\right) 35 27 J_{2n}\left( qr \sin{\psi}\right) 36 28 29 and $\Delta \rho \text{ is } \rho_{pringle}-\rho_{solvent}$, $V$ is the volume of 30 the disc, $\psi$ is the angle between the normal to the disc and the q vector, 31 $d$ and $R$ are the "pringle" thickness and radius respectively, $\alpha$ and 32 $\beta$ are the two curvature parameters, and $J_n$ is the n\ :sup:`th` order 33 Bessel function of the first kind. 37 34 38 .. figure:: img/pringle -vs-cylinder.png35 .. figure:: img/pringles_fig1.png 39 36 40 1D plot using the default values (with 150 data points).37 Schematic of model shape (Graphic from Matt Henderson, matt@matthen.com) 41 38 42 39 Reference 43 40 --------- 44 41 45 Stefan Alexandru Rautu, Private Communication. 2012. 46 As of 2016: stefanar@ncbs.res.in 42 Karen Edler, Universtiy of Bath, Private Communication. 2012. 43 Derivation by Stefan Alexandru Rautu. 44 45 **Author:** Andrew Jackson **on:** 2008 46 47 **Last Modified by:** Wojciech Wpotrzebowski **on:** March 20, 2016 48 49 **Last Reviewed by:** Paul Butler **on:** March 21, 2016 47 50 48 51 """ … … 50 53 from numpy import inf, pi 51 54 52 name = "pringles" 53 title = "Pringles model for K Edler. Represents a disc that is bent in two directions." 55 name = "pringle" 56 title = "The Pringle model provides the form factor, $P(q)$, for a 'pringle' \ 57 or 'saddle-shaped' disc that is bent in two directions." 54 58 description = """\ 55 59
Note: See TracChangeset
for help on using the changeset viewer.