source: sasmodels/model/core_shell_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: 9.4 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.3. Core shell 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.4. Cylinder" href="cylinder.html" />
30    <link rel="prev" title="2.1.1.2. Capped cylinder" href="capped_cylinder.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.3. Core shell cylinder</span></h2>
36      </div>
37      <div class="topnav">
38     
39        <p>
40        «&#160;&#160;<a href="capped_cylinder.html">2.1.1.2. Capped cylinder</a>
41        &#160;&#160;::&#160;&#160;
42        <a class="uplink" href="../index.html">Contents</a>
43        &#160;&#160;::&#160;&#160;
44        <a href="cylinder.html">2.1.1.4. Cylinder</a>&#160;&#160;»
45        </p>
46
47      </div>
48      <div class="content">
49       
50       
51  <div class="section" id="core-shell-cylinder">
52<span id="id1"></span><h1>2.1.1.3. Core shell cylinder<a class="headerlink" href="#core-shell-cylinder" title="Permalink to this headline">¶</a></h1>
53<p>Right circular cylinder with a core-shell scattering length density profile.</p>
54<table border="1" class="docutils">
55<colgroup>
56<col width="14%" />
57<col width="53%" />
58<col width="16%" />
59<col width="17%" />
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>core_sld</td>
80<td>Cylinder core 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>shell_sld</td>
85<td>Cylinder shell scattering length density</td>
86<td>10<sup>-6</sup>Å<sup>-2</sup></td>
87<td>4</td>
88</tr>
89<tr class="row-even"><td>solvent_sld</td>
90<td>Solvent scattering length density</td>
91<td>10<sup>-6</sup>Å<sup>-2</sup></td>
92<td>1</td>
93</tr>
94<tr class="row-odd"><td>radius</td>
95<td>Cylinder core radius</td>
96<td>Å</td>
97<td>20</td>
98</tr>
99<tr class="row-even"><td>thickness</td>
100<td>Cylinder shell thickness</td>
101<td>Å</td>
102<td>20</td>
103</tr>
104<tr class="row-odd"><td>length</td>
105<td>Cylinder length</td>
106<td>Å</td>
107<td>400</td>
108</tr>
109<tr class="row-even"><td>theta</td>
110<td>In plane angle</td>
111<td>degree</td>
112<td>60</td>
113</tr>
114<tr class="row-odd"><td>phi</td>
115<td>Out of plane angle</td>
116<td>degree</td>
117<td>60</td>
118</tr>
119</tbody>
120</table>
121<p>The returned value is scaled to units of cm<sup>-1</sup>.</p>
122<p>The form factor is normalized by the particle volume.</p>
123<div class="section" id="definition">
124<h2>Definition<a class="headerlink" href="#definition" title="Permalink to this headline">¶</a></h2>
125<p>The output of the 2D scattering intensity function for oriented core-shell
126cylinders is given by (Kline, 2006)</p>
127<div class="math">
128\[P(Q,\alpha) = {\text{scale} \over V_s} F^2(Q) + \text{background}\]</div>
129<p>where</p>
130<div class="math">
131\[\begin{split}F(Q) = &amp;\ (\rho_c - \rho_s) V_c
132       {\sin \left( Q \tfrac12 L\cos\alpha \right)
133           \over Q \tfrac12 L\cos\alpha }
134       {2 J_1 \left( QR\sin\alpha \right)
135           \over QR\sin\alpha } \\
136     &amp;\ + (\rho_s - \rho_\text{solv}) V_s
137       {\sin \left( Q \left(\tfrac12 L+T\right) \cos\alpha \right)
138           \over Q \left(\tfrac12 L +T \right) \cos\alpha }
139       { 2 J_1 \left( Q(R+T)\sin\alpha \right)
140           \over Q(R+T)\sin\alpha }\end{split}\]</div>
141<p>and</p>
142<div class="math">
143\[V_s = \pi (R + T)^2 (L + 2T)\]</div>
144<p>and <span class="math">\(\alpha\)</span> is the angle between the axis of the cylinder and <span class="math">\(\vec q\)</span>,
145<span class="math">\(V_s\)</span> is the volume of the outer shell (i.e. the total volume, including
146the shell), <span class="math">\(V_c\)</span> is the volume of the core, <span class="math">\(L\)</span> is the length of the core,
147<span class="math">\(R\)</span> is the radius of the core, <span class="math">\(T\)</span> is the thickness of the shell, <span class="math">\(\rho_c\)</span>
148is the scattering length density of the core, <span class="math">\(\rho_s\)</span> is the scattering
149length density of the shell, <span class="math">\(\rho_\text{solv}\)</span> is the scattering length
150density of the solvent, and <em>background</em> is the background level.  The outer
151radius of the shell is given by <span class="math">\(R+T\)</span> and the total length of the outer
152shell is given by <span class="math">\(L+2T\)</span>. <span class="math">\(J1\)</span> is the first order Bessel function.</p>
153<div class="figure" id="core-shell-cylinder-geometry">
154<img alt="../_images/core_shell_cylinder_geometry.jpg" src="../_images/core_shell_cylinder_geometry.jpg" />
155<p class="caption">Figure 1: Core shell cylinder schematic.</p>
156</div>
157<p>To provide easy access to the orientation of the core-shell cylinder, we
158define the axis of the cylinder using two angles <span class="math">\(\theta\)</span> and <span class="math">\(\phi\)</span>. As
159for the case of the cylinder, those angles are defined in
160.</p>
161<p>NB: The 2nd virial coefficient of the cylinder is calculated based on
162the radius and 2 length values, and used as the effective radius for
163<span class="math">\(S(Q)\)</span> when <span class="math">\(P(Q) \cdot S(Q)\)</span> is applied.</p>
164<p>The <span class="math">\(\theta\)</span> and <span class="math">\(\phi\)</span> parameters are not used for the 1D output. Our
165implementation of the scattering kernel and the 1D scattering intensity
166use the c-library from NIST.</p>
167</div>
168<div class="section" id="validation">
169<h2>Validation<a class="headerlink" href="#validation" title="Permalink to this headline">¶</a></h2>
170<p>Validation of our code was done by comparing the output of the 1D model to
171the output of the software provided by the NIST (Kline, 2006).
172<a class="pageref" href="#core-shell-cylinder-1d">Figure  2</a> shows a comparison
173of the 1D output of our model and the output of the NIST software.</p>
174<div class="figure" id="core-shell-cylinder-1d">
175<img alt="../_images/core_shell_cylinder_1d.jpg" src="../_images/core_shell_cylinder_1d.jpg" />
176<p class="caption">Figure 2: Comparison of the SasView scattering intensity for a core-shell cylinder
177with the output of the NIST SANS analysis software. The parameters were
178set to: <em>scale</em> = 1.0 Å, <em>radius</em> = 20 Å, <em>thickness</em> = 10 Å,
179<em>length</em> =400 Å, <em>core_sld</em> =1e-6 Å<sup>-2</sup>, <em>shell_sld</em> = 4e-6 Å<sup>-2</sup>,
180<em>solvent_sld</em> = 1e-6 Å<sup>-2</sup>, and <em>background</em> = 0.01 cm<sup>-1</sup>.</p>
181</div>
182<p>Averaging over a distribution of orientation is done by evaluating the
183equation above. Since we have no other software to compare the
184implementation of the intensity for fully oriented cylinders, we can
185compare the result of averaging our 2D output using a uniform
186distribution <span class="math">\(p(\theta,\phi) = 1.0\)</span>.
187<a class="pageref" href="#core-shell-cylinder-2d">Figure  3</a> shows the result
188of such a cross-check.</p>
189<div class="figure" id="core-shell-cylinder-2d">
190<img alt="../_images/core_shell_cylinder_2d.jpg" src="../_images/core_shell_cylinder_2d.jpg" />
191<p class="caption">Figure 3: Comparison of the intensity for uniformly distributed core-shell
192cylinders calculated from our 2D model and the intensity from the
193NIST SANS analysis software. The parameters used were: <em>scale</em> = 1.0,
194<em>radius</em> = 20 Å, <em>thickness</em> = 10 Å, <em>length</em> = 400 Å,
195<em>core_sld</em> = 1e-6 Å<sup>-2</sup>, <em>shell_sld</em> = 4e-6 Å<sup>-2</sup>,
196<em>solvent_sld</em> = 1e-6 Å<sup>-2</sup>, and <em>background</em> = 0.0 cm<sup>-1</sup>.</p>
197</div>
198<p>2013/11/26 - Description reviewed by Heenan, R.</p>
199</div>
200</div>
201
202
203      </div>
204      <div class="bottomnav">
205     
206        <p>
207        «&#160;&#160;<a href="capped_cylinder.html">2.1.1.2. Capped cylinder</a>
208        &#160;&#160;::&#160;&#160;
209        <a class="uplink" href="../index.html">Contents</a>
210        &#160;&#160;::&#160;&#160;
211        <a href="cylinder.html">2.1.1.4. Cylinder</a>&#160;&#160;»
212        </p>
213
214      </div>
215
216    <div class="footer">
217        &copy; Copyright 2014, sasview team.
218      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
219    </div>
220  </body>
221</html>
Note: See TracBrowser for help on using the repository browser.