Changes in sasmodels/models/fcc_paracrystal.py [925ad6e:69e1afc] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fcc_paracrystal.py
r925ad6e r69e1afc 76 76 2D model computation. 77 77 78 .. figure:: img/ bcc_angle_definition.png78 .. figure:: img/parallelepiped_angle_definition.png 79 79 80 Orientation of the crystal with respect to the scattering plane. 80 Orientation of the crystal with respect to the scattering plane, when 81 $\theta = \phi = 0$ the $c$ axis is along the beam direction (the $z$ axis). 81 82 82 83 References … … 90 91 """ 91 92 92 from numpy import inf 93 from numpy import inf, pi 93 94 94 95 name = "fcc_paracrystal" … … 110 111 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 111 112 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 112 ["theta", "degrees", 60, [-inf, inf], "orientation", "In planeangle"],113 ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"],114 ["psi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"]113 ["theta", "degrees", 60, [-360, 360], "orientation", "c axis to beam angle"], 114 ["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"], 115 ["psi", "degrees", 60, [-360, 360], "orientation", "rotation about c axis"] 115 116 ] 116 117 # pylint: enable=bad-whitespace, line-too-long … … 128 129 psi_pd=15, psi_pd_n=0, 129 130 ) 131 # april 10 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 132 q =4.*pi/220. 133 tests = [ 134 [{ }, 135 [0.001, q, 0.215268], [0.275164706668, 5.7776842567, 0.00958167119232]], 136 [{}, (-0.047,-0.007), 238.103096286], 137 [{}, (0.053,0.063), 0.863609587796 ], 138 ]
Note: See TracChangeset
for help on using the changeset viewer.