source: sasmodels/_sources/model/triaxial_ellipsoid.txt @ 68532f3

gh-pages
Last change on this file since 68532f3 was 68532f3, checked in by ajj, 8 years ago

Adding docs

  • Property mode set to 100644
File size: 3.9 KB
Line 
1.. _triaxial-ellipsoid:
2
3Triaxial ellipsoid
4=======================================================
5
6Ellipsoid of uniform scattering length density with three independent axes.
7
8=========== =================================== ============ =============
9Parameter   Description                         Units        Default value
10=========== =================================== ============ =============
11scale       Source intensity                    None                     1
12background  Source background                   |cm^-1|                  0
13sld         Ellipsoid scattering length density |1e-6Ang^-2|             4
14solvent_sld Solvent scattering length density   |1e-6Ang^-2|             1
15req_minor   Minor equitorial radius             |Ang|                   20
16req_major   Major equatorial radius             |Ang|                  400
17rpolar      Polar radius                        |Ang|                   10
18theta       In plane angle                      degree                  60
19phi         Out of plane angle                  degree                  60
20psi         Out of plane angle                  degree                  60
21=========== =================================== ============ =============
22
23The returned value is scaled to units of |cm^-1|.
24
25
26All three axes are of different lengths with $R_a \le R_b <= R_c$
27**Users should maintain this inequality for all calculations**.
28
29.. math::
30
31    P(Q) = \text{scale} V \left< F^2(Q) \right> + \text{background}
32
33where the volume $V = 4/3 \pi R_a R_b R_c$, and the averaging
34$\left< \cdots \right>$ is applied over all orientations for 1D.
35
36.. figure:: img/triaxial_ellipsoid_geometry.jpg
37
38    Ellipsoid schematic.
39
40The returned value is in units of |cm^-1|, on absolute scale.
41
42Definition
43----------
44
45The form factor calculated is
46
47.. math::
48
49    P(Q) = \frac{\text{scale}}{V}\int_0^1\int_0^1
50        \Phi^2(QR_a^2\cos^2( \pi x/2) + QR_b^2\sin^2(\pi y/2)(1-y^2) + c^2y^2)
51        dx dy
52
53where
54
55.. math::
56
57    \Phi(u) = 3 u^{-3} (\sin u - u \cos u)
58
59To provide easy access to the orientation of the triaxial ellipsoid,
60we define the axis of the cylinder using the angles $\theta$, $\phi$
61and $\psi$. These angles are defined on
62:num:`figure #triaxial-ellipsoid-angles`.
63The angle $\psi$ is the rotational angle around its own $c$ axis
64against the $Q$ plane. For example, $\psi = 0$ when the
65$a$ axis is parallel to the $x$ axis of the detector.
66
67.. _triaxial-ellipsoid-angles:
68
69.. figure:: img/triaxial_ellipsoid_angles.jpg
70
71    The angles for oriented ellipsoid.
72
73The radius-of-gyration for this system is  $R_g^2 = (R_a R_b R_c)^2/5$.
74
75The contrast is defined as SLD(ellipsoid) - SLD(solvent).  In the
76parameters, *a* is the minor equatorial radius, *b* is the major
77equatorial radius, and c is the polar radius of the ellipsoid.
78
79NB: The 2nd virial coefficient of the triaxial solid ellipsoid is
80calculated based on the polar radius $R_p = R_c$ and equatorial
81radius $R_e = \sqrt{R_a R_b}$, and used as the effective radius for
82$S(Q)$ when $P(Q) \cdot S(Q)$ is applied.
83
84.. figure:: img/triaxial_ellipsoid_1d.jpg
85
86    1D plot using the default values (w/1000 data point).
87
88Validation
89----------
90
91Validation of our code was done by comparing the output of the
921D calculation to the angular average of the output of 2D calculation
93over all possible angles.
94:num:`Figure #triaxial-ellipsoid-comparison` shows the comparison where
95the solid dot refers to averaged 2D while the line represents the
96result of 1D calculation (for 2D averaging, 76, 180, and 76 points
97are taken for the angles of $\theta$, $\phi$, and $\psi$ respectively).
98
99.. _triaxial-ellipsoid-comparison:
100
101.. figure:: img/triaxial_ellipsoid_comparison.png
102
103    Comparison between 1D and averaged 2D.
104
105Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
106(Kline, 2006)
107
108REFERENCE
109
110L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum,
111New York, 1987.
112
Note: See TracBrowser for help on using the repository browser.