source: sasmodels/_sources/model/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: 5.0 KB
Line 
1.. _ellipsoid:
2
3Ellipsoid
4=======================================================
5
6Ellipsoid of revolution with uniform scattering length density.
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
15rpolar      Polar radius                        |Ang|                   20
16requatorial Equatorial radius                   |Ang|                  400
17theta       In plane angle                      degree                  60
18phi         Out of plane angle                  degree                  60
19=========== =================================== ============ =============
20
21The returned value is scaled to units of |cm^-1|.
22
23
24The form factor is normalized by the particle volume.
25
26Definition
27----------
28
29The output of the 2D scattering intensity function for oriented ellipsoids
30is given by (Feigin, 1987)
31
32.. math::
33
34    P(Q,\alpha) = {\text{scale} \over V} F^2(Q) + \text{background}
35
36where
37
38.. math::
39
40    F(Q) = {3 (\Delta rho)) V (\sin[Qr(R_p,R_e,\alpha)]
41                - \cos[Qr(R_p,R_e,\alpha)])
42            \over [Qr(R_p,R_e,\alpha)]^3 }
43
44and
45
46.. math::
47
48    r(R_p,R_e,\alpha) = \left[ R_e^2 \sin^2 \alpha
49        + R_p^2 \cos^2 \alpha \right]^{1/2}
50
51
52$\alpha$ is the angle between the axis of the ellipsoid and $\vec q$,
53$V$ is the volume of the ellipsoid, $R_p$ is the polar radius along the
54rotational axis of the ellipsoid, $R_e$ is the equatorial radius perpendicular
55to the rotational axis of the ellipsoid and $\Delta \rho$ (contrast) is the
56scattering length density difference between the scatterer and the solvent.
57
58To provide easy access to the orientation of the ellipsoid, we define
59the rotation axis of the ellipsoid using two angles $\theta$ and $\phi$.
60These angles are defined in the
61:ref:`cylinder orientation figure <cylinder-orientation>`.
62For the ellipsoid, $\theta$ is the angle between the rotational axis
63and the $z$-axis.
64
65NB: The 2nd virial coefficient of the solid ellipsoid is calculated based
66on the $R_p$ and $R_e$ values, and used as the effective radius for
67$S(Q)$ when $P(Q) \cdot S(Q)$ is applied.
68
69.. _ellipsoid-1d:
70
71.. figure:: img/ellipsoid_1d.JPG
72
73    The output of the 1D scattering intensity function for randomly oriented
74    ellipsoids given by the equation above.
75
76
77The $\theta$ and $\phi$ parameters are not used for the 1D output. Our
78implementation of the scattering kernel and the 1D scattering intensity
79use the c-library from NIST.
80
81.. _ellipsoid-geometry:
82
83.. figure:: img/ellipsoid_geometry.JPG
84
85    The angles for oriented ellipsoid.
86
87Validation
88----------
89
90Validation of our code was done by comparing the output of the 1D model
91to the output of the software provided by the NIST (Kline, 2006).
92:num:`Figure ellipsoid-comparison-1d` below shows a comparison of
93the 1D output of our model and the output of the NIST software.
94
95.. _ellipsoid-comparison-1d:
96
97.. figure:: img/ellipsoid_comparison_1d.jpg
98
99    Comparison of the SasView scattering intensity for an ellipsoid
100    with the output of the NIST SANS analysis software.  The parameters
101    were set to: *scale* = 1.0, *rpolar* = 20 |Ang|,
102    *requatorial* =400 |Ang|, *contrast* = 3e-6 |Ang^-2|,
103    and *background* = 0.01 |cm^-1|.
104
105Averaging over a distribution of orientation is done by evaluating the
106equation above. Since we have no other software to compare the
107implementation of the intensity for fully oriented ellipsoids, we can
108compare the result of averaging our 2D output using a uniform distribution
109$p(\theta,\phi) = 1.0$.  :num:`Figure #ellipsoid-comparison-2d`
110shows the result of such a cross-check.
111
112.. _ellipsoid-comparison-2d:
113
114.. figure:: img/ellipsoid_comparison_2d.jpg
115
116    Comparison of the intensity for uniformly distributed ellipsoids
117    calculated from our 2D model and the intensity from the NIST SANS
118    analysis software. The parameters used were: *scale* = 1.0,
119    *rpolar* = 20 |Ang|, *requatorial* = 400 |Ang|,
120    *contrast* = 3e-6 |Ang^-2|, and *background* = 0.0 |cm^-1|.
121
122The discrepancy above *q* = 0.3 |cm^-1| is due to the way the form factors
123are calculated in the c-library provided by NIST. A numerical integration
124has to be performed to obtain $P(Q)$ for randomly oriented particles.
125The NIST software performs that integration with a 76-point Gaussian
126quadrature rule, which will become imprecise at high $Q$ where the amplitude
127varies quickly as a function of $Q$. The SasView result shown has been
128obtained by summing over 501 equidistant points. Our result was found
129to be stable over the range of $Q$ shown for a number of points higher
130than 500.
131
132REFERENCE
133
134L A Feigin and D I Svergun. *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum,
135New York, 1987.
136
Note: See TracBrowser for help on using the repository browser.