source: sasmodels/_sources/model/capped_cylinder.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: 4.5 KB
Line 
1.. _capped-cylinder:
2
3Capped cylinder
4=======================================================
5
6Right circular cylinder with spherical end caps and uniform SLD
7
8=========== ================================== ============ =============
9Parameter   Description                        Units        Default value
10=========== ================================== ============ =============
11scale       Source intensity                   None                     1
12background  Source background                  |cm^-1|                  0
13sld         Cylinder scattering length density |1e-6Ang^-2|             4
14solvent_sld Solvent scattering length density  |1e-6Ang^-2|             1
15radius      Cylinder radius                    |Ang|                   20
16cap_radius  Cap radius                         |Ang|                   20
17length      Cylinder length                    |Ang|                  400
18theta       In plane angle                     degree                  60
19phi         Out of plane angle                 degree                  60
20=========== ================================== ============ =============
21
22The returned value is scaled to units of |cm^-1|.
23
24
25Calculates the scattering from a cylinder with spherical section end-caps.
26This model simply becomes the a convex lens when the length of the cylinder
27$L=0$, that is, a sphereocylinder with end caps that have a radius larger
28than that of the cylinder and the center of the end cap radius lies within
29the cylinder. See the diagram for the details of the geometry and
30restrictions on parameter values.
31
32Definitions
33-----------
34
35The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
36
37The capped cylinder geometry is defined as
38
39.. image:: img/capped_cylinder_geometry.jpg
40
41where $r$ is the radius of the cylinder. All other parameters are as defined
42in the diagram. Since the end cap radius $R \ge r$ and by definition for this
43geometry $h < 0$, $h$ is then defined by $r$ and $R$ as
44
45.. math::
46
47    h = - \sqrt{R^2 - r^2}
48
49The scattered intensity $I(Q)$ is calculated as
50
51.. math::
52
53    I(Q) = \frac{(\Delta \rho)^2}{V} \left< A^2(Q)\right>
54
55where the amplitude $A(Q)$ is given as
56
57.. math::
58
59    A(Q) =&\ \pi r^2L
60        {\sin\left(\tfrac12 QL\cos\theta\right)
61            \over \tfrac12 QL\cos\theta}
62        {2 J_1(Qr\sin\theta) \over Qr\sin\theta} \\
63        &\ + 4 \pi R^3 \int_{-h/R}^1 dt
64        \cos\left[ Q\cos\theta
65            \left(Rt + h + {\tfrac12} L\right)\right]
66        \times (1-t^2)
67        {J_1\left[QR\sin\theta \left(1-t^2\right)^{1/2}\right]
68             \over QR\sin\theta \left(1-t^2\right)^{1/2}}
69
70The $\left< \ldots \right>$ brackets denote an average of the structure over
71all orientations. $\left< A^2(Q)\right>$ is then the form factor, $P(Q)$.
72The scale factor is equivalent to the volume fraction of cylinders, each of
73volume, $V$. Contrast is the difference of scattering length densities of
74the cylinder and the surrounding solvent.
75
76The volume of the capped cylinder is (with $h$ as a positive value here)
77
78.. math::
79
80    V = \pi r_c^2 L + \tfrac{2\pi}{3}(R-h)^2(2R + h)
81
82
83and its radius-of-gyration is
84
85.. math::
86
87    R_g^2 =&\ \left[ \tfrac{12}{5}R^5
88        + R^4\left(6h+\tfrac32 L\right)
89        + R^2\left(4h^2 + L^2 + 4Lh\right)
90        + R^2\left(3Lh^2 + \tfrac32 L^2h\right) \right. \\
91        &\ \left. + \tfrac25 h^5 - \tfrac12 Lh^4 - \tfrac12 L^2h^3
92        + \tfrac14 L^3r^2 + \tfrac32 Lr^4 \right]
93        \left( 4R^3 6R^2h - 2h^3 + 3r^2L \right)^{-1}
94
95
96.. note::
97
98    The requirement that $R \ge r$ is not enforced in the model!
99    It is up to you to restrict this during analysis.
100
101:num:`Figure #capped-cylinder-1d` shows the output produced by
102a running the 1D capped cylinder model, using *qmin* = 0.001 |Ang^-1|,
103*qmax* = 0.7 |Ang^-1| and  the default values of the parameters.
104
105.. _capped-cylinder-1d:
106
107.. figure:: img/capped_cylinder_1d.jpg
108
109    1D plot using the default values (w/256 data point).
110
111The 2D scattering intensity is calculated similar to the 2D cylinder model.
112:num:`Figure #capped-cylinder-2d` shows the output for $\theta=45^\circ$
113and $\phi=0^\circ$ with default values for the other parameters.
114
115.. _capped-cylinder-2d:
116
117.. figure:: img/capped_cylinder_2d.jpg
118
119    2D plot (w/(256X265) data points).
120
121.. figure:: img/orientation.jpg
122
123    Definition of the angles for oriented 2D cylinders.
124
125.. figure:: img/orientation2.jpg
126
127    Examples of the angles for oriented pp against the detector plane.
128
129REFERENCE
130
131H Kaya, *J. Appl. Cryst.*, 37 (2004) 223-230
132
133H Kaya and N-R deSouza, *J. Appl. Cryst.*, 37 (2004) 508-509 (addenda and errata)
134
Note: See TracBrowser for help on using the repository browser.