Changeset 14207bb in sasmodels for sasmodels/models/core_shell_parallelepiped.py
- Timestamp:
- Apr 7, 2017 2:57:41 AM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 1916c52
- Parents:
- 15a90c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_parallelepiped.py
r15a90c1 r14207bb 51 51 52 52 F_{a}(Q,\alpha,\beta)= 53 \left[\frac{\ sin(Q(L_A+2t_A)/2\sin\alpha \sin\beta)}{Q(L_A+2t_A)/2\sin\alpha\sin\beta}54 - \frac{\sin( QL_A/2\sin\alpha \sin\beta)}{QL_A/2\sin\alpha \sin\beta} \right]55 \left[\frac{\sin( QL_B/2\sin\alpha \sin\beta)}{QL_B/2\sin\alpha \sin\beta} \right]56 \left[\frac{\sin( QL_C/2\sin\alpha \sin\beta)}{QL_C/2\sin\alpha \sin\beta} \right]53 \left[\frac{\tfrac{1}{2}\sin(Q(L_A+2t_A)\sin\alpha \sin\beta)}{\tfrac{1}{2}Q(L_A+2t_A)\sin\alpha\sin\beta} 54 - \frac{\sin(\tfrac{1}{2}QL_A\sin\alpha \sin\beta)}{\tfrac{1}{2}QL_A\sin\alpha \sin\beta} \right] 55 \left[\frac{\sin(\tfrac{1}{2}QL_B\sin\alpha \sin\beta)}{\tfrac{1}{2}QL_B\sin\alpha \sin\beta} \right] 56 \left[\frac{\sin(\tfrac{1}{2}QL_C\sin\alpha \sin\beta)}{\tfrac{1}{2}QL_C\sin\alpha \sin\beta} \right] 57 57 58 58 .. note:: … … 120 120 121 121 import numpy as np 122 from numpy import pi, inf, sqrt 122 from numpy import pi, inf, sqrt, cos, sin 123 123 124 124 name = "core_shell_parallelepiped" … … 194 194 psi_pd=10, psi_pd_n=1) 195 195 196 qx, qy = 0.2 * np.cos(2.5), 0.2 * np.sin(2.5) 196 # rkh 7/4/17 add random unit test for 2d, note make all params different, 2d values not tested against other codes or models 197 qx, qy = 0.2 * cos(pi/6.), 0.2 * sin(pi/6.) 197 198 tests = [[{}, 0.2, 0.533149288477], 198 199 [{}, [0.2], [0.533149288477]], 199 [{'theta':10.0, 'phi': 10.0}, (qx, qy), 0.032102135569],200 [{'theta':10.0, 'phi': 10.0}, [(qx, qy)], [0.032102135569]],200 [{'theta':10.0, 'phi':20.0}, (qx, qy), 0.0853299803222], 201 [{'theta':10.0, 'phi':20.0}, [(qx, qy)], [0.0853299803222]], 201 202 ] 202 203 del qx, qy # not necessary to delete, but cleaner
Note: See TracChangeset
for help on using the changeset viewer.