Changeset 15a90c1 in sasmodels
- Timestamp:
- Apr 6, 2017 1:20:47 PM (8 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:
- 14207bb
- Parents:
- 4aaf89a
- Location:
- sasmodels/models
- Files:
-
- 6 added
- 5 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_bicelle_elliptical.py
r3b9a526 r15a90c1 80 80 81 81 82 .. figure:: img/elliptical_cylinder_angle_definition. jpg82 .. figure:: img/elliptical_cylinder_angle_definition.png 83 83 84 Definition of the angles for the oriented core_shell_bicelle_elliptical model.85 Note that *theta* and *phi* are currently defined differently to those for the core_shell_bicelle model. 84 Definition of the angles for the oriented core_shell_bicelle_elliptical particles. 85 86 86 87 87 -
sasmodels/models/core_shell_parallelepiped.py
r933af72 r15a90c1 33 33 $(=t_C)$ faces. The projection in the $AB$ plane is then 34 34 35 .. image:: img/core_shell_parallelepiped_projection. jpg35 .. image:: img/core_shell_parallelepiped_projection.png 36 36 37 37 The volume of the solid is … … 80 80 NB: The 2nd virial coefficient of the core_shell_parallelepiped is calculated 81 81 based on the the averaged effective radius $(=\sqrt{(A+2t_A)(B+2t_B)/\pi})$ 82 and length $(C+2t_C)$ values, and used as the effective radius 83 for $S(Q)$ when $P(Q) * S(Q)$ is applied. 82 and length $(C+2t_C)$ values, after appropriately 83 sorting the three dimensions to give an oblate or prolate particle, to give an 84 effective radius, for $S(Q)$ when $P(Q) * S(Q)$ is applied. 84 85 85 86 To provide easy access to the orientation of the parallelepiped, we define the … … 90 91 *x*-axis of the detector. 91 92 92 .. figure:: img/parallelepiped_angle_definition. jpg93 .. figure:: img/parallelepiped_angle_definition.png 93 94 94 95 Definition of the angles for oriented core-shell parallelepipeds. -
sasmodels/models/cylinder.py
rb7e8b94 r15a90c1 64 64 65 65 Definition of the angles for oriented cylinders. 66 67 .. figure:: img/cylinder_angle_projection.png 68 69 Examples for oriented cylinders. 66 70 67 71 The $\theta$ and $\phi$ parameters only appear in the model when fitting 2d data. -
sasmodels/models/elliptical_cylinder.py
rfcb33e4 r15a90c1 64 64 oriented system. 65 65 66 .. figure:: img/elliptical_cylinder_angle_definition. jpg66 .. figure:: img/elliptical_cylinder_angle_definition.png 67 67 68 Definition of angles for 2D 68 Definition of angles for oriented elliptical cylinder, where axis_ratio >1, 69 and angle $\Psi$ is a rotation around the axis of the cylinder. 69 70 70 .. figure:: img/ cylinder_angle_projection.jpg71 .. figure:: img/elliptical_cylinder_angle_projection.png 71 72 72 73 Examples of the angles for oriented elliptical cylinders against the 73 detector plane .74 detector plane, with $\Psi$ = 0. 74 75 75 76 NB: The 2nd virial coefficient of the cylinder is calculated based on the -
sasmodels/models/parallelepiped.py
r4aaf89a r15a90c1 21 21 .. note:: 22 22 23 The edge of the solid mustsatisfy the condition that $A < B < C$.24 This requirement is not enforced in the model, so it is up to the25 user to check this during the analysis.23 The edge of the solid used to have to satisfy the condition that $A < B < C$. 24 After some improvements to the effective radius calculation, used with an S(Q), 25 it is beleived that this is no longer the case. 26 26 27 27 The 1D scattering intensity $I(q)$ is calculated as: … … 71 71 72 72 NB: The 2nd virial coefficient of the parallelepiped is calculated based on 73 the averaged effective radius $(=\sqrt{A B / \pi})$ and 73 the averaged effective radius, after appropriately 74 sorting the three dimensions, to give an oblate or prolate particle, $(=\sqrt{A B / \pi})$ and 74 75 length $(= C)$ values, and used as the effective radius for 75 76 $S(q)$ when $P(q) \cdot S(q)$ is applied. … … 102 103 .. _parallelepiped-orientation: 103 104 104 .. figure:: img/parallelepiped_angle_definition. jpg105 106 Definition of the angles for oriented parallelepiped s.107 108 .. figure:: img/parallelepiped_angle_projection. jpg109 110 Examples of the angles for oriented parallelepipedsagainst the105 .. figure:: img/parallelepiped_angle_definition.png 106 107 Definition of the angles for oriented parallelepiped, shown with $A < B < C$. 108 109 .. figure:: img/parallelepiped_angle_projection.png 110 111 Examples of the angles for an oriented parallelepiped against the 111 112 detector plane. 112 113 … … 116 117 .. math:: 117 118 118 P(q_x, q_y) = \left[\frac{\sin( qA\cos\alpha/2)}{(qA\cos\alpha/2)}\right]^2119 \left[\frac{\sin( qB\cos\beta/2)}{(qB\cos\beta/2)}\right]^2120 \left[\frac{\sin( qC\cos\gamma/2)}{(qC\cos\gamma/2)}\right]^2119 P(q_x, q_y) = \left[\frac{\sin(\tfrac{1}{2}qA\cos\alpha)}{(\tfrac{1}{2}qA\cos\alpha)}\right]^2 120 \left[\frac{\sin(\tfrac{1}{2}qB\cos\beta)}{(\tfrac{1}{2}qB\cos\beta)}\right]^2 121 \left[\frac{\sin(\tfrac{1}{2}qC\cos\gamma)}{(\tfrac{1}{2}qC\cos\gamma)}\right]^2 121 122 122 123 with … … 154 155 angles. 155 156 156 This model is based on form factor calculations implemented in a c-library157 provided by the NIST Center for Neutron Research (Kline, 2006).158 157 159 158 References … … 163 162 164 163 R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 164 165 Authorship and Verification 166 ---------------------------- 167 168 * **Author:** This model is based on form factor calculations implemented in a c-library 169 provided by the NIST Center for Neutron Research (Kline, 2006). 170 * **Last Modified by:** Paul Kienzle **Date:** April 05, 2017 171 * **Last Reviewed by:** Richard Heenan **Date:** April 06, 2017 172 165 173 """ 166 174 -
sasmodels/models/triaxial_ellipsoid.py
r4aaf89a r15a90c1 65 65 To provide easy access to the orientation of the triaxial ellipsoid, 66 66 we define the axis of the cylinder using the angles $\theta$, $\phi$ 67 and $\psi$. These angles are defined on 68 :numref:`triaxial-ellipsoid-angles` . 67 and $\psi$. These angles are defined analogously to the elliptical_cylinder below 68 69 .. figure:: img/elliptical_cylinder_angle_definition.png 70 71 Definition of angles for oriented triaxial ellipsoid, where radii shown here are $a < b << c$ 72 and angle $\Psi$ is a rotation around the axis of the particle. 73 69 74 The angle $\psi$ is the rotational angle around its own $c$ axis 70 75 against the $q$ plane. For example, $\psi = 0$ when the … … 73 78 .. _triaxial-ellipsoid-angles: 74 79 75 .. figure:: img/triaxial_ellipsoid_angle_projection. jpg80 .. figure:: img/triaxial_ellipsoid_angle_projection.png 76 81 77 The angles for oriented ellipsoid.82 Some example angles for oriented ellipsoid. 78 83 79 84 The radius-of-gyration for this system is $R_g^2 = (R_a R_b R_c)^2/5$. … … 81 86 The contrast $\Delta\rho$ is defined as SLD(ellipsoid) - SLD(solvent). In the 82 87 parameters, $R_a$ is the minor equatorial radius, $R_b$ is the major 83 equatorial radius, and $R_c$ is the polar radius of the ellipsoid. 88 equatorial radius, and $R_c$ is the polar radius of the ellipsoid. 84 89 85 90 NB: The 2nd virial coefficient of the triaxial solid ellipsoid is
Note: See TracChangeset
for help on using the changeset viewer.