source: sasmodels/model/capped_cylinder.html @ 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: 8.9 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4
5<html xmlns="http://www.w3.org/1999/xhtml">
6  <head>
7    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8   
9    <title>2.1.1.2. Capped cylinder &mdash; Sasmodels</title>
10   
11    <link rel="stylesheet" href="../_static/haiku-site.css" type="text/css" />
12    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13   
14    <script type="text/javascript">
15      var DOCUMENTATION_OPTIONS = {
16        URL_ROOT:    '../',
17        VERSION:     '0.9',
18        COLLAPSE_INDEX: false,
19        FILE_SUFFIX: '.html',
20        HAS_SOURCE:  true
21      };
22    </script>
23    <script type="text/javascript" src="../_static/jquery.js"></script>
24    <script type="text/javascript" src="../_static/underscore.js"></script>
25    <script type="text/javascript" src="../_static/doctools.js"></script>
26    <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
27    <link rel="top" title="Sasmodels" href="../index.html" />
28    <link rel="up" title="2.1.1. Cylinder Functions" href="../ref/models/shape-cylinder.html" />
29    <link rel="next" title="2.1.1.3. Core shell cylinder" href="core_shell_cylinder.html" />
30    <link rel="prev" title="2.1.1.1. Barbell" href="barbell.html" /> 
31  </head>
32  <body>
33      <div class="header"><h1 class="heading"><a href="../index.html">
34          <span>Home</span></a></h1>
35        <h2 class="heading"><span>2.1.1.2. Capped cylinder</span></h2>
36      </div>
37      <div class="topnav">
38     
39        <p>
40        «&#160;&#160;<a href="barbell.html">2.1.1.1. Barbell</a>
41        &#160;&#160;::&#160;&#160;
42        <a class="uplink" href="../index.html">Contents</a>
43        &#160;&#160;::&#160;&#160;
44        <a href="core_shell_cylinder.html">2.1.1.3. Core shell cylinder</a>&#160;&#160;»
45        </p>
46
47      </div>
48      <div class="content">
49       
50       
51  <div class="section" id="capped-cylinder">
52<span id="id1"></span><h1>2.1.1.2. Capped cylinder<a class="headerlink" href="#capped-cylinder" title="Permalink to this headline">¶</a></h1>
53<p>Right circular cylinder with spherical end caps and uniform SLD</p>
54<table border="1" class="docutils">
55<colgroup>
56<col width="16%" />
57<col width="49%" />
58<col width="17%" />
59<col width="19%" />
60</colgroup>
61<thead valign="bottom">
62<tr class="row-odd"><th class="head">Parameter</th>
63<th class="head">Description</th>
64<th class="head">Units</th>
65<th class="head">Default value</th>
66</tr>
67</thead>
68<tbody valign="top">
69<tr class="row-even"><td>scale</td>
70<td>Source intensity</td>
71<td>None</td>
72<td>1</td>
73</tr>
74<tr class="row-odd"><td>background</td>
75<td>Source background</td>
76<td>cm<sup>-1</sup></td>
77<td>0</td>
78</tr>
79<tr class="row-even"><td>sld</td>
80<td>Cylinder scattering length density</td>
81<td>10<sup>-6</sup>Å<sup>-2</sup></td>
82<td>4</td>
83</tr>
84<tr class="row-odd"><td>solvent_sld</td>
85<td>Solvent scattering length density</td>
86<td>10<sup>-6</sup>Å<sup>-2</sup></td>
87<td>1</td>
88</tr>
89<tr class="row-even"><td>radius</td>
90<td>Cylinder radius</td>
91<td>Å</td>
92<td>20</td>
93</tr>
94<tr class="row-odd"><td>cap_radius</td>
95<td>Cap radius</td>
96<td>Å</td>
97<td>20</td>
98</tr>
99<tr class="row-even"><td>length</td>
100<td>Cylinder length</td>
101<td>Å</td>
102<td>400</td>
103</tr>
104<tr class="row-odd"><td>theta</td>
105<td>In plane angle</td>
106<td>degree</td>
107<td>60</td>
108</tr>
109<tr class="row-even"><td>phi</td>
110<td>Out of plane angle</td>
111<td>degree</td>
112<td>60</td>
113</tr>
114</tbody>
115</table>
116<p>The returned value is scaled to units of cm<sup>-1</sup>.</p>
117<p>Calculates the scattering from a cylinder with spherical section end-caps.
118This model simply becomes the a convex lens when the length of the cylinder
119<span class="math">\(L=0\)</span>, that is, a sphereocylinder with end caps that have a radius larger
120than that of the cylinder and the center of the end cap radius lies within
121the cylinder. See the diagram for the details of the geometry and
122restrictions on parameter values.</p>
123<div class="section" id="definitions">
124<h2>Definitions<a class="headerlink" href="#definitions" title="Permalink to this headline">¶</a></h2>
125<p>The returned value is scaled to units of cm<sup>-1</sup>sr<sup>-1</sup>, absolute scale.</p>
126<p>The capped cylinder geometry is defined as</p>
127<img alt="../_images/capped_cylinder_geometry.jpg" src="../_images/capped_cylinder_geometry.jpg" />
128<p>where <span class="math">\(r\)</span> is the radius of the cylinder. All other parameters are as defined
129in the diagram. Since the end cap radius <span class="math">\(R \ge r\)</span> and by definition for this
130geometry <span class="math">\(h &lt; 0\)</span>, <span class="math">\(h\)</span> is then defined by <span class="math">\(r\)</span> and <span class="math">\(R\)</span> as</p>
131<div class="math">
132\[h = - \sqrt{R^2 - r^2}\]</div>
133<p>The scattered intensity <span class="math">\(I(Q)\)</span> is calculated as</p>
134<div class="math">
135\[\begin{split}I(Q) = \frac{(\Delta \rho)^2}{V} \left&lt; A^2(Q)\right&gt;\end{split}\]</div>
136<p>where the amplitude <span class="math">\(A(Q)\)</span> is given as</p>
137<div class="math">
138\[\begin{split}A(Q) =&amp;\ \pi r^2L
139    {\sin\left(\tfrac12 QL\cos\theta\right)
140        \over \tfrac12 QL\cos\theta}
141    {2 J_1(Qr\sin\theta) \over Qr\sin\theta} \\
142    &amp;\ + 4 \pi R^3 \int_{-h/R}^1 dt
143    \cos\left[ Q\cos\theta
144        \left(Rt + h + {\tfrac12} L\right)\right]
145    \times (1-t^2)
146    {J_1\left[QR\sin\theta \left(1-t^2\right)^{1/2}\right]
147         \over QR\sin\theta \left(1-t^2\right)^{1/2}}\end{split}\]</div>
148<p>The <span class="math">\(\left&lt; \ldots \right&gt;\)</span> brackets denote an average of the structure over
149all orientations. <span class="math">\(\left&lt; A^2(Q)\right&gt;\)</span> is then the form factor, <span class="math">\(P(Q)\)</span>.
150The scale factor is equivalent to the volume fraction of cylinders, each of
151volume, <span class="math">\(V\)</span>. Contrast is the difference of scattering length densities of
152the cylinder and the surrounding solvent.</p>
153<p>The volume of the capped cylinder is (with <span class="math">\(h\)</span> as a positive value here)</p>
154<div class="math">
155\[V = \pi r_c^2 L + \tfrac{2\pi}{3}(R-h)^2(2R + h)\]</div>
156<p>and its radius-of-gyration is</p>
157<div class="math">
158\[\begin{split}R_g^2 =&amp;\ \left[ \tfrac{12}{5}R^5
159    + R^4\left(6h+\tfrac32 L\right)
160    + R^2\left(4h^2 + L^2 + 4Lh\right)
161    + R^2\left(3Lh^2 + \tfrac32 L^2h\right) \right. \\
162    &amp;\ \left. + \tfrac25 h^5 - \tfrac12 Lh^4 - \tfrac12 L^2h^3
163    + \tfrac14 L^3r^2 + \tfrac32 Lr^4 \right]
164    \left( 4R^3 6R^2h - 2h^3 + 3r^2L \right)^{-1}\end{split}\]</div>
165<div class="admonition note">
166<p class="first admonition-title">Note</p>
167<p class="last">The requirement that <span class="math">\(R \ge r\)</span> is not enforced in the model!
168It is up to you to restrict this during analysis.</p>
169</div>
170<p><a class="pageref" href="#capped-cylinder-1d">Figure  1</a> shows the output produced by
171a running the 1D capped cylinder model, using <em>qmin</em> = 0.001 Å<sup>-1</sup>,
172<em>qmax</em> = 0.7 Å<sup>-1</sup> and  the default values of the parameters.</p>
173<div class="figure" id="capped-cylinder-1d">
174<img alt="../_images/capped_cylinder_1d.jpg" src="../_images/capped_cylinder_1d.jpg" />
175<p class="caption">Figure 1: 1D plot using the default values (w/256 data point).</p>
176</div>
177<p>The 2D scattering intensity is calculated similar to the 2D cylinder model.
178<a class="pageref" href="#capped-cylinder-2d">Figure  2</a> shows the output for <span class="math">\(\theta=45^\circ\)</span>
179and <span class="math">\(\phi=0^\circ\)</span> with default values for the other parameters.</p>
180<div class="figure" id="capped-cylinder-2d">
181<img alt="../_images/capped_cylinder_2d.jpg" src="../_images/capped_cylinder_2d.jpg" />
182<p class="caption">Figure 2: 2D plot (w/(256X265) data points).</p>
183</div>
184<div class="figure">
185<img alt="../_images/orientation.jpg" src="../_images/orientation.jpg" />
186<p class="caption">Figure 3: Definition of the angles for oriented 2D cylinders.</p>
187</div>
188<div class="figure">
189<img alt="../_images/orientation2.jpg" src="../_images/orientation2.jpg" />
190<p class="caption">Figure 4: Examples of the angles for oriented pp against the detector plane.</p>
191</div>
192<p>REFERENCE</p>
193<p>H Kaya, <em>J. Appl. Cryst.</em>, 37 (2004) 223-230</p>
194<p>H Kaya and N-R deSouza, <em>J. Appl. Cryst.</em>, 37 (2004) 508-509 (addenda and errata)</p>
195</div>
196</div>
197
198
199      </div>
200      <div class="bottomnav">
201     
202        <p>
203        «&#160;&#160;<a href="barbell.html">2.1.1.1. Barbell</a>
204        &#160;&#160;::&#160;&#160;
205        <a class="uplink" href="../index.html">Contents</a>
206        &#160;&#160;::&#160;&#160;
207        <a href="core_shell_cylinder.html">2.1.1.3. Core shell cylinder</a>&#160;&#160;»
208        </p>
209
210      </div>
211
212    <div class="footer">
213        &copy; Copyright 2014, sasview team.
214      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
215    </div>
216  </body>
217</html>
Note: See TracBrowser for help on using the repository browser.