Changeset c612162 in sasmodels
- Timestamp:
- Feb 17, 2016 11:54:00 AM (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:
- b7c2fce
- Parents:
- a8b3cdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/elliptical_cylinder.py
ra8b3cdb rc612162 1 # pylint: disable=line-too-long 1 2 r""" 2 3 This function calculates the scattering from an elliptical cylinder. … … 95 96 title = "Form factor for an elliptical cylinder." 96 97 description = """ 97 F^2(q) = The function calculated is 98 99 .. math:: 100 I(\mathbf{q})=\frac{1}{V_{cyl}}\int{d\psi}\int{d\phi}\int{p(\theta,\phi,\psi)F^2(\mathbf{q},\alpha,\psi)\sin(\theta)d\theta} 101 102 with the functions 103 104 .. math:: 105 F(\mathbf{q},\alpha,\psi)=2\frac{J_1(a)\sin(b)}{ab} 106 \\ 107 a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2} 108 \\ 109 b=\mathbf{q}\frac{L}{2}\cos(\alpha) 110 111 In 1D we have 112 113 .. math:: 114 P(q) = scale <F^2> / V 98 Form factor for an elliptical cylinder. 99 See L A Feigin and D I Svergun, Structure Analysis by Small-Angle X-Ray and Neutron Scattering, Plenum, New York, (1987). 115 100 """ 116 101 category = "shape:cylinder" … … 144 129 @param length: Length of the cylinder 145 130 """ 146 r = math.sqrt(r_minor * r_minor * r_ratio 131 r = math.sqrt(r_minor * r_minor * r_ratio) 147 132 ddd = 0.75 * r * (2 * r * length + (length + r) * (length + pi * r)) 148 133 return 0.5 * (ddd) ** (1. / 3.)
Note: See TracChangeset
for help on using the changeset viewer.