source: sasview/src/sas/models/media/model_functions.rst @ cd06a5f

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since cd06a5f was cd06a5f, checked in by smk78, 9 years ago

Change to top level menu formatting

  • Property mode set to 100644
File size: 164.9 KB
RevLine 
[1c03e14]1.. model_functions.rst
2
3.. This is a port of the original SasView model_functions.html to ReSTructured text
[6386cd8]4.. by S King, ISIS, during and after SasView CodeCamp-II in April 2014.
5
6.. Thanks are due to A Jackson & P Kienzle for advice on RST!
7
8.. The CoreShellEllipsoidXTModel was ported and documented by R K Heenan, ISIS, Apr 2014
9.. The RectangularPrism models were coded and documented by M A Gonzalez, ILL, Apr 2014
10
11.. To do:
12.. Remove the 'This is xi' & 'This is zeta' lines before release!
13.. Add example parameters/plots for the CoreShellEllipsoidXTModel
14.. Add example parameters/plots for the RectangularPrism models
15.. Check the content against the NIST Igor Help File
16.. Wordsmith the content for consistency of style, etc
17
18
19
20.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
21
[1c03e14]22
23
24.. Set up some substitutions to make life easier...
25
26.. |alpha| unicode:: U+03B1
27.. |beta| unicode:: U+03B2
28.. |gamma| unicode:: U+03B3
29.. |delta| unicode:: U+03B4
30.. |epsilon| unicode:: U+03B5
31.. |zeta| unicode:: U+03B6
32.. |eta| unicode:: U+03B7
33.. |theta| unicode:: U+03B8
34.. |iota| unicode:: U+03B9
35.. |kappa| unicode:: U+03BA
36.. |lambda| unicode:: U+03BB
37.. |mu| unicode:: U+03BC
38.. |nu| unicode:: U+03BD
39.. |xi| unicode:: U+03BE
40.. |omicron| unicode:: U+03BF
41.. |pi| unicode:: U+03C0
42.. |rho| unicode:: U+03C1
43.. |sigma| unicode:: U+03C3
44.. |tau| unicode:: U+03C4
45.. |upsilon| unicode:: U+03C5
46.. |phi| unicode:: U+03C6
47.. |chi| unicode:: U+03C7
48.. |psi| unicode:: U+03C8
49.. |omega| unicode:: U+03C9
50.. |biggamma| unicode:: U+0393
[93b6fcc]51.. |bigdelta| unicode:: U+0394
52.. |bigzeta| unicode:: U+039E
[38d4102]53.. |bigpsi| unicode:: U+03A8
[1c03e14]54.. |drho| replace:: |bigdelta|\ |rho|
55.. |Ang| unicode:: U+212B
56.. |Ang^-1| replace:: |Ang|\ :sup:`-1`
57.. |Ang^2| replace:: |Ang|\ :sup:`2`
58.. |Ang^-2| replace:: |Ang|\ :sup:`-2`
59.. |Ang^3| replace:: |Ang|\ :sup:`3`
[58eccf6]60.. |Ang^-3| replace:: |Ang|\ :sup:`-3`
61.. |Ang^-4| replace:: |Ang|\ :sup:`-4`
[1c03e14]62.. |cm^-1| replace:: cm\ :sup:`-1`
63.. |cm^2| replace:: cm\ :sup:`2`
64.. |cm^-2| replace:: cm\ :sup:`-2`
65.. |cm^3| replace:: cm\ :sup:`3`
66.. |cm^-3| replace:: cm\ :sup:`-3`
67.. |sr^-1| replace:: sr\ :sup:`-1`
68.. |P0| replace:: P\ :sub:`0`\
69.. |A2| replace:: A\ :sub:`2`\
70
71
72
73.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
74
75
76
77.. Actual document starts here...
78
79SasView Model Functions
80=======================
81
82Contents
83--------
[98b30b4]841. Background_
[1c03e14]85
862. Model_ Functions
87
88 2.1 Shape-based_ Functions
[cd06a5f]89 
[1c03e14]90 2.2 Shape-independent_ Functions
[cd06a5f]91 
[1c03e14]92 2.3 Structure-factor_ Functions
[cd06a5f]93 
[1c03e14]94 2.4 Customised_ Functions
95
963. References_
97
98
99
100.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
101
102
103
[98b30b4]104.. _Background:
[1c03e14]105
[98b30b4]1061. Background
[1c03e14]107---------------
108
109Many of our models use the form factor calculations implemented in a c-library provided by the NIST Center for Neutron
[6386cd8]110Research and thus some content and figures in this document are originated from or shared with the NIST SANS Igor-based
111analysis package.
[1c03e14]112
113This software provides form factors for various particle shapes. After giving a mathematical definition of each model,
114we show the list of parameters available to the user. Validation plots for each model are also presented.
115
116Instructions on how to use SasView itself are available separately.
117
118To easily compare to the scattering intensity measured in experiments, we normalize the form factors by the volume of
119the particle
120
121.. image:: img/image001.PNG
122
123with
124
125.. image:: img/image002.PNG
126
127where |P0|\ *(q)* is the un-normalized form factor, |rho|\ *(r)* is the scattering length density at a given
128point in space and the integration is done over the volume *V* of the scatterer.
129
130For systems without inter-particle interference, the form factors we provide can be related to the scattering intensity
131by the particle volume fraction
132
133.. image:: img/image003.PNG
134
135Our so-called 1D scattering intensity functions provide *P(q)* for the case where the scatterer is randomly oriented. In
[6386cd8]136that case, the scattering intensity only depends on the length of *q* . The intensity measured on the plane of the SAS
[1c03e14]137detector will have an azimuthal symmetry around *q*\ =0 .
138
139Our so-called 2D scattering intensity functions provide *P(q,* |phi| *)* for an oriented system as a function of a
140q-vector in the plane of the detector. We define the angle |phi| as the angle between the q vector and the horizontal
141(x) axis of the plane of the detector.
142
143For information about polarised and magnetic scattering, click here_.
144
145.. _here: polar_mag_help.html
146
147
148
149.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
150
151
152
153.. _Model:
154
1552. Model functions
156------------------
157
158.. _Shape-based:
159
1602.1 Shape-based Functions
161-------------------------
162
163Sphere-based
164------------
165
166- SphereModel_ (including magnetic 2D version)
167- BinaryHSModel_
168- FuzzySphereModel_
169- RaspBerryModel_
170- CoreShellModel_ (including magnetic 2D version)
171- CoreMultiShellModel_ (including magnetic 2D version)
172- Core2ndMomentModel_
173- MultiShellModel_
174- OnionExpShellModel_
175- VesicleModel_
176- SphericalSLDModel_
177- LinearPearlsModel_
178- PearlNecklaceModel_
179
180Cylinder-based
181--------------
182
183- CylinderModel_ (including magnetic 2D version)
184- HollowCylinderModel_
[38d4102]185- CappedCylinderModel_
186- CoreShellCylinderModel_
187- EllipticalCylinderModel_
[77cfcf0]188- FlexibleCylinderModel_
189- FlexCylEllipXModel_
190- CoreShellBicelleModel_
191- BarBellModel_
192- StackedDisksModel_
193- PringleModel_
[1c03e14]194
195Ellipsoid-based
196---------------
197
[990c2eb]198- EllipsoidModel_
199- CoreShellEllipsoidModel_
200- CoreShellEllipsoidXTModel_
[bf8c07b]201- TriaxialEllipsoidModel_
[1c03e14]202
203Lamellae
204--------
205
[1127c32]206- LamellarModel_
207- LamellarFFHGModel_
208- LamellarPSModel_
209- LamellarPSHGModel_
[1c03e14]210
211Paracrystals
212------------
213
[1127c32]214- LamellarPCrystalModel_
[d4117ccb]215- SCCrystalModel_
216- FCCrystalModel_
217- BCCrystalModel_
[1c03e14]218
219Parallelpipeds
220--------------
221
[bf8c07b]222- ParallelepipedModel_ (including magnetic 2D version)
223- CSParallelepipedModel_
[6386cd8]224- RectangularPrismModel_
225- RectangularHollowPrismModel_
226- RectangularHollowPrismInfThinWallsModel_
[1c03e14]227
228.. _Shape-independent:
229
2302.2 Shape-Independent Functions
231-------------------------------
232
[6386cd8]233(In alphabetical order)
234
[4ed2d0a1]235- AbsolutePower_Law_
[93b6fcc]236- BEPolyelectrolyte_
237- BroadPeakModel_
238- CorrLength_
239- DABModel_
240- Debye_
241- FractalModel_
242- FractalCoreShell_
243- GaussLorentzGel_
[6386cd8]244- GelFitModel_
[93b6fcc]245- Guinier_
246- GuinierPorod_
[6386cd8]247- LineModel_
[93b6fcc]248- Lorentz_
249- MassFractalModel_
250- MassSurfaceFractal_
[6386cd8]251- PeakGaussModel_
252- PeakLorentzModel_
253- Poly_GaussCoil_
254- PolyExclVolume_
255- PorodModel_
256- RPA10Model_
257- StarPolymer_
[93b6fcc]258- SurfaceFractalModel_
259- TeubnerStrey_
[6386cd8]260- TwoLorentzian_
261- TwoPowerLaw_
262- UnifiedPowerRg_
263- ReflectivityModel_
264- ReflectivityIIModel_
[1c03e14]265
266.. _Structure-factor:
267
2682.3 Structure Factor Functions
269------------------------------
270
271- HardSphereStructure_
272- SquareWellStructure_
273- HayterMSAStructure_
274- StickyHSStructure_
275
276.. _Customised:
277
2782.4 Customized Functions
279------------------------
280
281- testmodel_
282- testmodel_2_
283- sum_p1_p2_
284- sum_Ap1_1_Ap2_
285- polynomial5_
286- sph_bessel_jn_
287
288
289
290.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
291
292
293
294.. _References:
295
2963. References
297-------------
298
299*Small-Angle Scattering of X-Rays*
[93b6fcc]300A Guinier and G Fournet
[1c03e14]301John Wiley & Sons, New York (1955)
302
[93b6fcc]303P Stckel, R May, I Strell, Z Cejka, W Hoppe, H Heumann, W Zillig and H Crespi
[1c03e14]304*Eur. J. Biochem.*, 112, (1980), 411-417
305
[93b6fcc]306G Porod
[1c03e14]307in *Small Angle X-ray Scattering*
[93b6fcc]308(editors) O Glatter and O Kratky
[1c03e14]309Academic Press (1982)
310
311*Structure Analysis by Small-Angle X-Ray and Neutron Scattering*
[93b6fcc]312L.A Feigin and D I Svergun
[1c03e14]313Plenum Press, New York (1987)
314
[93b6fcc]315S Hansen
[1c03e14]316*J. Appl. Cryst.* 23, (1990), 344-346
317
[93b6fcc]318S J Henderson
[1c03e14]319*Biophys. J.* 70, (1996), 1618-1627
320
[93b6fcc]321B C McAlister and B P Grady
[1c03e14]322*J. Appl. Cryst.* 31, (1998), 594-599
323
[93b6fcc]324S R Kline
[1c03e14]325*J Appl. Cryst.* 39(6), (2006), 895
326
327**Also see the references at the end of the each model function descriptions.**
328
329
330
331.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
332
333
334
335Model Definitions
336-----------------
337
338.. _SphereModel:
339
340**2.1.1. SphereModel**
341
342This model provides the form factor, *P(q)*, for a monodisperse spherical particle with uniform scattering length
343density. The form factor is normalized by the particle volume as described below.
344
345For information about polarised and magnetic scattering, click here_.
346
347.. _here: polar_mag_help.html
348
349*2.1.1.1. Definition*
350
351The 1D scattering intensity is calculated in the following way (Guinier, 1955)
352
353.. image:: img/image004.PNG
354
355where *scale* is a volume fraction, *V* is the volume of the scatterer, *r* is the radius of the sphere, *bkg* is
356the background level and *sldXXX* is the scattering length density (SLD) of the scatterer or the solvent.
357
358Note that if your data is in absolute scale, the *scale* should represent the volume fraction (which is unitless) if
359you have a good fit. If not, it should represent the volume fraction \* a factor (by which your data might need to be
360rescaled).
361
362The 2D scattering intensity is the same as above, regardless of the orientation of the q vector.
363
364The returned value is scaled to units of |cm^-1| and the parameters of the SphereModel are the following:
365
366==============  ========  =============
367Parameter name  Units     Default value
368==============  ========  =============
369scale           None      1
370radius          |Ang|     60
371sldSph          |Ang^-2|  2.0e-6
372sldSolv         |Ang^-2|  1.0e-6
373background      |cm^-1|   0
374==============  ========  =============
375
376Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron
377Research (Kline, 2006).
378
379REFERENCE
[bf8c07b]380
[93b6fcc]381A Guinier and G. Fournet, *Small-Angle Scattering of X-Rays*, John Wiley and Sons, New York, (1955)
[1c03e14]382
383*2.1.1.2. Validation of the SphereModel*
384
385Validation of our code was done by comparing the output of the 1D model to the output of the software provided by the
386NIST (Kline, 2006). Figure 1 shows a comparison of the output of our model and the output of the NIST software.
387
[7f42aad]388.. image:: img/image005.jpg
[1c03e14]389
390Figure 1: Comparison of the DANSE scattering intensity for a sphere with the output of the NIST SANS analysis software.
391The parameters were set to: Scale=1.0, Radius=60 |Ang|, Contrast=1e-6 |Ang^-2|, and Background=0.01 |cm^-1|.
392
[93b6fcc]393*2013/09/09 and 2014/01/06 - Description reviewed by S King and P Parker.*
[1c03e14]394
395
396
397.. _BinaryHSModel:
398
399**2.1.2. BinaryHSModel**
400
401*2.1.2.1. Definition*
402
403This model (binary hard sphere model) provides the scattering intensity, for binary mixture of spheres including hard
404sphere interaction between those particles. Using Percus-Yevick closure, the calculation is an exact multi-component
405solution
406
407.. image:: img/image006.PNG
408
409where *Sij* are the partial structure factors and *fi* are the scattering amplitudes of the particles. The subscript 1
410is for the smaller particle and 2 is for the larger. The number fraction of the larger particle, (*x* = n2/(n1+n2),
411where *n* = the number density) is internally calculated based on
412
413.. image:: img/image007.PNG
414
415The 2D scattering intensity is the same as 1D, regardless of the orientation of the *q* vector which is defined as
416
417.. image:: img/image008.PNG
418
419The parameters of the BinaryHSModel are the following (in the names, *l* (or *ls*\ ) stands for larger spheres
420while *s* (or *ss*\ ) for the smaller spheres).
421
422==============  ========  =============
423Parameter name  Units     Default value
424==============  ========  =============
425background      |cm^-1|   0.001
426l_radius        |Ang|     100.0
427ss_sld          |Ang^-2|  0.0
428ls_sld          |Ang^-2|  3e-6
429solvent_sld     |Ang^-2|  6e-6
430s_radius        |Ang|     25.0
431vol_frac_ls     None      0.1
432vol_frac_ss     None      0.2
433==============  ========  =============
434
[7f42aad]435.. image:: img/image009.jpg
[1c03e14]436
437*Figure. 1D plot using the default values above (w/200 data point).*
438
439Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron
440Research (Kline, 2006).
441
442See the reference for details.
443
444REFERENCE
[bf8c07b]445
[93b6fcc]446N W Ashcroft and D C Langreth, *Physical Review*, 156 (1967) 685-692
[1c03e14]447[Errata found in *Phys. Rev.* 166 (1968) 934]
448
449
450
451.. _FuzzySphereModel:
452
453**2.1.3. FuzzySphereModel**
454
455This model is to calculate the scattering from spherical particles with a "fuzzy" interface.
456
457*2.1.3.1. Definition*
458
459The scattering intensity *I(q)* is calculated as:
460
461.. image:: img/image010.PNG
462
463where the amplitude *A(q)* is given as the typical sphere scattering convoluted with a Gaussian to get a gradual
464drop-off in the scattering length density
465
466.. image:: img/image011.PNG
467
468Here |A2|\ *(q)* is the form factor, *P(q)*. The scale is equivalent to the volume fraction of spheres, each of
469volume, *V*\. Contrast (|drho|) is the difference of scattering length densities of the sphere and the surrounding
470solvent.
471
472Poly-dispersion in radius and in fuzziness is provided for.
473
474The returned value is scaled to units of |cm^-1|\ |sr^-1|; ie, absolute scale.
475
476From the reference
477
478  The "fuzziness" of the interface is defined by the parameter |sigma| :sub:`fuzzy`\ . The particle radius *R*
479  represents the radius of the particle where the scattering length density profile decreased to 1/2 of the core
480  density. The |sigma| :sub:`fuzzy`\ is the width of the smeared particle surface; i.e., the standard deviation
481  from the average height of the fuzzy interface. The inner regions of the microgel that display a higher density
482  are described by the radial box profile extending to a radius of approximately *Rbox* ~ *R* - 2\ |sigma|\ . The
483  profile approaches zero as *Rsans* ~ *R* + 2\ |sigma|\ .
484
485For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
486
487.. image:: img/image008.PNG
488
489This example dataset is produced by running the FuzzySphereModel, using 200 data points, *qmin* = 0.001 -1,
490*qmax* = 0.7 |Ang^-1| and the default values
491
492==============  ========  =============
493Parameter name  Units     Default value
494==============  ========  =============
495scale           None      1.0
496radius          |Ang|     60
497fuzziness       |Ang|     10
498sldSolv         |Ang^-2|  3e-6
499sldSph          |Ang^-2|  1e-6
500background      |cm^-1|   0.001
501==============  ========  =============
502
[7f42aad]503.. image:: img/image012.jpg
[1c03e14]504
505*Figure. 1D plot using the default values (w/200 data point).*
506
507REFERENCE
[bf8c07b]508
[93b6fcc]509M Stieger, J. S Pedersen, P Lindner, W Richtering, *Langmuir*, 20 (2004) 7283-7292
[1c03e14]510
511
512
513.. _RaspBerryModel:
514
515**2.1.4. RaspBerryModel**
516
517Calculates the form factor, *P(q)*, for a "Raspberry-like" structure where there are smaller spheres at the surface
518of a larger sphere, such as the structure of a Pickering emulsion.
519
520*2.1.4.1. Definition*
521
522The structure is:
523
[7f42aad]524.. image:: img/raspberry_pic.jpg
[1c03e14]525
526where *Ro* = the radius of the large sphere, *Rp* = the radius of the smaller sphere on the surface, |delta| = the
527fractional penetration depth, and surface coverage = fractional coverage of the large sphere surface (0.9 max).
528
529The large and small spheres have their own SLD, as well as the solvent. The surface coverage term is a fractional
530coverage (maximum of approximately 0.9 for hexagonally-packed spheres on a surface). Since not all of the small
531spheres are necessarily attached to the surface, the excess free (small) spheres scattering is also included in the
532calculation. The function calculated follows equations (8)-(12) of the reference below, and the equations are not
533reproduced here.
534
535The returned value is scaled to units of |cm^-1|. No inter-particle scattering is included in this model.
536
537For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
538
539.. image:: img/image008.PNG
540
541This example dataset is produced by running the RaspBerryModel, using 2000 data points, *qmin* = 0.0001 |Ang^-1|,
542*qmax* = 0.2 |Ang^-1| and the default values below, where *Ssph/Lsph* stands for smaller or larger sphere, respectively,
543and *surfrac_Ssph* is the surface fraction of the smaller spheres.
544
545==============  ========  =============
546Parameter name  Units     Default value
547==============  ========  =============
548delta_Ssph      None      0
549radius_Lsph     |Ang|     5000
550radius_Ssph     |Ang|     100
551sld_Lsph        |Ang^-2|  -4e-07
552sld_Ssph        |Ang^-2|  3.5e-6
553sld_solv        |Ang^-2|  6.3e-6
554surfrac_Ssph    None      0.4
555volf_Lsph       None      0.05
556volf_Lsph       None      0.005
557background      |cm^-1|   0
558==============  ========  =============
559
[7f42aad]560.. image:: img/raspberry_plot.jpg
[1c03e14]561
562*Figure. 1D plot using the values of /2000 data points.*
563
564REFERENCE
[bf8c07b]565
[93b6fcc]566K Larson-Smith, A Jackson, and D C Pozzo, *Small angle scattering model for Pickering emulsions and raspberry*
[1c03e14]567*particles*, *Journal of Colloid and Interface Science*, 343(1) (2010) 36-41
568
569
570
571.. _CoreShellModel:
572
573**2.1.5. CoreShellModel**
574
575This model provides the form factor, *P(q)*, for a spherical particle with a core-shell structure. The form factor is
576normalized by the particle volume.
577
578For information about polarised and magnetic scattering, click here_.
579
580*2.1.5.1. Definition*
581
582The 1D scattering intensity is calculated in the following way (Guinier, 1955)
583
584.. image:: img/image013.PNG
585
586where *scale* is a scale factor, *Vs* is the volume of the outer shell, *Vc* is the volume of the core, *rs* is the
587radius of the shell, *rc* is the radius of the core, *c* is the scattering length density of the core, *s* is the
588scattering length density of the shell, *solv* is the scattering length density of the solvent, and *bkg* is the
589background level.
590
591The 2D scattering intensity is the same as *P(q)* above, regardless of the orientation of the *q* vector.
592
593NB: The outer most radius (ie, = *radius* + *thickness*) is used as the effective radius for *S(Q)* when
594*P(Q)* \* *S(Q)* is applied.
595
596The returned value is scaled to units of |cm^-1| and the parameters of the CoreShellModel are the following
597
598==============  ========  =============
599Parameter name  Units     Default value
600==============  ========  =============
601scale           None      1.0
602(core) radius   |Ang|     60
603thickness       |Ang|     10
604core_sld        |Ang^-2|  1e-6
605shell_sld       |Ang^-2|  2e-6
606solvent_sld     |Ang^-2|  3e-6
607background      |cm^-1|   0.001
608==============  ========  =============
609
610Here, *radius* = the radius of the core and *thickness* = the thickness of the shell.
611
612Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron
613Research (Kline, 2006).
614
615REFERENCE
[bf8c07b]616
[93b6fcc]617A Guinier and G Fournet, *Small-Angle Scattering of X-Rays*, John Wiley and Sons, New York, (1955)
[1c03e14]618
619*2.1.5.2. Validation of the core-shell sphere model*
620
621Validation of our code was done by comparing the output of the 1D model to the output of the software provided by
622NIST (Kline, 2006). Figure 1 shows a comparison of the output of our model and the output of the NIST software.
623
[7f42aad]624.. image:: img/image014.jpg
[1c03e14]625
626Figure 1: Comparison of the SasView scattering intensity for a core-shell sphere with the output of the NIST SANS
627analysis software. The parameters were set to: *Scale* = 1.0, *Radius* = 60 , *Contrast* = 1e-6 |Ang^-2|, and
628*Background* = 0.001 |cm^-1|.
629
630
631
632.. _CoreMultiShellModel:
633
634**2.1.6. CoreMultiShellModel**
635
636This model provides the scattering from a spherical core with 1 to 4 concentric shell structures. The SLDs of the core
637and each shell are individually specified.
638
639For information about polarised and magnetic scattering, click here_.
640
641*2.1.6.1. Definition*
642
643This model is a trivial extension of the CoreShell function to a larger number of shells. See the CoreShell function
644for a diagram and documentation.
645
[77cfcf0]646The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
[1c03e14]647
648Be careful! The SLDs and scale can be highly correlated. Hold as many of these parameters fixed as possible.
649
650The 2D scattering intensity is the same as P(q) of 1D, regardless of the orientation of the q vector.
651
652NB: The outer most radius (ie, = *radius* + 4 *thicknesses*) is used as the effective radius for *S(Q)* when
653*P(Q)* \* *S(Q)* is applied.
654
655The returned value is scaled to units of |cm^-1| and the parameters of the CoreMultiShell model are the following
656
657==============  ========  =============
658Parameter name  Units     Default value
659==============  ========  =============
660scale           None      1.0
661rad_core        |Ang|     60
662sld_core        |Ang^-2|  6.4e-6
663sld_shell1      |Ang^-2|  1e-6
664sld_shell2      |Ang^-2|  2e-6
665sld_shell3      |Ang^-2|  3e-6
666sld_shell4      |Ang^-2|  4e-6
667sld_solv        |Ang^-2|  6.4e-6
668thick_shell1    |Ang|     10
669thick_shell2    |Ang|     10
670thick_shell3    |Ang|     10
671thick_shell4    |Ang|     10
672background      |cm^-1|   0.001
673==============  ========  =============
674
675NB: Here, *rad_core* = the radius of the core, *thick_shelli* = the thickness of the shell *i* and
676*sld_shelli* = the SLD of the shell *i*. *sld_core* and the *sld_solv* are the SLD of the core and the solvent,
677respectively.
678
679Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron
680Research (Kline, 2006).
681
682This example dataset is produced by running the CoreMultiShellModel using 200 data points, *qmin* = 0.001 -1,
683*qmax* = 0.7 -1 and the above default values.
684
[7f42aad]685.. image:: img/image015.jpg
[1c03e14]686
687*Figure: 1D plot using the default values (w/200 data point).*
688
689The scattering length density profile for the default sld values (w/ 4 shells).
690
[7f42aad]691.. image:: img/image016.jpg
[1c03e14]692
693*Figure: SLD profile against the radius of the sphere for default SLDs.*
694
695REFERENCE
[bf8c07b]696
697See the CoreShellModel_ documentation.
[1c03e14]698
699
700
701.. _Core2ndMomentModel:
702
703**2.1.7. Core2ndMomentModel**
704
705This model describes the scattering from a layer of surfactant or polymer adsorbed on spherical particles under the
706conditions that (i) the particles (cores) are contrast-matched to the dispersion medium, (ii) *S(Q)* ~ 1 (ie, the
707particle volume fraction is dilute), (iii) the particle radius is >> layer thickness (ie, the interface is locally
708flat), and (iv) scattering from excess unadsorbed adsorbate in the bulk medium is absent or has been corrected for.
709
710Unlike a core-shell model, this model does not assume any form for the density distribution of the adsorbed species
711normal to the interface (cf, a core-shell model which assumes the density distribution to be a homogeneous
712step-function). For comparison, if the thickness of a (core-shell like) step function distribution is *t*, the second
713moment, |sigma| = sqrt((*t* :sup:`2` )/12). The |sigma| is the second moment about the mean of the density distribution
714(ie, the distance of the centre-of-mass of the distribution from the interface).
715
716*2.1.7.1. Definition*
717
718The *I* :sub:`0` is calculated in the following way (King, 2002)
719
[7f42aad]720.. image:: img/secondmeq1.jpg
[1c03e14]721
722where *scale* is a scale factor, *poly* is the sld of the polymer (or surfactant) layer, *solv* is the sld of the
723solvent/medium and cores, |phi|\ :sub:`cores` is the volume fraction of the core paraticles, and |biggamma| and
724|delta| are the adsorbed amount and the bulk density of the polymers respectively. The |sigma| is the second moment
725of the thickness distribution.
726
727Note that all parameters except the |sigma| are correlated for fitting so that fitting those with more than one
728parameter will generally fail. Also note that unlike other shape models, no volume normalization is applied to this
729model (the calculation is exact).
730
731The returned value is scaled to units of |cm^-1| and the parameters are the following
732
733==============  ========  =============
734Parameter name  Units     Default value
735==============  ========  =============
736scale           None      1.0
737density_poly    g/cm2     0.7
738radius_core     |Ang|     500
739ads_amount      mg/m 2    1.9
740second_moment   |Ang|     23.0
741volf_cores      None      0.14
742sld_poly        |Ang^-2|  1.5e-6
743sld_solv        |Ang^-2|  6.3e-6
744background      |cm^-1|   0.0
745==============  ========  =============
746
[7f42aad]747.. image:: img/secongm_fig1.jpg
[1c03e14]748
749REFERENCE
[bf8c07b]750
[93b6fcc]751S King, P Griffiths, J. Hone, and T Cosgrove, *SANS from Adsorbed Polymer Layers*,
[1c03e14]752*Macromol. Symp.*, 190 (2002) 33-42
753
754
755
756.. _MultiShellModel:
757
758**2.1.8. MultiShellModel**
759
760This model provides the form factor, *P(q)*, for a multi-lamellar vesicle with *N* shells where the core is filled with
761solvent and the shells are interleaved with layers of solvent. For *N* = 1, this returns the VesicleModel (above).
762
[7f42aad]763.. image:: img/image020.jpg
[1c03e14]764
765The 2D scattering intensity is the same as 1D, regardless of the orientation of the *q* vector which is defined as
766
767.. image:: img/image008.PNG
768
769NB: The outer most radius (= *core_radius* + *n_pairs* \* *s_thickness* + (*n_pairs* - 1) \* *w_thickness*) is used
770as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
771
772The returned value is scaled to units of |cm^-1| and the parameters of the MultiShellModel are the following
773
774==============  ========  =============
775Parameter name  Units     Default value
776==============  ========  =============
777scale           None      1.0
778core_radius     |Ang|     60.0
779n_pairs         None      2.0
780core_sld        |Ang^-2|  6.3e-6
781shell_sld       |Ang^-2|  0.0
782background      |cm^-1|   0.0
783s_thickness     |Ang|     10
784w_thickness     |Ang|     10
785==============  ========  =============
786
787NB: *s_thickness* is the shell thickness while the *w_thickness* is the solvent thickness, and *n_pair*
788is the number of shells.
789
[7f42aad]790.. image:: img/image021.jpg
[1c03e14]791
792*Figure. 1D plot using the default values (w/200 data point).*
793
794Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron
795Research (Kline, 2006).
796
797REFERENCE
[bf8c07b]798
[93b6fcc]799B Cabane, *Small Angle Scattering Methods*, in *Surfactant Solutions: New Methods of Investigation*, Ch.2,
800Surfactant Science Series Vol. 22, Ed. R Zana and M Dekker, New York, (1987).
[1c03e14]801
802
803
804.. _OnionExpShellModel:
805
806**2.1.9. OnionExpShellModel**
807
808This model provides the form factor, *P(q)*, for a multi-shell sphere where the scattering length density (SLD) of the
809each shell is described by an exponential (linear, or flat-top) function. The form factor is normalized by the volume
810of the sphere where the SLD is not identical to the SLD of the solvent. We currently provide up to 9 shells with this
811model.
812
813*2.1.9.1. Definition*
814
815The 1D scattering intensity is calculated in the following way
816
[7f42aad]817.. image:: img/image022.gif
[1c03e14]818
[7f42aad]819.. image:: img/image023.gif
[1c03e14]820
821where, for a spherically symmetric particle with a particle density |rho|\ *(r)*
822
[7f42aad]823.. image:: img/image024.gif
[1c03e14]824
825so that
826
[7f42aad]827.. image:: img/image025.gif
[1c03e14]828
[7f42aad]829.. image:: img/image026.gif
[1c03e14]830
[7f42aad]831.. image:: img/image027.gif
[1c03e14]832
833Here we assumed that the SLDs of the core and solvent are constant against *r*.
834
835Now lets consider the SLD of a shell, *r*\ :sub:`shelli`, defined by
836
[7f42aad]837.. image:: img/image028.gif
[1c03e14]838
839An example of a possible SLD profile is shown below where *sld_in_shelli* (|rho|\ :sub:`in`\ ) and
840*thick_shelli* (|bigdelta|\ *t* :sub:`shelli`\ ) stand for the SLD of the inner side of the *i*\ th shell and the
841thickness of the *i*\ th shell in the equation above, respectively.
842
843For \| *A* \| > 0,
844
[7f42aad]845.. image:: img/image029.gif
[1c03e14]846
847For *A* ~ 0 (eg., *A* = -0.0001), this function converges to that of the linear SLD profile (ie,
848|rho|\ :sub:`shelli`\ *(r)* = *A*\ :sup:`'` ( *r* - *r*\ :sub:`shelli` - 1) / |bigdelta|\ *t* :sub:`shelli`) + *B*\ :sup:`'`),
849so this case is equivalent to
850
[7f42aad]851.. image:: img/image030.gif
[1c03e14]852
[7f42aad]853.. image:: img/image031.gif
[1c03e14]854
[7f42aad]855.. image:: img/image032.gif
[1c03e14]856
[7f42aad]857.. image:: img/image033.gif
[1c03e14]858
859For *A* = 0, the exponential function has no dependence on the radius (so that *sld_out_shell* (|rho|\ :sub:`out`) is
860ignored this case) and becomes flat. We set the constant to |rho|\ :sub:`in` for convenience, and thus the form
861factor contributed by the shells is
862
[7f42aad]863.. image:: img/image034.gif
[1c03e14]864
[7f42aad]865.. image:: img/image035.gif
[1c03e14]866
867In the equation
868
[7f42aad]869.. image:: img/image036.gif
[1c03e14]870
871Finally, the form factor can be calculated by
872
[7f42aad]873.. image:: img/image037.gif
[1c03e14]874
875where
876
[7f42aad]877.. image:: img/image038.gif
[1c03e14]878
879and
880
[7f42aad]881.. image:: img/image039.gif
[1c03e14]882
883The 2D scattering intensity is the same as *P(q)* above, regardless of the orientation of the *q* vector which is
884defined as
885
[7f42aad]886.. image:: img/image040.gif
[1c03e14]887
888NB: The outer most radius is used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
889
890The returned value is scaled to units of |cm^-1| and the parameters of this model (for only one shell) are the following
891
892==============  ========  =============
893Parameter name  Units     Default value
894==============  ========  =============
895A_shell1        None      1
896scale           None      1.0
897rad_core        |Ang|     200
898thick_shell1    |Ang|     50
899sld_core        |Ang^-2|  1.0e-06
900sld_in_shell1   |Ang^-2|  1.7e-06
901sld_out_shell1  |Ang^-2|  2.0e-06
902sld_solv        |Ang^-2|  6.4e-06
903background      |cm^-1|   0.0
904==============  ========  =============
905
906NB: *rad_core* represents the core radius (*R1*) and *thick_shell1* (*R2* - *R1*) is the thickness of the shell1, etc.
907
[7f42aad]908.. image:: img/image041.jpg
[1c03e14]909
910*Figure. 1D plot using the default values (w/400 point).*
911
[7f42aad]912.. image:: img/image042.jpg
[1c03e14]913
914*Figure. SLD profile from the default values.*
915
916REFERENCE
[bf8c07b]917
[93b6fcc]918L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*,
[1c03e14]919Plenum Press, New York, (1987).
920
921
922
923.. _VesicleModel:
924
925**2.1.10. VesicleModel**
926
927This model provides the form factor, *P(q)*, for an unilamellar vesicle. The form factor is normalized by the volume
928of the shell.
929
930*2.1.10.1. Definition*
931
932The 1D scattering intensity is calculated in the following way (Guinier, 1955)
933
934.. image:: img/image017.PNG
935
936where *scale* is a scale factor, *Vshell* is the volume of the shell, *V1* is the volume of the core, *V2* is the total
937volume, *R1* is the radius of the core, *R2* is the outer radius of the shell, |rho|\ :sub:`1` is the scattering
938length density of the core and the solvent, |rho|\ :sub:`2` is the scattering length density of the shell, *bkg* is
939the background level, and *J1* = (sin\ *x*- *x* cos\ *x*)/ *x* :sup:`2`\ . The functional form is identical to a
940"typical" core-shell structure, except that the scattering is normalized by the volume that is contributing to the
941scattering, namely the volume of the shell alone. Also, the vesicle is best defined in terms of a core radius (= *R1*)
942and a shell thickness, *t*.
943
[7f42aad]944.. image:: img/image018.jpg
[1c03e14]945
946The 2D scattering intensity is the same as *P(q)* above, regardless of the orientation of the *q* vector which is
947defined as
948
949.. image:: img/image008.PNG
950
951NB: The outer most radius (= *radius* + *thickness*) is used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)*
952is applied.
953
954The returned value is scaled to units of |cm^-1| and the parameters of the VesicleModel are the following
955
956==============  ========  =============
957Parameter name  Units     Default value
958==============  ========  =============
959scale           None      1.0
960radius          |Ang|     100
961thickness       |Ang|     30
962core_sld        |Ang^-2|  6.3e-6
963shell_sld       |Ang^-2|  0
964background      |cm^-1|   0.0
965==============  ========  =============
966
967NB: *radius* represents the core radius (*R1*) and the *thickness* (*R2* - *R1*) is the shell thickness.
968
[7f42aad]969.. image:: img/image019.jpg
[1c03e14]970
971*Figure. 1D plot using the default values (w/200 data point).*
972
973Our model uses the form factor calculations implemented in a c-library
974provided by the NIST Center for Neutron Research (Kline, 2006).
975
976REFERENCE
[bf8c07b]977
[93b6fcc]978A Guinier and G. Fournet, *Small-Angle Scattering of X-Rays*, John Wiley and Sons, New York, (1955)
[1c03e14]979
980
981
982.. _SphericalSLDModel:
983
984**2.1.11. SphericalSLDModel**
985
986Similarly to the OnionExpShellModel, this model provides the form factor, *P(q)*, for a multi-shell sphere, where the
987interface between the each neighboring shells can be described by one of a number of functions including error,
988power-law, and exponential functions. This model is to calculate the scattering intensity by building a continuous
989custom SLD profile against the radius of the particle. The SLD profile is composed of a flat core, a flat solvent,
990a number (up to 9 ) flat shells, and the interfacial layers between the adjacent flat shells (or core, and solvent)
991(see below). Unlike the OnionExpShellModel (using an analytical integration), the interfacial layers here are
992sub-divided and numerically integrated assuming each of the sub-layers are described by a line function. The number
993of the sub-layer can be given by users by setting the integer values of *npts_inter* in the GUI. The form factor is
994normalized by the total volume of the sphere.
995
996*2.1.11.1. Definition*
997
998The 1D scattering intensity is calculated in the following way:
999
[7f42aad]1000.. image:: img/image022.gif
[1c03e14]1001
[7f42aad]1002.. image:: img/image043.gif
[1c03e14]1003
1004where, for a spherically symmetric particle with a particle density |rho|\ *(r)*
1005
[7f42aad]1006.. image:: img/image024.gif
[1c03e14]1007
1008so that
1009
[7f42aad]1010.. image:: img/image044.gif
[1c03e14]1011
[7f42aad]1012.. image:: img/image045.gif
[1c03e14]1013
[7f42aad]1014.. image:: img/image046.gif
[1c03e14]1015
[7f42aad]1016.. image:: img/image047.gif
[1c03e14]1017
[7f42aad]1018.. image:: img/image048.gif
[1c03e14]1019
[7f42aad]1020.. image:: img/image027.gif
[1c03e14]1021
1022Here we assumed that the SLDs of the core and solvent are constant against *r*. The SLD at the interface between
1023shells, |rho|\ :sub:`inter_i`, is calculated with a function chosen by an user, where the functions are
1024
10251) Exp
1026
[7f42aad]1027.. image:: img/image049.gif
[1c03e14]1028
10292) Power-Law
1030
[7f42aad]1031.. image:: img/image050.gif
[1c03e14]1032
10333) Erf
1034
[7f42aad]1035.. image:: img/image051.gif
[1c03e14]1036
1037The functions are normalized so that they vary between 0 and 1, and they are constrained such that the SLD is
1038continuous at the boundaries of the interface as well as each sub-layers. Thus *B* and *C* are determined.
1039
1040Once |rho|\ :sub:`rinter_i` is found at the boundary of the sub-layer of the interface, we can find its contribution
1041to the form factor *P(q)*
1042
[7f42aad]1043.. image:: img/image052.gif
[1c03e14]1044
[7f42aad]1045.. image:: img/image053.gif
[1c03e14]1046
[7f42aad]1047.. image:: img/image054.gif
[1c03e14]1048
1049where we assume that |rho|\ :sub:`inter_i`\ *(r)* can be approximately linear within a sub-layer *j*.
1050
1051In the equation
1052
[7f42aad]1053.. image:: img/image055.gif
[1c03e14]1054
1055Finally, the form factor can be calculated by
1056
[7f42aad]1057.. image:: img/image037.gif
[1c03e14]1058
1059where
1060
[7f42aad]1061.. image:: img/image038.gif
[1c03e14]1062
1063and
1064
[7f42aad]1065.. image:: img/image056.gif
[1c03e14]1066
1067The 2D scattering intensity is the same as *P(q)* above, regardless of the orientation of the *q* vector which is
1068defined as
1069
[7f42aad]1070.. image:: img/image040.gif
[1c03e14]1071
1072NB: The outer most radius is used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
1073
1074The returned value is scaled to units of |cm^-1| and the parameters of this model (for just one shell) are the following
1075
1076==============  ========  =============
1077Parameter name  Units     Default value
1078==============  ========  =============
1079background      |cm^-1|   0.0
1080npts_inter      None      35
1081scale           None      1
1082sld_solv        |Ang^-2|  1e-006
1083func_inter1     None      Erf
1084nu_inter        None      2.5
1085thick_inter1    |Ang|     50
1086sld_flat1       |Ang^-2|  4e-006
1087thick_flat1     |Ang|     100
1088func_inter0     None      Erf
1089nu_inter0       None      2.5
1090rad_core0       |Ang|     50
1091sld_core0       |Ang^-2|  2.07e-06
1092thick_core0     |Ang|     50
1093==============  ========  =============
1094
1095NB: *rad_core0* represents the core radius (*R1*).
1096
[7f42aad]1097.. image:: img/image057.jpg
[1c03e14]1098
1099*Figure. 1D plot using the default values (w/400 point).*
1100
[7f42aad]1101.. image:: img/image058.jpg
[1c03e14]1102
1103*Figure. SLD profile from the default values.*
1104
1105REFERENCE
[bf8c07b]1106
[93b6fcc]1107L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*,
[1c03e14]1108Plenum Press, New York, (1987)
1109
1110
1111
1112.. _LinearPearlsModel:
1113
1114**2.1.12. LinearPearlsModel**
1115
1116This model provides the form factor for *N* spherical pearls of radius *R* linearly joined by short strings (or segment
1117length or edge separation) *l* (= *A* - 2\ *R*)). *A* is the center-to-center pearl separation distance. The thickness
1118of each string is assumed to be negligible.
1119
1120.. image:: img/linearpearls.jpg
1121
1122*2.1.12.1. Definition*
1123
1124The output of the scattering intensity function for the LinearPearlsModel is given by (Dobrynin, 1996)
1125
1126.. image:: img/linearpearl_eq1.gif
1127
1128where the mass *m*\ :sub:`p` is (SLD\ :sub:`pearl` - SLD\ :sub:`solvent`) \* (volume of *N* pearls). V is the total
1129volume.
1130
1131The 2D scattering intensity is the same as *P(q)* above, regardless of the orientation of the *q* vector.
1132
1133The returned value is scaled to units of |cm^-1| and the parameters of the LinearPearlsModel are the following
1134
1135===============  ========  =============
1136Parameter name   Units     Default value
1137===============  ========  =============
1138scale            None      1.0
1139radius           |Ang|     80.0
1140edge_separation  |Ang|     350.0
1141num_pearls       None      3
1142sld_pearl        |Ang^-2|  1e-6
1143sld_solv         |Ang^-2|  6.3e-6
1144background       |cm^-1|   0.0
1145===============  ========  =============
1146
1147NB: *num_pearls* must be an integer.
1148
1149.. image:: img/linearpearl_plot.jpg
1150
1151REFERENCE
[bf8c07b]1152
[93b6fcc]1153A V Dobrynin, M Rubinstein and S P Obukhov, *Macromol.*, 29 (1996) 2974-2979
[1c03e14]1154
1155
1156
1157.. _PearlNecklaceModel:
1158
1159**2.1.13. PearlNecklaceModel**
1160
1161This model provides the form factor for a pearl necklace composed of two elements: *N* pearls (homogeneous spheres
1162of radius *R*) freely jointed by *M* rods (like strings - with a total mass *Mw* = *M* \* *m*\ :sub:`r` + *N* \* *m*\ :sub:`s`,
1163and the string segment length (or edge separation) *l* (= *A* - 2\ *R*)). *A* is the center-to-center pearl separation
1164distance.
1165
1166.. image:: img/pearl_fig.jpg
1167
1168*2.1.13.1. Definition*
1169
1170The output of the scattering intensity function for the PearlNecklaceModel is given by (Schweins, 2004)
1171
1172.. image:: img/pearl_eq1.gif
1173
1174where
1175
1176.. image:: img/pearl_eq2.gif
1177
1178.. image:: img/pearl_eq3.gif
1179
1180.. image:: img/pearl_eq4.gif
1181
1182.. image:: img/pearl_eq5.gif
1183
1184.. image:: img/pearl_eq6.gif
1185
1186and
1187
1188.. image:: img/pearl_eq7.gif
1189
1190where the mass *m*\ :sub:`i` is (SLD\ :sub:`i` - SLD\ :sub:`solvent`) \* (volume of the *N* pearls/rods). *V* is the
1191total volume of the necklace.
1192
1193The 2D scattering intensity is the same as *P(q)* above, regardless of the orientation of the *q* vector.
1194
1195The returned value is scaled to units of |cm^-1| and the parameters of the PearlNecklaceModel are the following
1196
1197===============  ========  =============
1198Parameter name   Units     Default value
1199===============  ========  =============
1200scale            None      1.0
1201radius           |Ang|     80.0
1202edge_separation  |Ang|     350.0
1203num_pearls       None      3
1204sld_pearl        |Ang^-2|  1e-6
1205sld_solv         |Ang^-2|  6.3e-6
1206sld_string       |Ang^-2|  1e-6
1207thick_string
1208(=rod diameter)  |Ang|     2.5
1209background       |cm^-1|   0.0
1210===============  ========  =============
1211
1212NB: *num_pearls* must be an integer.
1213
1214.. image:: img/pearl_plot.jpg
1215
1216REFERENCE
[bf8c07b]1217
[93b6fcc]1218R Schweins and K Huber, *Particle Scattering Factor of Pearl Necklace Chains*, *Macromol. Symp.* 211 (2004) 25-42 2004
[1c03e14]1219
1220
1221
1222.. _CylinderModel:
1223
1224**2.1.14. CylinderModel**
1225
1226This model provides the form factor for a right circular cylinder with uniform scattering length density. The form
1227factor is normalized by the particle volume.
1228
1229For information about polarised and magnetic scattering, click here_.
1230
1231*2.1.14.1. Definition*
1232
1233The output of the 2D scattering intensity function for oriented cylinders is given by (Guinier, 1955)
1234
1235.. image:: img/image059.PNG
1236
1237where
1238
1239.. image:: img/image060.PNG
1240
1241and |alpha| is the angle between the axis of the cylinder and the *q*-vector, *V* is the volume of the cylinder,
[58eccf6]1242*L* is the length of the cylinder, *r* is the radius of the cylinder, and |drho| (contrast) is the
[1c03e14]1243scattering length density difference between the scatterer and the solvent. *J1* is the first order Bessel function.
1244
1245To provide easy access to the orientation of the cylinder, we define the axis of the cylinder using two angles |theta|
1246and |phi|. Those angles are defined in Figure 1.
1247
[7f42aad]1248.. image:: img/image061.jpg
[1c03e14]1249
1250*Figure 1. Definition of the angles for oriented cylinders.*
1251
[7f42aad]1252.. image:: img/image062.jpg
[1c03e14]1253
1254*Figure 2. Examples of the angles for oriented pp against the detector plane.*
1255
1256NB: The 2nd virial coefficient of the cylinder is calculated based on the radius and length values, and used as the
1257effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
1258
1259The returned value is scaled to units of |cm^-1| and the parameters of the CylinderModel are the following:
1260
1261==============  ========  =============
1262Parameter name  Units     Default value
1263==============  ========  =============
1264scale           None      1.0
1265radius          |Ang|     20.0
1266length          |Ang|     400.0
1267contrast        |Ang^-2|  3.0e-6
1268background      |cm^-1|   0.0
1269cyl_theta       degree    60
1270cyl_phi         degree    60
1271==============  ========  =============
1272
1273The output of the 1D scattering intensity function for randomly oriented cylinders is then given by
1274
1275.. image:: img/image063.PNG
1276
1277The *cyl_theta* and *cyl_phi* parameter are not used for the 1D output. Our implementation of the scattering kernel
1278and the 1D scattering intensity use the c-library from NIST.
1279
[38d4102]1280*2.1.14.2. Validation of the CylinderModel*
[1c03e14]1281
1282Validation of our code was done by comparing the output of the 1D model to the output of the software provided by the
1283NIST (Kline, 2006). Figure 3 shows a comparison of the 1D output of our model and the output of the NIST software.
1284
[7f42aad]1285.. image:: img/image065.jpg
[1c03e14]1286
[38d4102]1287*Figure 3: Comparison of the SasView scattering intensity for a cylinder with the output of the NIST SANS analysis*
1288*software.* The parameters were set to: *Scale* = 1.0, *Radius* = 20 |Ang|, *Length* = 400 |Ang|,
[1c03e14]1289*Contrast* = 3e-6 |Ang^-2|, and *Background* = 0.01 |cm^-1|.
1290
1291In general, averaging over a distribution of orientations is done by evaluating the following
1292
1293.. image:: img/image064.PNG
1294
1295where *p(*\ |theta|,\ |phi|\ *)* is the probability distribution for the orientation and |P0|\ *(q,*\ |alpha|\ *)* is
1296the scattering intensity for the fully oriented system. Since we have no other software to compare the implementation
1297of the intensity for fully oriented cylinders, we can compare the result of averaging our 2D output using a uniform
1298distribution *p(*\ |theta|,\ |phi|\ *)* = 1.0. Figure 4 shows the result of such a cross-check.
1299
[7f42aad]1300.. image:: img/image066.jpg
[1c03e14]1301
[38d4102]1302*Figure 4: Comparison of the intensity for uniformly distributed cylinders calculated from our 2D model and the*
1303*intensity from the NIST SANS analysis software.* The parameters used were: *Scale* = 1.0, *Radius* = 20 |Ang|,
1304*Length* = 400 |Ang|, *Contrast* = 3e-6 |Ang^-2|, and *Background* = 0.0 |cm^-1|.
[1c03e14]1305
1306
1307
1308.. _HollowCylinderModel:
1309
1310**2.1.15. HollowCylinderModel**
1311
1312This model provides the form factor, *P(q)*, for a monodisperse hollow right angle circular cylinder (tube) where the
1313form factor is normalized by the volume of the tube
1314
1315*P(q)* = *scale* \* *<F*\ :sup:`2`\ *>* / *V*\ :sub:`shell` + *background*
1316
1317where the averaging < > is applied only for the 1D calculation.
1318
1319The inside and outside of the hollow cylinder are assumed have the same SLD.
1320
[38d4102]1321*2.1.15.1 Definition*
1322
[1c03e14]1323The 1D scattering intensity is calculated in the following way (Guinier, 1955)
1324
1325.. image:: img/image072.PNG
1326
1327where *scale* is a scale factor, *J1* is the 1st order Bessel function, *J1(x)* = (sin *x* - *x* cos *x*)/ *x*\ :sup:`2`.
1328
1329To provide easy access to the orientation of the core-shell cylinder, we define the axis of the cylinder using two
1330angles |theta| and |phi|\ . As for the case of the cylinder, those angles are defined in Figure 2 of the CylinderModel.
1331
1332NB: The 2nd virial coefficient of the cylinder is calculated based on the radius and 2 length values, and used as the
1333effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
1334
1335In the parameters, the contrast represents SLD :sub:`shell` - SLD :sub:`solvent` and the *radius* = *R*\ :sub:`shell`
1336while *core_radius* = *R*\ :sub:`core`.
1337
1338==============  ========  =============
1339Parameter name  Units     Default value
1340==============  ========  =============
1341scale           None      1.0
1342radius          |Ang|     30
1343length          |Ang|     400
1344core_radius     |Ang|     20
1345sldCyl          |Ang^-2|  6.3e-6
1346sldSolv         |Ang^-2|  5e-06
1347background      |cm^-1|   0.01
1348==============  ========  =============
1349
[7f42aad]1350.. image:: img/image074.jpg
[1c03e14]1351
1352*Figure. 1D plot using the default values (w/1000 data point).*
1353
1354Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
1355(Kline, 2006).
1356
[7f42aad]1357.. image:: img/image061.jpg
[1c03e14]1358
[38d4102]1359*Figure. Definition of the angles for the oriented HollowCylinderModel.*
[1c03e14]1360
[7f42aad]1361.. image:: img/image062.jpg
[1c03e14]1362
[38d4102]1363*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]1364
1365REFERENCE
[bf8c07b]1366
[93b6fcc]1367L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum Press,
[38d4102]1368New York, (1987)
[1c03e14]1369
1370
1371
1372.. _CappedCylinderModel:
1373
1374**2.1.16 CappedCylinderModel**
1375
[38d4102]1376Calculates the scattering from a cylinder with spherical section end-caps. This model simply becomes the ConvexLensModel
1377when the length of the cylinder *L* = 0, that is, a sphereocylinder with end caps that have a radius larger than that
1378of the cylinder and the center of the end cap radius lies within the cylinder. See the diagram for the details
[1c03e14]1379of the geometry and restrictions on parameter values.
1380
[38d4102]1381*2.1.16.1. Definition*
[1c03e14]1382
[77cfcf0]1383The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
[1c03e14]1384
[38d4102]1385The Capped Cylinder geometry is defined as
[1c03e14]1386
[7f42aad]1387.. image:: img/image112.jpg
[1c03e14]1388
[38d4102]1389where *r* is the radius of the cylinder. All other parameters are as defined in the diagram. Since the end cap radius
1390*R* >= *r* and by definition for this geometry *h* < 0, *h* is then defined by *r* and *R* as
[1c03e14]1391
[38d4102]1392*h* = -1 \* sqrt(*R*\ :sup:`2` - *r*\ :sup:`2`)
[1c03e14]1393
[38d4102]1394The scattered intensity *I(q)* is calculated as
[1c03e14]1395
[7f42aad]1396.. image:: img/image113.jpg
[1c03e14]1397
[38d4102]1398where the amplitude *A(q)* is given as
[1c03e14]1399
[7f42aad]1400.. image:: img/image114.jpg
[1c03e14]1401
[38d4102]1402The < > brackets denote an average of the structure over all orientations. <\ *A*\ :sup:`2`\ *(q)*> is then the form
1403factor, *P(q)*. The scale factor is equivalent to the volume fraction of cylinders, each of volume, *V*. Contrast is the
1404difference of scattering length densities of the cylinder and the surrounding solvent.
[1c03e14]1405
[38d4102]1406The volume of the Capped Cylinder is (with *h* as a positive value here)
[1c03e14]1407
[7f42aad]1408.. image:: img/image115.jpg
[1c03e14]1409
[6386cd8]1410and its radius-of-gyration
[1c03e14]1411
[7f42aad]1412.. image:: img/image116.jpg
[1c03e14]1413
[38d4102]1414**The requirement that** *R* >= *r* **is not enforced in the model! It is up to you to restrict this during analysis.**
[1c03e14]1415
[38d4102]1416This following example dataset is produced by running the MacroCappedCylinder(), using 200 data points,
1417*qmin* = 0.001 |Ang^-1|, *qmax* = 0.7 |Ang^-1| and the default values
[1c03e14]1418
1419==============  ========  =============
1420Parameter name  Units     Default value
1421==============  ========  =============
1422scale           None      1.0
1423len_cyl         |Ang|     400.0
1424rad_cap         |Ang|     40.0
1425rad_cyl         |Ang|     20.0
1426sld_capcyl      |Ang^-2|  1.0e-006
1427sld_solv        |Ang^-2|  6.3e-006
1428background      |cm^-1|   0
1429==============  ========  =============
1430
[7f42aad]1431.. image:: img/image117.jpg
[1c03e14]1432
1433*Figure. 1D plot using the default values (w/256 data point).*
1434
[38d4102]1435For 2D data: The 2D scattering intensity is calculated similar to the 2D cylinder model. For example, for
1436|theta| = 45 deg and |phi| =0 deg with default values for other parameters
[1c03e14]1437
[7f42aad]1438.. image:: img/image118.jpg
[1c03e14]1439
1440*Figure. 2D plot (w/(256X265) data points).*
1441
[7f42aad]1442.. image:: img/image061.jpg
[1c03e14]1443
[38d4102]1444*Figure. Definition of the angles for oriented 2D cylinders.*
[1c03e14]1445
[38d4102]1446.. image:: img/image062.jpg
[1c03e14]1447
[38d4102]1448*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]1449
[38d4102]1450REFERENCE
[bf8c07b]1451
[93b6fcc]1452H Kaya, *J. Appl. Cryst.*, 37 (2004) 223-230
[bf8c07b]1453
[93b6fcc]1454H Kaya and N-R deSouza, *J. Appl. Cryst.*, 37 (2004) 508-509 (addenda and errata)
[1c03e14]1455
1456
1457
1458.. _CoreShellCylinderModel:
1459
[38d4102]1460**2.1.17. CoreShellCylinderModel**
[1c03e14]1461
[38d4102]1462This model provides the form factor for a circular cylinder with a core-shell scattering length density profile. The
1463form factor is normalized by the particle volume.
[1c03e14]1464
[38d4102]1465*2.1.17.1. Definition*
[1c03e14]1466
[38d4102]1467The output of the 2D scattering intensity function for oriented core-shell cylinders is given by (Kline, 2006)
[1c03e14]1468
[38d4102]1469.. image:: img/image067.PNG
[1c03e14]1470
[38d4102]1471where
[1c03e14]1472
[38d4102]1473.. image:: img/image068.PNG
[1c03e14]1474
[38d4102]1475.. image:: img/image239.PNG
[1c03e14]1476
[38d4102]1477and |alpha| is the angle between the axis of the cylinder and the *q*\ -vector, *Vs* is the volume of the outer shell
1478(i.e. the total volume, including the shell), *Vc* is the volume of the core, *L* is the length of the core, *r* is the
1479radius of the core, *t* is the thickness of the shell, |rho|\ :sub:`c` is the scattering length density of the core,
1480|rho|\ :sub:`s` is the scattering length density of the shell, |rho|\ :sub:`solv` is the scattering length density of
1481the solvent, and *bkg* is the background level. The outer radius of the shell is given by *r+t* and the total length of
1482the outer shell is given by *L+2t*. *J1* is the first order Bessel function.
[1c03e14]1483
[7f42aad]1484.. image:: img/image069.jpg
[1c03e14]1485
[38d4102]1486To provide easy access to the orientation of the core-shell cylinder, we define the axis of the cylinder using two
1487angles |theta| and |phi|\ . As for the case of the cylinder, those angles are defined in Figure 2 of the CylinderModel.
[1c03e14]1488
[38d4102]1489NB: The 2nd virial coefficient of the cylinder is calculated based on the radius and 2 length values, and used as the
1490effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]1491
[38d4102]1492The returned value is scaled to units of |cm^-1| and the parameters of the core-shell cylinder model are the following
[1c03e14]1493
1494==============  ========  =============
1495Parameter name  Units     Default value
1496==============  ========  =============
1497scale           None      1.0
1498radius          |Ang|     20.0
1499thickness       |Ang|     10.0
1500length          |Ang|     400.0
1501core_sld        |Ang^-2|  1e-6
1502shell_sld       |Ang^-2|  4e-6
1503solvent_sld     |Ang^-2|  1e-6
1504background      |cm^-1|   0.0
1505axis_theta      degree    90
1506axis_phi        degree    0.0
1507==============  ========  =============
1508
[38d4102]1509The output of the 1D scattering intensity function for randomly oriented cylinders is then given by the equation above.
[1c03e14]1510
[38d4102]1511The *axis_theta* and *axis_phi* parameters are not used for the 1D output. Our implementation of the scattering kernel
1512and the 1D scattering intensity use the c-library from NIST.
[1c03e14]1513
[38d4102]1514*2.1.17.2. Validation of the CoreShellCylinderModel*
[1c03e14]1515
[38d4102]1516Validation of our code was done by comparing the output of the 1D model to the output of the software provided by the
1517NIST (Kline, 2006). Figure 1 shows a comparison of the 1D output of our model and the output of the NIST software.
[1c03e14]1518
[7f42aad]1519.. image:: img/image070.jpg
[1c03e14]1520
[38d4102]1521*Figure 1: Comparison of the SasView scattering intensity for a core-shell cylinder with the output of the NIST SANS*
1522*analysis software.* The parameters were set to: *Scale* = 1.0, *Radius* = 20 |Ang|, *Thickness* = 10 |Ang|,
1523*Length* = 400 |Ang|, *Core_sld* = 1e-6 |Ang^-2|, *Shell_sld* = 4e-6 |Ang^-2|, *Solvent_sld* = 1e-6 |Ang^-2|,
1524and *Background* = 0.01 |cm^-1|.
[1c03e14]1525
[38d4102]1526Averaging over a distribution of orientation is done by evaluating the equation above. Since we have no other software
1527to compare the implementation of the intensity for fully oriented cylinders, we can compare the result of averaging our
15282D output using a uniform distribution *p(*\ |theta|,\ |phi|\ *)* = 1.0. Figure 2 shows the result of such a cross-check.
[1c03e14]1529
[7f42aad]1530.. image:: img/image071.jpg
[1c03e14]1531
[38d4102]1532*Figure 2: Comparison of the intensity for uniformly distributed core-shell cylinders calculated from our 2D model and*
1533*the intensity from the NIST SANS analysis software.* The parameters used were: *Scale* = 1.0, *Radius* = 20 |Ang|,
1534*Thickness* = 10 |Ang|, *Length* =400 |Ang|, *Core_sld* = 1e-6 |Ang^-2|, *Shell_sld* = 4e-6 |Ang^-2|,
1535*Solvent_sld* = 1e-6 |Ang^-2|, and *Background* = 0.0 |cm^-1|.
[1c03e14]1536
[7f42aad]1537.. image:: img/image061.jpg
[1c03e14]1538
[38d4102]1539*Figure. Definition of the angles for oriented core-shell cylinders.*
[1c03e14]1540
[7f42aad]1541.. image:: img/image062.jpg
[1c03e14]1542
[38d4102]1543*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]1544
15452013/11/26 - Description reviewed by Heenan, R.
1546
1547
1548
1549.. _EllipticalCylinderModel:
1550
1551**2.1.18 EllipticalCylinderModel**
1552
[38d4102]1553This function calculates the scattering from an elliptical cylinder.
[1c03e14]1554
[38d4102]1555*2.1.18.1 Definition for 2D (orientated system)*
[1c03e14]1556
[38d4102]1557The angles |theta| and |phi| define the orientation of the axis of the cylinder. The angle |bigpsi| is defined as the
1558orientation of the major axis of the ellipse with respect to the vector *Q*\ . A gaussian polydispersity can be added
1559to any of the orientation angles, and also for the minor radius and the ratio of the ellipse radii.
[1c03e14]1560
[38d4102]1561.. image:: img/image098.gif
[1c03e14]1562
[38d4102]1563*Figure.* *a* = *r_minor* and |nu|\ :sub:`n` = *r_ratio* (i.e., *r_major* / *r_minor*).
[1c03e14]1564
[38d4102]1565The function calculated is
[1c03e14]1566
[38d4102]1567.. image:: img/image099.PNG
[1c03e14]1568
[38d4102]1569with the functions
[1c03e14]1570
[38d4102]1571.. image:: img/image100.PNG
[1c03e14]1572
[38d4102]1573and the angle |bigpsi| is defined as the orientation of the major axis of the ellipse with respect to the vector *q*\ .
[1c03e14]1574
[38d4102]1575*2.1.18.2 Definition for 1D (no preferred orientation)*
[1c03e14]1576
[38d4102]1577The form factor is averaged over all possible orientation before normalized by the particle volume
[1c03e14]1578
[38d4102]1579*P(q)* = *scale* \* <*F*\ :sup:`2`> / *V*
[1c03e14]1580
1581The returned value is scaled to units of |cm^-1|.
1582
[38d4102]1583To provide easy access to the orientation of the elliptical cylinder, we define the axis of the cylinder using two
1584angles |theta|, |phi| and |bigpsi|. As for the case of the cylinder, the angles |theta| and |phi| are defined on
1585Figure 2 of CylinderModel. The angle |bigpsi| is the rotational angle around its own long_c axis against the *q* plane.
1586For example, |bigpsi| = 0 when the *r_minor* axis is parallel to the *x*\ -axis of the detector.
[1c03e14]1587
[38d4102]1588All angle parameters are valid and given only for 2D calculation; ie, an oriented system.
[1c03e14]1589
[7f42aad]1590.. image:: img/image101.jpg
[1c03e14]1591
[38d4102]1592*Figure. Definition of angles for 2D*
[1c03e14]1593
[7f42aad]1594.. image:: img/image062.jpg
[1c03e14]1595
[38d4102]1596*Figure. Examples of the angles for oriented elliptical cylinders against the detector plane.*
[1c03e14]1597
[38d4102]1598NB: The 2nd virial coefficient of the cylinder is calculated based on the averaged radius (= sqrt(*r_minor*\ :sup:`2` \* *r_ratio*))
1599and length values, and used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]1600
1601==============  ========  =============
1602Parameter name  Units     Default value
1603==============  ========  =============
1604scale           None      1.0
1605r_minor         |Ang|     20.0
1606r_ratio         |Ang|     1.5
1607length          |Ang|     400.0
1608sldCyl          |Ang^-2|  4e-06
1609sldSolv         |Ang^-2|  1e-06
1610background      |cm^-1|   0
1611==============  ========  =============
1612
[7f42aad]1613.. image:: img/image102.jpg
[1c03e14]1614
1615*Figure. 1D plot using the default values (w/1000 data point).*
1616
[38d4102]1617*2.1.18.3 Validation of the EllipticalCylinderModel*
[1c03e14]1618
[38d4102]1619Validation of our code was done by comparing the output of the 1D calculation to the angular average of the output of
1620the 2D calculation over all possible angles. The figure below shows the comparison where the solid dot refers to
1621averaged 2D values while the line represents the result of the 1D calculation (for the 2D averaging, values of 76, 180,
1622and 76 degrees are taken for the angles of |theta|, |phi|, and |bigpsi| respectively).
[1c03e14]1623
[7f42aad]1624.. image:: img/image103.gif
[1c03e14]1625
1626*Figure. Comparison between 1D and averaged 2D.*
1627
[38d4102]1628In the 2D average, more binning in the angle |phi| is necessary to get the proper result. The following figure shows
1629the results of the averaging by varying the number of angular bins.
[1c03e14]1630
[7f42aad]1631.. image:: img/image104.gif
[1c03e14]1632
1633*Figure. The intensities averaged from 2D over different numbers of bins and angles.*
1634
1635REFERENCE
[bf8c07b]1636
[93b6fcc]1637L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum,
[38d4102]1638New York, (1987)
[1c03e14]1639
1640
1641
1642.. _FlexibleCylinderModel:
1643
1644**2.1.19. FlexibleCylinderModel**
1645
[38d4102]1646This model provides the form factor, *P(q)*, for a flexible cylinder where the form factor is normalized by the volume
1647of the cylinder. **Inter-cylinder interactions are NOT provided for.**
[1c03e14]1648
[38d4102]1649*P(q)* = *scale* \* <*F*\ :sup:`2`> / *V* + *background*
[1c03e14]1650
[38d4102]1651where the averaging < > is applied over all orientations for 1D.
[1c03e14]1652
[38d4102]1653The 2D scattering intensity is the same as 1D, regardless of the orientation of the *q* vector which is defined as
1654
1655.. image:: img/image040.gif
1656
1657*2.1.19.1. Definition*
1658
[7f42aad]1659.. image:: img/image075.jpg
[38d4102]1660
1661The chain of contour length, *L*, (the total length) can be described as a chain of some number of locally stiff
1662segments of length *l*\ :sub:`p`\ , the persistence length (the length along the cylinder over which the flexible
1663cylinder can be considered a rigid rod). The Kuhn length (*b* = 2 \* *l* :sub:`p`) is also used to describe the
1664stiffness of a chain.
1665
1666The returned value is in units of |cm^-1|, on absolute scale.
1667
1668In the parameters, the sldCyl and sldSolv represent the SLD of the chain/cylinder and solvent respectively.
[1c03e14]1669
1670==============  ========  =============
1671Parameter name  Units     Default value
1672==============  ========  =============
1673scale           None      1.0
1674radius          |Ang|     20
1675length          |Ang|     1000
1676sldCyl          |Ang^-2|  1e-06
1677sldSolv         |Ang^-2|  6.3e-06
1678background      |cm^-1|   0.01
1679kuhn_length     |Ang|     100
1680==============  ========  =============
1681
[7f42aad]1682.. image:: img/image076.jpg
[1c03e14]1683
1684*Figure. 1D plot using the default values (w/1000 data point).*
1685
[38d4102]1686Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
1687(Kline, 2006).
[1c03e14]1688
[38d4102]1689From the reference
[1c03e14]1690
[38d4102]1691  "Method 3 With Excluded Volume" is used. The model is a parametrization of simulations of a discrete representation
1692  of the worm-like chain model of Kratky and Porod applied in the pseudocontinuous limit. See equations (13,26-27) in
1693  the original reference for the details.
[1c03e14]1694
[38d4102]1695REFERENCE
[bf8c07b]1696
[93b6fcc]1697J S Pedersen and P Schurtenberger. *Scattering functions of semiflexible polymers with and without excluded volume*
[38d4102]1698*effects*. *Macromolecules*, 29 (1996) 7602-7612
[1c03e14]1699
[38d4102]1700Correction of the formula can be found in
[bf8c07b]1701
[93b6fcc]1702W R Chen, P D Butler and L J Magid, *Incorporating Intermicellar Interactions in the Fitting of SANS Data from*
[4ed2d0a1]1703*Cationic Wormlike Micelles*. *Langmuir*, 22(15) 2006 6539–6548
[1c03e14]1704
1705
1706
1707.. _FlexCylEllipXModel:
1708
1709**2.1.20 FlexCylEllipXModel**
1710
[38d4102]1711This model calculates the form factor for a flexible cylinder with an elliptical cross section and a uniform scattering
1712length density. The non-negligible diameter of the cylinder is included by accounting for excluded volume interactions
1713within the walk of a single cylinder. The form factor is normalized by the particle volume such that
[1c03e14]1714
[38d4102]1715*P(q)* = *scale* \* <*F*\ :sup:`2`> / *V* + *background*
1716
1717where < > is an average over all possible orientations of the flexible cylinder.
1718
1719*2.1.20.1. Definition*
[1c03e14]1720
[38d4102]1721The function calculated is from the reference given below. From that paper, "Method 3 With Excluded Volume" is used.
1722The model is a parameterization of simulations of a discrete representation of the worm-like chain model of Kratky and
1723Porod applied in the pseudo-continuous limit. See equations (13, 26-27) in the original reference for the details.
[1c03e14]1724
[38d4102]1725NB: there are several typos in the original reference that have been corrected by WRC. Details of the corrections are
1726in the reference below. Most notably
[1c03e14]1727
[38d4102]1728- Equation (13): the term (1 - w(QR)) should swap position with w(QR)
[1c03e14]1729
[38d4102]1730- Equations (23) and (24) are incorrect; WRC has entered these into Mathematica and solved analytically. The results
1731  were then converted to code.
[1c03e14]1732
1733- Equation (27) should be q0 = max(a3/sqrt(RgSquare),3) instead of max(a3*b/sqrt(RgSquare),3)
1734
1735- The scattering function is negative for a range of parameter values and q-values that are experimentally accessible. A correction function has been added to give the proper behavior.
1736
[7f42aad]1737.. image:: img/image077.jpg
[1c03e14]1738
[38d4102]1739The chain of contour length, *L*, (the total length) can be described as a chain of some number of locally stiff
1740segments of length *l*\ :sub:`p`\ , the persistence length (the length along the cylinder over which the flexible
1741cylinder can be considered a rigid rod). The Kuhn length (*b* = 2 \* *l* :sub:`p`) is also used to describe the
1742stiffness of a chain.
[1c03e14]1743
[38d4102]1744The cross section of the cylinder is elliptical, with minor radius *a*\ . The major radius is larger, so of course,
1745**the axis ratio (parameter 4) must be greater than one.** Simple constraints should be applied during curve fitting to
1746maintain this inequality.
[1c03e14]1747
1748The returned value is in units of |cm^-1|, on absolute scale.
1749
[38d4102]1750In the parameters, *sldCyl* and *sldSolv* represent the SLD of the chain/cylinder and solvent respectively. The
1751*scale*, and the contrast are both multiplicative factors in the model and are perfectly correlated. One or both of
1752these parameters must be held fixed during model fitting.
[1c03e14]1753
[38d4102]1754If the scale is set equal to the particle volume fraction, |phi|, the returned value is the scattered intensity per
1755unit volume, *I(q)* = |phi| \* *P(q)*.
[1c03e14]1756
[38d4102]1757**No inter-cylinder interference effects are included in this calculation.**
[1c03e14]1758
[38d4102]1759For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]1760
[38d4102]1761.. image:: img/image008.PNG
[1c03e14]1762
[38d4102]1763This example dataset is produced by running the Macro FlexCylEllipXModel, using 200 data points, *qmin* = 0.001 |Ang^-1|,
1764*qmax* = 0.7 |Ang^-1| and the default values below
[1c03e14]1765
1766==============  ========  =============
1767Parameter name  Units     Default value
1768==============  ========  =============
1769axis_ratio      None      1.5
1770background      |cm^-1|   0.0001
1771Kuhn_length     |Ang|     100
1772Contour length  |Ang|     1e+3
1773radius          |Ang|     20.0
1774scale           None      1.0
1775sldCyl          |Ang^-2|  1e-6
1776sldSolv         |Ang^-2|  6.3e-6
1777==============  ========  =============
1778
[7f42aad]1779.. image:: img/image078.jpg
[1c03e14]1780
1781*Figure. 1D plot using the default values (w/200 data points).*
1782
[38d4102]1783REFERENCE
[bf8c07b]1784
[93b6fcc]1785J S Pedersen and P Schurtenberger. *Scattering functions of semiflexible polymers with and without excluded volume*
[38d4102]1786*effects*. *Macromolecules*, 29 (1996) 7602-7612
1787
1788Correction of the formula can be found in
[bf8c07b]1789
[93b6fcc]1790W R Chen, P D Butler and L J Magid, *Incorporating Intermicellar Interactions in the Fitting of SANS Data from*
[4ed2d0a1]1791*Cationic Wormlike Micelles*. *Langmuir*, 22(15) 2006 6539–6548
[38d4102]1792
[1c03e14]1793
1794
1795.. _CoreShellBicelleModel:
1796
1797**2.1.21 CoreShellBicelleModel**
1798
[77cfcf0]1799This model provides the form factor for a circular cylinder with a core-shell scattering length density profile. The
1800form factor is normalized by the particle volume.
[1c03e14]1801
[77cfcf0]1802This model is a more general case of core-shell cylinder model (see above and reference below) in that the parameters
1803of the shell are separated into a face-shell and a rim-shell so that users can set different values of the thicknesses
1804and SLDs.
[1c03e14]1805
[7f42aad]1806.. image:: img/image240.png
[1c03e14]1807
[77cfcf0]1808*(Graphic from DOI: 10.1039/C0NP00002G)*
1809
1810The returned value is scaled to units of |cm^-1| and the parameters of the CoreShellBicelleModel are the following
[1c03e14]1811
1812==============  ========  =============
1813Parameter name  Units     Default value
1814==============  ========  =============
1815scale           None      1.0
1816radius          |Ang|     20.0
1817rim_thick       |Ang|     10.0
1818face_thick      |Ang|     10.0
1819length          |Ang|     400.0
1820core_sld        |Ang^-2|  1e-6
1821rim_sld         |Ang^-2|  4e-6
1822face_sld        |Ang^-2|  4e-6
1823solvent_sld     |Ang^-2|  1e-6
1824background      |cm^-1|   0.0
1825axis_theta      degree    90
1826axis_phi        degree    0.0
1827==============  ========  =============
1828
[77cfcf0]1829The output of the 1D scattering intensity function for randomly oriented cylinders is then given by the equation above.
[1c03e14]1830
[77cfcf0]1831The *axis_theta* and *axis_phi* parameters are not used for the 1D output. Our implementation of the scattering kernel
1832and the 1D scattering intensity use the c-library from NIST.
[1c03e14]1833
[77cfcf0]1834.. image:: img/cscylbicelle_pic.jpg
[1c03e14]1835
1836*Figure. 1D plot using the default values (w/200 data point).*
1837
[7f42aad]1838.. image:: img/image061.jpg
[1c03e14]1839
[77cfcf0]1840*Figure. Definition of the angles for the oriented CoreShellBicelleModel.*
[1c03e14]1841
[7f42aad]1842.. image:: img/image062.jpg
[1c03e14]1843
[77cfcf0]1844*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]1845
1846REFERENCE
[bf8c07b]1847
[93b6fcc]1848L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum Press,
[77cfcf0]1849New York, (1987)
[1c03e14]1850
1851
1852
1853.. _BarBellModel:
1854
1855**2.1.22. BarBellModel**
1856
[77cfcf0]1857Calculates the scattering from a barbell-shaped cylinder (This model simply becomes the DumBellModel when the length of
1858the cylinder, *L*, is set to zero). That is, a sphereocylinder with spherical end caps that have a radius larger than
1859that of the cylinder and the center of the end cap radius lies outside of the cylinder. All dimensions of the BarBell
1860are considered to be monodisperse. See the diagram for the details of the geometry and restrictions on parameter values.
[1c03e14]1861
[77cfcf0]1862*2.1.22.1. Definition*
[1c03e14]1863
[77cfcf0]1864The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
[1c03e14]1865
1866The barbell geometry is defined as
1867
[7f42aad]1868.. image:: img/image105.jpg
[1c03e14]1869
[77cfcf0]1870where *r* is the radius of the cylinder. All other parameters are as defined in the diagram.
[1c03e14]1871
[77cfcf0]1872Since the end cap radius
1873*R* >= *r* and by definition for this geometry *h* < 0, *h* is then defined by *r* and *R* as
[1c03e14]1874
[77cfcf0]1875*h* = -1 \* sqrt(*R*\ :sup:`2` - *r*\ :sup:`2`)
[1c03e14]1876
[77cfcf0]1877The scattered intensity *I(q)* is calculated as
[1c03e14]1878
[77cfcf0]1879.. image:: img/image106.PNG
[1c03e14]1880
[77cfcf0]1881where the amplitude *A(q)* is given as
[1c03e14]1882
[77cfcf0]1883.. image:: img/image107.PNG
[1c03e14]1884
[77cfcf0]1885The < > brackets denote an average of the structure over all orientations. <*A* :sup:`2`\ *(q)*> is then the form
1886factor, *P(q)*. The scale factor is equivalent to the volume fraction of cylinders, each of volume, *V*. Contrast is
1887the difference of scattering length densities of the cylinder and the surrounding solvent.
[1c03e14]1888
[77cfcf0]1889The volume of the barbell is
[1c03e14]1890
[7f42aad]1891.. image:: img/image108.jpg
[1c03e14]1892
1893
[6386cd8]1894and its radius-of-gyration is
[1c03e14]1895
[7f42aad]1896.. image:: img/image109.jpg
[1c03e14]1897
[77cfcf0]1898**The requirement that** *R* >= *r* **is not enforced in the model!** It is up to you to restrict this during analysis.
[1c03e14]1899
[77cfcf0]1900This example dataset is produced by running the Macro PlotBarbell(), using 200 data points, *qmin* = 0.001 |Ang^-1|,
1901*qmax* = 0.7 |Ang^-1| and the following default values
[1c03e14]1902
1903==============  ========  =============
1904Parameter name  Units     Default value
1905==============  ========  =============
1906scale           None      1.0
1907len_bar         |Ang|     400.0
1908rad_bar         |Ang|     20.0
1909rad_bell        |Ang|     40.0
1910sld_barbell     |Ang^-2|  1.0e-006
1911sld_solv        |Ang^-2|  6.3e-006
1912background      |cm^-1|   0
1913==============  ========  =============
1914
[7f42aad]1915.. image:: img/image110.jpg
[1c03e14]1916
1917*Figure. 1D plot using the default values (w/256 data point).*
1918
[77cfcf0]1919For 2D data: The 2D scattering intensity is calculated similar to the 2D cylinder model. For example, for
1920|theta| = 45 deg and |phi| = 0 deg with default values for other parameters
[1c03e14]1921
[7f42aad]1922.. image:: img/image111.jpg
[1c03e14]1923
1924*Figure. 2D plot (w/(256X265) data points).*
1925
[7f42aad]1926.. image:: img/image061.jpg
[1c03e14]1927
[77cfcf0]1928*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]1929
[7f42aad]1930.. image:: img/image062.jpg
[1c03e14]1931
1932Figure. Definition of the angles for oriented 2D barbells.
1933
[77cfcf0]1934REFERENCE
[bf8c07b]1935
[93b6fcc]1936H Kaya, *J. Appl. Cryst.*, 37 (2004) 37 223-230
[bf8c07b]1937
[93b6fcc]1938H Kaya and N R deSouza, *J. Appl. Cryst.*, 37 (2004) 508-509 (addenda and errata)
[77cfcf0]1939
[1c03e14]1940
1941
1942.. _StackedDisksModel:
1943
1944**2.1.23. StackedDisksModel**
1945
[77cfcf0]1946This model provides the form factor, *P(q)*, for stacked discs (tactoids) with a core/layer structure where the form
1947factor is normalized by the volume of the cylinder. Assuming the next neighbor distance (d-spacing) in a stack of
1948parallel discs obeys a Gaussian distribution, a structure factor *S(q)* proposed by Kratky and Porod in 1949 is used
1949in this function.
[1c03e14]1950
[77cfcf0]1951Note that the resolution smearing calculation uses 76 Gauss quadrature points to properly smear the model since the
1952function is HIGHLY oscillatory, especially around the *q*-values that correspond to the repeat distance of the layers.
[1c03e14]1953
[77cfcf0]1954The 2D scattering intensity is the same as 1D, regardless of the orientation of the *q* vector which is defined as
[1c03e14]1955
[77cfcf0]1956.. image:: img/image008.PNG
[1c03e14]1957
[77cfcf0]1958The returned value is in units of |cm^-1| |sr^-1|, on absolute scale.
[1c03e14]1959
[77cfcf0]1960*2.1.23.1 Definition*
[1c03e14]1961
[7f42aad]1962.. image:: img/image079.gif
[1c03e14]1963
[4ed2d0a1]1964The scattering intensity *I(q)* is
[1c03e14]1965
[77cfcf0]1966.. image:: img/image081.PNG
[1c03e14]1967
[77cfcf0]1968where the contrast
[1c03e14]1969
[77cfcf0]1970.. image:: img/image082.PNG
[1c03e14]1971
[77cfcf0]1972and *N* is the number of discs per unit volume, |alpha| is the angle between the axis of the disc and *q*, and *Vt*
1973and *Vc* are the total volume and the core volume of a single disc, respectively.
[1c03e14]1974
[77cfcf0]1975.. image:: img/image083.PNG
[1c03e14]1976
[77cfcf0]1977where *d* = thickness of the layer (*layer_thick*), 2\ *h* = core thickness (*core_thick*), and *R* = radius of the
1978disc (*radius*).
[1c03e14]1979
[77cfcf0]1980.. image:: img/image084.PNG
[1c03e14]1981
[77cfcf0]1982where *n* = the total number of the disc stacked (*n_stacking*), *D* = the next neighbor center-to-center distance
1983(*d-spacing*), and |sigma|\ D= the Gaussian standard deviation of the d-spacing (*sigma_d*).
[1c03e14]1984
[77cfcf0]1985To provide easy access to the orientation of the stacked disks, we define the axis of the cylinder using two angles
1986|theta| and |phi|. These angles are defined on Figure 2 of CylinderModel.
[1c03e14]1987
[77cfcf0]1988NB: The 2nd virial coefficient of the cylinder is calculated based on the *radius* and *length* = *n_stacking* \*
1989(*core_thick* + 2 \* *layer_thick*) values, and used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]1990
1991==============  ========  =============
1992Parameter name  Units     Default value
1993==============  ========  =============
1994background      |cm^-1|   0.001
1995core_sld        |Ang^-2|  4e-006
1996core_thick      |Ang|     10
1997layer_sld       |Ang^-2|  0
1998layer_thick     |Ang|     15
1999n_stacking      None      1
2000radius          |Ang|     3e+03
2001scale           None      0.01
2002sigma_d         |Ang|     0
2003solvent_sld     |Ang^-2|  5e-06
2004==============  ========  =============
2005
[7f42aad]2006.. image:: img/image085.jpg
[1c03e14]2007
2008*Figure. 1D plot using the default values (w/1000 data point).*
2009
[7f42aad]2010.. image:: img/image086.jpg
[1c03e14]2011
[77cfcf0]2012*Figure. Examples of the angles for oriented stackeddisks against the detector plane.*
[1c03e14]2013
[7f42aad]2014.. image:: img/image062.jpg
[1c03e14]2015
[77cfcf0]2016*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]2017
[77cfcf0]2018Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2019(Kline, 2006)
[1c03e14]2020
2021REFERENCE
[bf8c07b]2022
[93b6fcc]2023A Guinier and G Fournet, *Small-Angle Scattering of X-Rays*, John Wiley and Sons, New York, 1955
[bf8c07b]2024
[93b6fcc]2025O Kratky and G Porod, *J. Colloid Science*, 4, (1949) 35
[bf8c07b]2026
[93b6fcc]2027J S Higgins and H C Benoit, *Polymers and Neutron Scattering*, Clarendon, Oxford, 1994
[1c03e14]2028
2029
2030
2031.. _PringleModel:
2032
2033**2.1.24. PringleModel**
2034
[77cfcf0]2035This model provides the form factor, *P(q)*, for a 'pringle' or 'saddle-shaped' object (a hyperbolic paraboloid).
[1c03e14]2036
[7f42aad]2037.. image:: img/image241.png
[1c03e14]2038
[77cfcf0]2039*(Graphic from Matt Henderson, matt@matthen.com)*
[1c03e14]2040
2041The returned value is in units of |cm^-1|, on absolute scale.
2042
[77cfcf0]2043The form factor calculated is
[1c03e14]2044
[77cfcf0]2045.. image:: img/pringle_eqn_1.jpg
[1c03e14]2046
2047where
2048
[77cfcf0]2049.. image:: img/pringle_eqn_2.jpg
[1c03e14]2050
[77cfcf0]2051The parameters of the model and a plot comparing the pringle model with the equivalent cylinder are shown below.
[1c03e14]2052
2053==============  ========  =============
2054Parameter name  Units     Default value
2055==============  ========  =============
2056background      |cm^-1|   0.0
2057alpha           None      0.001
2058beta            None      0.02
2059radius          |Ang|     60
2060scale           None      1
2061sld_pringle     |Ang^-2|  1e-06
2062sld_solvent     |Ang^-2|  6.3e-06
2063thickness       |Ang|     10
2064==============  ========  =============
2065
[77cfcf0]2066.. image:: img/pringle-vs-cylinder.png
[1c03e14]2067
2068*Figure. 1D plot using the default values (w/150 data point).*
2069
2070REFERENCE
[bf8c07b]2071
[93b6fcc]2072S Alexandru Rautu, Private Communication.
[1c03e14]2073
2074
2075
2076.. _EllipsoidModel:
2077
2078**2.1.25. EllipsoidModel**
2079
[ca1af82]2080This model provides the form factor for an ellipsoid (ellipsoid of revolution) with uniform scattering length density.
2081The form factor is normalized by the particle volume.
[1c03e14]2082
[ca1af82]2083*2.1.25.1. Definition*
[1c03e14]2084
[ca1af82]2085The output of the 2D scattering intensity function for oriented ellipsoids is given by (Feigin, 1987)
[1c03e14]2086
[ca1af82]2087.. image:: img/image059.PNG
[1c03e14]2088
[ca1af82]2089where
[1c03e14]2090
[ca1af82]2091.. image:: img/image119.PNG
[1c03e14]2092
[ca1af82]2093and
[1c03e14]2094
[ca1af82]2095.. image:: img/image120.PNG
[1c03e14]2096
[ca1af82]2097|alpha| is the angle between the axis of the ellipsoid and the *q*\ -vector, *V* is the volume of the ellipsoid, *Ra*
2098is the radius along the rotational axis of the ellipsoid, *Rb* is the radius perpendicular to the rotational axis of
[58eccf6]2099the ellipsoid and |drho| (contrast) is the scattering length density difference between the scatterer and
[ca1af82]2100the solvent.
[1c03e14]2101
[ca1af82]2102To provide easy access to the orientation of the ellipsoid, we define the rotation axis of the ellipsoid using two
2103angles |theta| and |phi|\ . These angles are defined on Figure 2 of the CylinderModel_. For the ellipsoid, |theta|
2104is the angle between the rotational axis and the *z*\ -axis.
[1c03e14]2105
[ca1af82]2106NB: The 2nd virial coefficient of the solid ellipsoid is calculated based on the *radius_a* and *radius_b* values, and
2107used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]2108
[ca1af82]2109The returned value is scaled to units of |cm^-1| and the parameters of the EllipsoidModel are the following
[1c03e14]2110
2111================  ========  =============
2112Parameter name    Units     Default value
2113================  ========  =============
2114scale             None      1.0
2115radius_a (polar)  |Ang|     20.0
2116radius_b (equat)  |Ang|     400.0
2117sldEll            |Ang^-2|  4.0e-6
2118sldSolv           |Ang^-2|  1.0e-6
2119background        |cm^-1|   0.0
2120axis_theta        degree    90
2121axis_phi          degree    0.0
2122================  ========  =============
2123
[ca1af82]2124The output of the 1D scattering intensity function for randomly oriented ellipsoids is then given by the equation
2125above.
[1c03e14]2126
[7f42aad]2127.. image:: img/image121.jpg
[1c03e14]2128
[ca1af82]2129The *axis_theta* and *axis_phi* parameters are not used for the 1D output. Our implementation of the scattering
2130kernel and the 1D scattering intensity use the c-library from NIST.
[1c03e14]2131
[7f42aad]2132.. image:: img/image122.jpg
[1c03e14]2133
[ca1af82]2134*Figure. The angles for oriented ellipsoid.*
[1c03e14]2135
[ca1af82]2136*2.1.25.1. Validation of the EllipsoidModel*
[1c03e14]2137
[ca1af82]2138Validation of our code was done by comparing the output of the 1D model to the output of the software provided by the
2139NIST (Kline, 2006). Figure 1 below shows a comparison of the 1D output of our model and the output of the NIST
2140software.
[1c03e14]2141
[7f42aad]2142.. image:: img/image123.jpg
[1c03e14]2143
[ca1af82]2144*Figure 1: Comparison of the SasView scattering intensity for an ellipsoid with the output of the NIST SANS analysis*
2145*software.* The parameters were set to: *Scale* = 1.0, *Radius_a* = 20, *Radius_b* = 400, *Contrast* = 3e-6 |Ang^-2|,
2146and *Background* = 0.01 |cm^-1|.
[1c03e14]2147
[ca1af82]2148Averaging over a distribution of orientation is done by evaluating the equation above. Since we have no other software
2149to compare the implementation of the intensity for fully oriented ellipsoids, we can compare the result of averaging
2150our 2D output using a uniform distribution *p(*\ |theta|,\ |phi|\ *)* = 1.0. Figure 2 shows the result of such a
[1c03e14]2151cross-check.
2152
[7f42aad]2153.. image:: img/image124.jpg
[1c03e14]2154
[ca1af82]2155*Figure 2: Comparison of the intensity for uniformly distributed ellipsoids calculated from our 2D model and the*
2156*intensity from the NIST SANS analysis software.* The parameters used were: *Scale* = 1.0, *Radius_a* = 20,
2157*Radius_b* = 400, *Contrast* = 3e-6 |Ang^-2|, and *Background* = 0.0 |cm^-1|.
[1c03e14]2158
[ca1af82]2159The discrepancy above *q* = 0.3 |cm^-1| is due to the way the form factors are calculated in the c-library provided by
2160NIST. A numerical integration has to be performed to obtain *P(q)* for randomly oriented particles. The NIST software
2161performs that integration with a 76-point Gaussian quadrature rule, which will become imprecise at high q where the
2162amplitude varies quickly as a function of *q*. The SasView result shown has been obtained by summing over 501
2163equidistant points in . Our result was found to be stable over the range of *q* shown for a number of points higher
2164than 500.
[1c03e14]2165
[ca1af82]2166REFERENCE
[bf8c07b]2167
[93b6fcc]2168L A Feigin and D I Svergun. *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum,
[ca1af82]2169New York, 1987.
[1c03e14]2170
2171
2172
2173.. _CoreShellEllipsoidModel:
2174
2175**2.1.26. CoreShellEllipsoidModel**
2176
[990c2eb]2177This model provides the form factor, *P(q)*, for a core shell ellipsoid (below) where the form factor is normalized by
2178the volume of the cylinder.
[1c03e14]2179
[990c2eb]2180*P(q)* = *scale* \* <*f*\ :sup:`2`> / *V* + *background*
[1c03e14]2181
[990c2eb]2182where the volume *V* = (4/3)\ |pi| (*r*\ :sub:`maj` *r*\ :sub:`min`\ :sup:`2`) and the averaging < > is applied over
2183all orientations for 1D.
[1c03e14]2184
[7f42aad]2185.. image:: img/image125.gif
[1c03e14]2186
[990c2eb]2187The returned value is in units of |cm^-1|, on absolute scale.
[1c03e14]2188
[990c2eb]2189*2.1.26.1. Definition*
[1c03e14]2190
[990c2eb]2191The form factor calculated is
[1c03e14]2192
[990c2eb]2193.. image:: img/image126.PNG
[1c03e14]2194
[990c2eb]2195To provide easy access to the orientation of the core-shell ellipsoid, we define the axis of the solid ellipsoid using
2196two angles |theta| and |phi|\ . These angles are defined on Figure 2 of the CylinderModel_. The contrast is defined as
2197SLD(core) - SLD(shell) and SLD(shell) - SLD(solvent).
[1c03e14]2198
[990c2eb]2199In the parameters, *equat_core* = equatorial core radius, *polar_core* = polar core radius, *equat_shell* =
2200*r*\ :sub:`min` (or equatorial outer radius), and *polar_shell* = = *r*\ :sub:`maj` (or polar outer radius).
[1c03e14]2201
[990c2eb]2202NB: The 2nd virial coefficient of the solid ellipsoid is calculated based on the *radius_a* (= *polar_shell*) and
2203*radius_b* (= *equat_shell*) values, and used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]2204
2205==============  ========  =============
2206Parameter name  Units     Default value
2207==============  ========  =============
2208background      |cm^-1|   0.001
2209equat_core      |Ang|     200
2210equat_shell     |Ang|     250
2211sld_solvent     |Ang^-2|  6e-06
2212ploar_shell     |Ang|     30
2213ploar_core      |Ang|     20
2214scale           None      1
2215sld_core        |Ang^-2|  2e-06
2216sld_shell       |Ang^-2|  1e-06
2217==============  ========  =============
2218
[7f42aad]2219.. image:: img/image127.jpg
[1c03e14]2220
2221*Figure. 1D plot using the default values (w/1000 data point).*
2222
[7f42aad]2223.. image:: img/image122.jpg
[1c03e14]2224
[990c2eb]2225*Figure. The angles for oriented CoreShellEllipsoid.*
[1c03e14]2226
[990c2eb]2227Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2228(Kline, 2006).
[1c03e14]2229
2230REFERENCE
[bf8c07b]2231
[93b6fcc]2232M Kotlarchyk, S H Chen, *J. Chem. Phys.*, 79 (1983) 2461
[bf8c07b]2233
[93b6fcc]2234S J Berr, *Phys. Chem.*, 91 (1987) 4760
[1c03e14]2235
2236
2237
[77cfcf0]2238.. _CoreShellEllipsoidXTModel:
2239
2240**2.1.27. CoreShellEllipsoidXTModel**
2241
2242An alternative version of *P(q)* for the core-shell ellipsoid (see CoreShellEllipsoidModel), having as parameters the
2243core axial ratio *X* and a shell thickness, which are more often what we would like to determine.
2244
2245This model is also better behaved when polydispersity is applied than the four independent radii in
2246CoreShellEllipsoidModel.
2247
[990c2eb]2248*2.1.27.1. Definition*
[77cfcf0]2249
2250.. image:: img/image125.gif
2251
2252The geometric parameters of this model are
2253
2254  *equat_core* = equatorial core radius = *Rminor_core*
2255  *X_core* = *polar_core* / *equat_core* = *Rmajor_core* / *Rminor_core*
2256  *T_shell* = *equat_outer* - *equat_core* = *Rminor_outer* - *Rminor_core*
2257  *XpolarShell* = *Tpolar_shell* / *T_shell* = (*Rmajor_outer* - *Rmajor_core*)/(*Rminor_outer* - *Rminor_core*)
2258
2259In terms of the original radii
2260
2261  *polar_core* = *equat_core* \* *X_core*
2262  *equat_shell* = *equat_core* + *T_shell*
2263  *polar_shell* = *equat_core* \* *X_core* + *T_shell* \* *XpolarShell*
2264
2265  (where we note that "shell" perhaps confusingly, relates to the outer radius)
2266
2267When *X_core* < 1 the core is oblate; when *X_core* > 1  it is prolate. *X_core* = 1 is a spherical core.
2268
2269For a fixed shell thickness *XpolarShell* = 1, to scale the shell thickness pro-rata with the radius
2270*XpolarShell* = *X_core*.
2271
2272When including an *S(q)*, the radius in *S(q)* is calculated to be that of a sphere with the same 2nd virial
2273coefficient of the **outer** surface of the ellipsoid. This may have some undesirable effects if the aspect ratio of
2274the ellipsoid is large (ie, if *X* << 1 or *X* >> 1), when the *S(q)* - which assumes spheres - will not in any case
2275be valid.
2276
[6386cd8]2277If SAS data are in absolute units, and the SLDs are correct, then *scale* should be the total volume fraction of the
[77cfcf0]2278"outer particle". When *S(q)* is introduced this moves to the *S(q)* volume fraction, and *scale* should then be 1.0,
2279or contain some other units conversion factor (for example, if you have SAXS data).
2280
2281==============  ========  =============
2282Parameter name  Units     Default value
2283==============  ========  =============
2284background      |cm^-1|   0.001
2285equat_core      |Ang|     20
2286scale           None      0.05
2287sld_core        |Ang^-2|  2.0e-6
2288sld_shell       |Ang^-2|  1.0e-6
2289sld_solv        |Ang^-2|  6.3e-6
2290T_shell         |Ang|     30
2291X_core          None      3.0
2292XpolarShell     None      1.0
2293==============  ========  =============
2294
2295REFERENCE
[bf8c07b]2296
[93b6fcc]2297R K Heenan, Private communication
[77cfcf0]2298
2299
2300
[bf8c07b]2301.. _TriaxialEllipsoidModel:
[1c03e14]2302
[77cfcf0]2303**2.1.28. TriaxialEllipsoidModel**
[1c03e14]2304
[990c2eb]2305This model provides the form factor, *P(q)*, for an ellipsoid (below) where all three axes are of different lengths,
2306i.e., *Ra* =< *Rb* =< *Rc*\ . **Users should maintain this inequality for all calculations**.
[1c03e14]2307
[990c2eb]2308*P(q)* = *scale* \* <*f*\ :sup:`2`> / *V* + *background*
[1c03e14]2309
[990c2eb]2310where the volume *V* = (4/3)\ |pi| (*Ra* *Rb* *Rc*), and the averaging < > is applied over all orientations for 1D.
[1c03e14]2311
[7f42aad]2312.. image:: img/image128.jpg
[1c03e14]2313
2314The returned value is in units of |cm^-1|, on absolute scale.
2315
[990c2eb]2316*2.1.28.1. Definition*
2317
2318The form factor calculated is
[1c03e14]2319
[990c2eb]2320.. image:: img/image129.PNG
[1c03e14]2321
[990c2eb]2322To provide easy access to the orientation of the triaxial ellipsoid, we define the axis of the cylinder using the
2323angles |theta|, |phi| and |bigpsi|. These angles are defined on Figure 2 of the CylinderModel_. The angle |bigpsi| is
2324the rotational angle around its own *semi_axisC* axis against the *q* plane. For example, |bigpsi| = 0 when the
2325*semi_axisA* axis is parallel to the *x*-axis of the detector.
[1c03e14]2326
[6386cd8]2327The radius-of-gyration for this system is *Rg*\ :sup:`2` = (*Ra*\ :sup:`2` *Rb*\ :sup:`2` *Rc*\ :sup:`2`)/5.
[1c03e14]2328
[990c2eb]2329The contrast is defined as SLD(ellipsoid) - SLD(solvent). In the parameters, *semi_axisA* = *Ra* (or minor equatorial
2330radius), *semi_axisB* = *Rb* (or major equatorial radius), and *semi_axisC* = *Rc* (or polar radius of the ellipsoid).
[1c03e14]2331
[990c2eb]2332NB: The 2nd virial coefficient of the triaxial solid ellipsoid is calculated based on the
2333*radius_a* (= *semi_axisC*\ ) and *radius_b* (= sqrt(*semi_axisA* \* *semi_axisB*)) values, and used as the effective
2334radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]2335
2336==============  ========  =============
2337Parameter name  Units     Default value
2338==============  ========  =============
2339background      |cm^-1|   0.0
2340semi_axisA      |Ang|     35
2341semi_axisB      |Ang|     100
2342semi_axisC      |Ang|     400
2343scale           None      1
2344sldEll          |Ang^-2|  1.0e-06
2345sldSolv         |Ang^-2|  6.3e-06
2346==============  ========  =============
2347
[7f42aad]2348.. image:: img/image130.jpg
[1c03e14]2349
2350*Figure. 1D plot using the default values (w/1000 data point).*
2351
[990c2eb]2352*2.1.28.2.Validation of the TriaxialEllipsoidModel*
[1c03e14]2353
[990c2eb]2354Validation of our code was done by comparing the output of the 1D calculation to the angular average of the output of
23552D calculation over all possible angles. The Figure below shows the comparison where the solid dot refers to averaged
23562D while the line represents the result of 1D calculation (for 2D averaging, 76, 180, and 76 points are taken for the
2357angles of |theta|, |phi|, and |psi| respectively).
[1c03e14]2358
[7f42aad]2359.. image:: img/image131.gif
[1c03e14]2360
2361*Figure. Comparison between 1D and averaged 2D.*
2362
[7f42aad]2363.. image:: img/image132.jpg
[1c03e14]2364
[990c2eb]2365*Figure. The angles for oriented ellipsoid.*
[1c03e14]2366
[990c2eb]2367Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2368(Kline, 2006)
[1c03e14]2369
2370REFERENCE
[bf8c07b]2371
[93b6fcc]2372L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum,
[990c2eb]2373New York, 1987.
[1c03e14]2374
2375
2376
2377.. _LamellarModel:
2378
[77cfcf0]2379**2.1.29. LamellarModel**
[1c03e14]2380
[1127c32]2381This model provides the scattering intensity, *I(q)*, for a lyotropic lamellar phase where a uniform SLD and random
2382distribution in solution are assumed. Polydispersity in the bilayer thickness can be applied from the GUI.
[1c03e14]2383
[1127c32]2384*2.1.29.1. Definition*
[1c03e14]2385
[1127c32]2386The scattering intensity *I(q)* is
[1c03e14]2387
[1127c32]2388.. image:: img/image133.PNG
[1c03e14]2389
[1127c32]2390The form factor is
[1c03e14]2391
[1127c32]2392.. image:: img/image134.PNG
[1c03e14]2393
[1127c32]2394where |delta| = bilayer thickness.
[1c03e14]2395
[1127c32]2396The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]2397
[7f42aad]2398.. image:: img/image040.gif
[1c03e14]2399
[1127c32]2400The returned value is in units of |cm^-1|, on absolute scale. In the parameters, *sld_bi* = SLD of the bilayer,
2401*sld_sol* = SLD of the solvent, and *bi_thick* = thickness of the bilayer.
[1c03e14]2402
2403==============  ========  =============
2404Parameter name  Units     Default value
2405==============  ========  =============
2406background      |cm^-1|   0.0
2407sld_bi          |Ang^-2|  1e-06
2408bi_thick        |Ang|     50
2409sld_sol         |Ang^-2|  6e-06
2410scale           None      1
2411==============  ========  =============
2412
[7f42aad]2413.. image:: img/image135.jpg
[1c03e14]2414
2415*Figure. 1D plot using the default values (w/1000 data point).*
2416
[1127c32]2417Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2418(Kline, 2006).
[1c03e14]2419
2420REFERENCE
2421
[93b6fcc]2422F Nallet, R Laversanne, and D Roux, J. Phys. II France, 3, (1993) 487-502
[1c03e14]2423
[bf8c07b]2424also in J. Phys. Chem. B, 105, (2001) 11081-11088
[1c03e14]2425
2426
2427
2428.. _LamellarFFHGModel:
2429
[77cfcf0]2430**2.1.30. LamellarFFHGModel**
[1c03e14]2431
[1127c32]2432This model provides the scattering intensity, *I(q)*, for a lyotropic lamellar phase where a random distribution in
2433solution are assumed. The SLD of the head region is taken to be different from the SLD of the tail region.
[1c03e14]2434
[1127c32]2435*2.1.31.1. Definition*
[1c03e14]2436
[1127c32]2437The scattering intensity *I(q)* is
[1c03e14]2438
[1127c32]2439.. image:: img/image136.PNG
[1c03e14]2440
[1127c32]2441The form factor is
[1c03e14]2442
[7f42aad]2443.. image:: img/image137.jpg
[1c03e14]2444
[1127c32]2445where |delta|\ T = tail length (or *t_length*), |delta|\ H = head thickness (or *h_thickness*),
[58eccf6]2446|drho|\ H = SLD(headgroup) - SLD(solvent), and |drho|\ T = SLD(tail) - SLD(solvent).
[1c03e14]2447
[1127c32]2448The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]2449
[7f42aad]2450.. image:: img/image040.gif
[1c03e14]2451
[1127c32]2452The returned value is in units of |cm^-1|, on absolute scale. In the parameters, *sld_tail* = SLD of the tail group,
2453and *sld_head* = SLD of the head group.
[1c03e14]2454
2455==============  ========  =============
2456Parameter name  Units     Default value
2457==============  ========  =============
2458background      |cm^-1|   0.0
2459sld_head        |Ang^-2|  3e-06
2460scale           None      1
2461sld_solvent     |Ang^-2|  6e-06
2462h_thickness     |Ang|     10
2463t_length        |Ang|     15
2464sld_tail        |Ang^-2|  0
2465==============  ========  =============
2466
[7f42aad]2467.. image:: img/image138.jpg
[1c03e14]2468
2469*Figure. 1D plot using the default values (w/1000 data point).*
2470
[1127c32]2471Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2472(Kline, 2006).
[1c03e14]2473
2474REFERENCE
2475
[93b6fcc]2476F Nallet, R Laversanne, and D Roux, J. Phys. II France, 3, (1993) 487-502
[1c03e14]2477
[bf8c07b]2478also in J. Phys. Chem. B, 105, (2001) 11081-11088
[1c03e14]2479
[93b6fcc]2480*2014/04/17 - Description reviewed by S King and P Butler.*
[4ed2d0a1]2481
[1c03e14]2482
2483
2484.. _LamellarPSModel:
2485
[77cfcf0]2486**2.1.31. LamellarPSModel**
[1c03e14]2487
[1127c32]2488This model provides the scattering intensity, *I(q)* = *P(q)* \* *S(q)*, for a lyotropic lamellar phase where a random
2489distribution in solution are assumed.
[1c03e14]2490
[1127c32]2491*2.1.31.1. Definition*
[1c03e14]2492
[1127c32]2493The scattering intensity *I(q)* is
[1c03e14]2494
[1127c32]2495.. image:: img/image139.PNG
[1c03e14]2496
2497The form factor is
2498
[1127c32]2499.. image:: img/image134.PNG
[1c03e14]2500
[1127c32]2501and the structure factor is
[1c03e14]2502
[1127c32]2503.. image:: img/image140.PNG
[1c03e14]2504
2505where
2506
[1127c32]2507.. image:: img/image141.PNG
[1c03e14]2508
[58eccf6]2509Here *d* = (repeat) spacing, |delta| = bilayer thickness, the contrast |drho| = SLD(headgroup) - SLD(solvent),
[1127c32]2510K = smectic bending elasticity, B = compression modulus, and N = number of lamellar plates (*n_plates*).
[1c03e14]2511
[1127c32]2512NB: **When the Caille parameter is greater than approximately 0.8 to 1.0, the assumptions of the model are incorrect.**
2513And due to a complication of the model function, users are responsible for making sure that all the assumptions are
2514handled accurately (see the original reference below for more details).
[1c03e14]2515
[1127c32]2516The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]2517
[7f42aad]2518.. image:: img/image040.gif
[1c03e14]2519
2520The returned value is in units of |cm^-1|, on absolute scale.
2521
2522==============  ========  =============
2523Parameter name  Units     Default value
2524==============  ========  =============
2525background      |cm^-1|   0.0
2526contrast        |Ang^-2|  5e-06
2527scale           None      1
2528delta           |Ang|     30
2529n_plates        None      20
2530spacing         |Ang|     400
2531caille          |Ang^-2|  0.1
2532==============  ========  =============
2533
[7f42aad]2534.. image:: img/image142.jpg
[1c03e14]2535
2536*Figure. 1D plot using the default values (w/6000 data point).*
2537
[1127c32]2538Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2539(Kline, 2006).
[1c03e14]2540
2541REFERENCE
2542
[93b6fcc]2543F Nallet, R Laversanne, and D Roux, J. Phys. II France, 3, (1993) 487-502
[1c03e14]2544
[bf8c07b]2545also in J. Phys. Chem. B, 105, (2001) 11081-11088
[1c03e14]2546
2547
2548
2549.. _LamellarPSHGModel:
2550
[77cfcf0]2551**2.1.32. LamellarPSHGModel**
[1c03e14]2552
[1127c32]2553This model provides the scattering intensity, *I(q)* = *P(q)* \* *S(q)*, for a lyotropic lamellar phase where a random
2554distribution in solution are assumed. The SLD of the head region is taken to be different from the SLD of the tail
2555region.
[1c03e14]2556
[1127c32]2557*2.1.32.1. Definition*
[1c03e14]2558
[1127c32]2559The scattering intensity *I(q)* is
[1c03e14]2560
[1127c32]2561.. image:: img/image139.PNG
[1c03e14]2562
[1127c32]2563The form factor is
[1c03e14]2564
[1127c32]2565.. image:: img/image143.PNG
[1c03e14]2566
2567The structure factor is
2568
[1127c32]2569.. image:: img/image140.PNG
[1c03e14]2570
2571where
2572
[1127c32]2573.. image:: img/image141.PNG
[1c03e14]2574
[1127c32]2575where |delta|\ T = tail length (or *t_length*), |delta|\ H = head thickness (or *h_thickness*),
[58eccf6]2576|drho|\ H = SLD(headgroup) - SLD(solvent), and |drho|\ T = SLD(tail) - SLD(headgroup).
[1127c32]2577Here *d* = (repeat) spacing, *K* = smectic bending elasticity, *B* = compression modulus, and N = number of lamellar
2578plates (*n_plates*).
[1c03e14]2579
[1127c32]2580NB: **When the Caille parameter is greater than approximately 0.8 to 1.0, the assumptions of the model are incorrect.**
2581And due to a complication of the model function, users are responsible for making sure that all the assumptions are
2582handled accurately (see the original reference below for more details).
[1c03e14]2583
[1127c32]2584The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]2585
[7f42aad]2586.. image:: img/image040.gif
[1c03e14]2587
[1127c32]2588The returned value is in units of |cm^-1|, on absolute scale. In the parameters, *sld_tail* = SLD of the tail group,
2589*sld_head* = SLD of the head group, and *sld_solvent* = SLD of the solvent.
[1c03e14]2590
2591==============  ========  =============
2592Parameter name  Units     Default value
2593==============  ========  =============
2594background      |cm^-1|   0.001
2595sld_head        |Ang^-2|  2e-06
2596scale           None      1
2597sld_solvent     |Ang^-2|  6e-06
2598deltaH          |Ang|     2
2599deltaT          |Ang|     10
2600sld_tail        |Ang^-2|  0
2601n_plates        None      30
2602spacing         |Ang|     40
2603caille          |Ang^-2|  0.001
2604==============  ========  =============
2605
[7f42aad]2606.. image:: img/image144.jpg
[1c03e14]2607
2608*Figure. 1D plot using the default values (w/6000 data point).*
2609
[1127c32]2610Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2611(Kline, 2006).
[1c03e14]2612
2613REFERENCE
2614
[93b6fcc]2615F Nallet, R Laversanne, and D Roux, J. Phys. II France, 3, (1993) 487-502
[1c03e14]2616
[bf8c07b]2617also in J. Phys. Chem. B, 105, (2001) 11081-11088
[1c03e14]2618
2619
2620
2621.. _LamellarPCrystalModel:
2622
[77cfcf0]2623**2.1.33. LamellarPCrystalModel**
[1c03e14]2624
[1127c32]2625This model calculates the scattering from a stack of repeating lamellar structures. The stacks of lamellae (infinite
2626in lateral dimension) are treated as a paracrystal to account for the repeating spacing. The repeat distance is further
2627characterized by a Gaussian polydispersity. **This model can be used for large multilamellar vesicles.**
[1c03e14]2628
[1127c32]2629*2.1.33.1. Definition*
[1c03e14]2630
[1127c32]2631The scattering intensity *I(q)* is calculated as
[1c03e14]2632
[7f42aad]2633.. image:: img/image145.jpg
[1c03e14]2634
[1127c32]2635The form factor of the bilayer is approximated as the cross section of an infinite, planar bilayer of thickness *t*
[1c03e14]2636
[7f42aad]2637.. image:: img/image146.jpg
[1c03e14]2638
[1127c32]2639Here, the scale factor is used instead of the mass per area of the bilayer (*G*). The scale factor is the volume
[d4117ccb]2640fraction of the material in the bilayer, *not* the total excluded volume of the paracrystal. *Z*\ :sub:`N`\ *(q)*
2641describes the interference effects for aggregates consisting of more than one bilayer. The equations used are (3-5)
2642from the Bergstrom reference below.
[1c03e14]2643
[1127c32]2644Non-integer numbers of stacks are calculated as a linear combination of the lower and higher values
[1c03e14]2645
[7f42aad]2646.. image:: img/image147.jpg
[1c03e14]2647
[1127c32]2648The 2D scattering intensity is the same as 1D, regardless of the orientation of the *q* vector which is defined as
[1c03e14]2649
[7f42aad]2650.. image:: img/image040.gif
[1c03e14]2651
[1127c32]2652The parameters of the model are *Nlayers* = no. of layers, and *pd_spacing* = polydispersity of spacing.
[1c03e14]2653
2654==============  ========  =============
2655Parameter name  Units     Default value
2656==============  ========  =============
2657background      |cm^-1|   0
2658scale           None      1
2659Nlayers         None      20
2660pd_spacing      None      0.2
2661sld_layer       |Ang^-2|  1e-6
2662sld_solvent     |Ang^-2|  6.34e-6
2663spacing         |Ang|     250
2664thickness       |Ang|     33
2665==============  ========  =============
2666
[7f42aad]2667.. image:: img/image148.jpg
[1c03e14]2668
[1127c32]2669*Figure. 1D plot using the default values above (w/20000 data point).*
[1c03e14]2670
[1127c32]2671Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
2672(Kline, 2006).
[1c03e14]2673
2674REFERENCE
2675
[93b6fcc]2676M Bergstrom, J S Pedersen, P Schurtenberger, S U Egelhaaf, *J. Phys. Chem. B*, 103 (1999) 9888-9897
[1c03e14]2677
2678
2679
2680.. _SCCrystalModel:
2681
[77cfcf0]2682**2.1.34. SCCrystalModel**
[1c03e14]2683
[d4117ccb]2684Calculates the scattering from a **simple cubic lattice** with paracrystalline distortion. Thermal vibrations are
2685considered to be negligible, and the size of the paracrystal is infinitely large. Paracrystalline distortion is assumed
2686to be isotropic and characterized by a Gaussian distribution.
[1c03e14]2687
[77cfcf0]2688The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
[1c03e14]2689
[d4117ccb]2690*2.1.34.1. Definition*
[1c03e14]2691
[4ed2d0a1]2692The scattering intensity *I(q)* is calculated as
[1c03e14]2693
[7f42aad]2694.. image:: img/image149.jpg
[1c03e14]2695
[d4117ccb]2696where *scale* is the volume fraction of spheres, *Vp* is the volume of the primary particle, *V(lattice)* is a volume
2697correction for the crystal structure, *P(q)* is the form factor of the sphere (normalized), and *Z(q)* is the
2698paracrystalline structure factor for a simple cubic structure.
[1c03e14]2699
[d4117ccb]2700Equation (16) of the 1987 reference is used to calculate *Z(q)*, using equations (13)-(15) from the 1987 paper for
2701*Z1*\ , *Z2*\ , and *Z3*\ .
[1c03e14]2702
[d4117ccb]2703The lattice correction (the occupied volume of the lattice) for a simple cubic structure of particles of radius *R*
2704and nearest neighbor separation *D* is
[1c03e14]2705
[7f42aad]2706.. image:: img/image150.jpg
[1c03e14]2707
[d4117ccb]2708The distortion factor (one standard deviation) of the paracrystal is included in the calculation of *Z(q)*
[1c03e14]2709
[7f42aad]2710.. image:: img/image151.jpg
[1c03e14]2711
[d4117ccb]2712where *g* is a fractional distortion based on the nearest neighbor distance.
[1c03e14]2713
[d4117ccb]2714The simple cubic lattice is
[1c03e14]2715
[7f42aad]2716.. image:: img/image152.jpg
[1c03e14]2717
[d4117ccb]2718For a crystal, diffraction peaks appear at reduced *q*\ -values given by
[1c03e14]2719
[7f42aad]2720.. image:: img/image153.jpg
[1c03e14]2721
[d4117ccb]2722where for a simple cubic lattice any *h*\ , *k*\ , *l* are allowed and none are forbidden. Thus the peak positions
2723correspond to (just the first 5)
[1c03e14]2724
[7f42aad]2725.. image:: img/image154.jpg
[1c03e14]2726
[d4117ccb]2727**NB: The calculation of** *Z(q)* **is a double numerical integral that must be carried out with a high density of**
2728**points to properly capture the sharp peaks of the paracrystalline scattering.** So be warned that the calculation is
2729SLOW. Go get some coffee. Fitting of any experimental data must be resolution smeared for any meaningful fit. This
2730makes a triple integral. Very, very slow. Go get lunch!
[1c03e14]2731
2732==============  ========  =============
2733Parameter name  Units     Default value
2734==============  ========  =============
2735background      |cm^-1|   0
2736dnn             |Ang|     220
2737scale           None      1
2738sldSolv         |Ang^-2|  6.3e-06
2739radius          |Ang|     40
2740sld_Sph         |Ang^-2|  3e-06
2741d_factor        None      0.06
2742==============  ========  =============
2743
[d4117ccb]2744This example dataset is produced using 200 data points, *qmin* = 0.01 |Ang^-1|, *qmax* = 0.1 |Ang^-1| and the above
2745default values.
[bf8c07b]2746
[7f42aad]2747.. image:: img/image155.jpg
[1c03e14]2748
[d4117ccb]2749*Figure. 1D plot in the linear scale using the default values (w/200 data point).*
[1c03e14]2750
[d4117ccb]2751The 2D (Anisotropic model) is based on the reference below where *I(q)* is approximated for 1d scattering. Thus the
2752scattering pattern for 2D may not be accurate. Note that we are not responsible for any incorrectness of the 2D model
2753computation.
[1c03e14]2754
[7f42aad]2755.. image:: img/image156.jpg
[1c03e14]2756
[7f42aad]2757.. image:: img/image157.jpg
[1c03e14]2758
[d4117ccb]2759*Figure. 2D plot using the default values (w/200X200 pixels).*
[1c03e14]2760
[d4117ccb]2761REFERENCE
[1c03e14]2762
[d4117ccb]2763Hideki Matsuoka et. al. *Physical Review B*, 36 (1987) 1754-1765
2764(Original Paper)
[1c03e14]2765
[d4117ccb]2766Hideki Matsuoka et. al. *Physical Review B*, 41 (1990) 3854 -3856
2767(Corrections to FCC and BCC lattice structure calculation)
[1c03e14]2768
2769
2770
2771.. _FCCrystalModel:
2772
[77cfcf0]2773**2.1.35. FCCrystalModel**
[1c03e14]2774
[d4117ccb]2775Calculates the scattering from a **face-centered cubic lattice** with paracrystalline distortion. Thermal vibrations
2776are considered to be negligible, and the size of the paracrystal is infinitely large. Paracrystalline distortion is
2777assumed to be isotropic and characterized by a Gaussian distribution.
[1c03e14]2778
[77cfcf0]2779The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
[1c03e14]2780
[d4117ccb]2781*2.1.35.1. Definition*
[1c03e14]2782
[d4117ccb]2783The scattering intensity *I(q)* is calculated as
[1c03e14]2784
[7f42aad]2785.. image:: img/image158.jpg
[1c03e14]2786
[d4117ccb]2787where *scale* is the volume fraction of spheres, *Vp* is the volume of the primary particle, *V(lattice)* is a volume
2788correction for the crystal structure, *P(q)* is the form factor of the sphere (normalized), and *Z(q)* is the
2789paracrystalline structure factor for a face-centered cubic structure.
[1c03e14]2790
[d4117ccb]2791Equation (1) of the 1990 reference is used to calculate *Z(q)*, using equations (23)-(25) from the 1987 paper for
2792*Z1*\ , *Z2*\ , and *Z3*\ .
[1c03e14]2793
[d4117ccb]2794The lattice correction (the occupied volume of the lattice) for a face-centered cubic structure of particles of radius
2795*R* and nearest neighbor separation *D* is
[1c03e14]2796
[7f42aad]2797.. image:: img/image159.jpg
[1c03e14]2798
[d4117ccb]2799The distortion factor (one standard deviation) of the paracrystal is included in the calculation of *Z(q)*
[1c03e14]2800
[7f42aad]2801.. image:: img/image160.jpg
[1c03e14]2802
[d4117ccb]2803where *g* is a fractional distortion based on the nearest neighbor distance.
[1c03e14]2804
[d4117ccb]2805The face-centered cubic lattice is
[1c03e14]2806
[7f42aad]2807.. image:: img/image161.jpg
[1c03e14]2808
[d4117ccb]2809For a crystal, diffraction peaks appear at reduced q-values given by
[1c03e14]2810
[7f42aad]2811.. image:: img/image162.jpg
[1c03e14]2812
[d4117ccb]2813where for a face-centered cubic lattice *h*\ , *k*\ , *l* all odd or all even are allowed and reflections where
2814*h*\ , *k*\ , *l* are mixed odd/even are forbidden. Thus the peak positions correspond to (just the first 5)
[1c03e14]2815
[7f42aad]2816.. image:: img/image163.jpg
[1c03e14]2817
[d4117ccb]2818**NB: The calculation of** *Z(q)* **is a double numerical integral that must be carried out with a high density of**
2819**points to properly capture the sharp peaks of the paracrystalline scattering.** So be warned that the calculation is
2820SLOW. Go get some coffee. Fitting of any experimental data must be resolution smeared for any meaningful fit. This
2821makes a triple integral. Very, very slow. Go get lunch!
[1c03e14]2822
2823==============  ========  =============
2824Parameter name  Units     Default value
2825==============  ========  =============
2826background      |cm^-1|   0
2827dnn             |Ang|     220
2828scale           None      1
2829sldSolv         |Ang^-2|  6.3e-06
2830radius          |Ang|     40
2831sld_Sph         |Ang^-2|  3e-06
2832d_factor        None      0.06
2833==============  ========  =============
2834
[d4117ccb]2835This example dataset is produced using 200 data points, *qmin* = 0.01 |Ang^-1|, *qmax* = 0.1 |Ang^-1| and the above
2836default values.
[1c03e14]2837
[7f42aad]2838.. image:: img/image164.jpg
[1c03e14]2839
[d4117ccb]2840*Figure. 1D plot in the linear scale using the default values (w/200 data point).*
[1c03e14]2841
[d4117ccb]2842The 2D (Anisotropic model) is based on the reference below where *I(q)* is approximated for 1d scattering. Thus the
2843scattering pattern for 2D may not be accurate. Note that we are not responsible for any incorrectness of the 2D model
2844computation.
[1c03e14]2845
[7f42aad]2846.. image:: img/image165.gif
[1c03e14]2847
[7f42aad]2848.. image:: img/image166.jpg
[1c03e14]2849
2850*Figure. 2D plot using the default values (w/200X200 pixels).*
2851
[d4117ccb]2852REFERENCE
[1c03e14]2853
[d4117ccb]2854Hideki Matsuoka et. al. *Physical Review B*, 36 (1987) 1754-1765
2855(Original Paper)
[1c03e14]2856
[d4117ccb]2857Hideki Matsuoka et. al. *Physical Review B*, 41 (1990) 3854 -3856
2858(Corrections to FCC and BCC lattice structure calculation)
[1c03e14]2859
2860
2861
[d4117ccb]2862.. _BCCrystalModel:
[1c03e14]2863
[d4117ccb]2864**2.1.36. BCCrystalModel**
[1c03e14]2865
[d4117ccb]2866Calculates the scattering from a **body-centered cubic lattice** with paracrystalline distortion. Thermal vibrations
2867are considered to be negligible, and the size of the paracrystal is infinitely large. Paracrystalline distortion is
2868assumed to be isotropic and characterized by a Gaussian distribution.
[1c03e14]2869
[d4117ccb]2870The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
[1c03e14]2871
[d4117ccb]2872*2.1.36.1. Definition**
[1c03e14]2873
[d4117ccb]2874The scattering intensity *I(q)* is calculated as
[1c03e14]2875
[7f42aad]2876.. image:: img/image167.jpg
[1c03e14]2877
[d4117ccb]2878where *scale* is the volume fraction of spheres, *Vp* is the volume of the primary particle, *V(lattice)* is a volume
2879correction for the crystal structure, *P(q)* is the form factor of the sphere (normalized), and *Z(q)* is the
2880paracrystalline structure factor for a body-centered cubic structure.
[1c03e14]2881
[d4117ccb]2882Equation (1) of the 1990 reference is used to calculate *Z(q)*, using equations (29)-(31) from the 1987 paper for
2883*Z1*\ , *Z2*\ , and *Z3*\ .
[1c03e14]2884
[d4117ccb]2885The lattice correction (the occupied volume of the lattice) for a body-centered cubic structure of particles of radius
2886*R* and nearest neighbor separation *D* is
[1c03e14]2887
[7f42aad]2888.. image:: img/image159.jpg
[1c03e14]2889
[d4117ccb]2890The distortion factor (one standard deviation) of the paracrystal is included in the calculation of *Z(q)*
[1c03e14]2891
[7f42aad]2892.. image:: img/image160.jpg
[1c03e14]2893
[d4117ccb]2894where *g* is a fractional distortion based on the nearest neighbor distance.
[1c03e14]2895
[d4117ccb]2896The body-centered cubic lattice is
[1c03e14]2897
[7f42aad]2898.. image:: img/image168.jpg
[1c03e14]2899
[d4117ccb]2900For a crystal, diffraction peaks appear at reduced q-values given by
[1c03e14]2901
[7f42aad]2902.. image:: img/image162.jpg
[1c03e14]2903
[d4117ccb]2904where for a body-centered cubic lattice, only reflections where (\ *h* + *k* + *l*\ ) = even are allowed and
2905reflections where (\ *h* + *k* + *l*\ ) = odd are forbidden. Thus the peak positions correspond to (just the first 5)
[1c03e14]2906
[7f42aad]2907.. image:: img/image169.jpg
[1c03e14]2908
[d4117ccb]2909**NB: The calculation of** *Z(q)* **is a double numerical integral that must be carried out with a high density of**
2910**points to properly capture the sharp peaks of the paracrystalline scattering.** So be warned that the calculation is
2911SLOW. Go get some coffee. Fitting of any experimental data must be resolution smeared for any meaningful fit. This
2912makes a triple integral. Very, very slow. Go get lunch!
[1c03e14]2913
2914==============  ========  =============
2915Parameter name  Units     Default value
2916==============  ========  =============
2917background      |cm^-1|   0
2918dnn             |Ang|     220
2919scale           None      1
2920sldSolv         |Ang^-2|  6.3e-006
2921radius          |Ang|     40
2922sld_Sph         |Ang^-2|  3e-006
2923d_factor        None      0.06
2924==============  ========  =============
2925
[d4117ccb]2926This example dataset is produced using 200 data points, *qmin* = 0.001 |Ang^-1|, *qmax* = 0.1 |Ang^-1| and the above
2927default values.
[bf8c07b]2928
[7f42aad]2929.. image:: img/image170.jpg
[1c03e14]2930
[d4117ccb]2931*Figure. 1D plot in the linear scale using the default values (w/200 data point).*
[1c03e14]2932
[d4117ccb]2933The 2D (Anisotropic model) is based on the reference below where *I(q)* is approximated for 1d scattering. Thus the
2934scattering pattern for 2D may not be accurate. Note that we are not responsible for any incorrectness of the 2D model
2935computation.
[1c03e14]2936
[7f42aad]2937.. image:: img/image165.gif
[1c03e14]2938
[7f42aad]2939.. image:: img/image171.jpg
[1c03e14]2940
[d4117ccb]2941*Figure. 2D plot using the default values (w/200X200 pixels).*
[1c03e14]2942
[d4117ccb]2943REFERENCE
[1c03e14]2944
[d4117ccb]2945Hideki Matsuoka et. al. *Physical Review B*, 36 (1987) 1754-1765
2946(Original Paper)
[1c03e14]2947
[d4117ccb]2948Hideki Matsuoka et. al. *Physical Review B*, 41 (1990) 3854 -3856
2949(Corrections to FCC and BCC lattice structure calculation)
[1c03e14]2950
2951
2952
2953.. _ParallelepipedModel:
2954
[77cfcf0]2955**2.1.37. ParallelepipedModel**
[1c03e14]2956
[bf8c07b]2957This model provides the form factor, *P(q)*, for a rectangular cylinder (below) where the form factor is normalized by
[6386cd8]2958the volume of the cylinder. If you need to apply polydispersity, see the RectangularPrismModel_.
[1c03e14]2959
[bf8c07b]2960*P(q)* = *scale* \* <*f*\ :sup:`2`> / *V* + *background*
[1c03e14]2961
[bf8c07b]2962where the volume *V* = *A B C* and the averaging < > is applied over all orientations for 1D.
[1c03e14]2963
[bf8c07b]2964For information about polarised and magnetic scattering, click here_.
[1c03e14]2965
[7f42aad]2966.. image:: img/image087.jpg
[1c03e14]2967
[bf8c07b]2968*2.1.37.1. Definition*
[1c03e14]2969
[bf8c07b]2970**The edge of the solid must satisfy the condition that** *A* < *B*. Then, assuming *a* = *A* / *B* < 1,
2971*b* = *B* / *B* = 1, and *c* = *C* / *B* > 1, the form factor is
[1c03e14]2972
[bf8c07b]2973.. image:: img/image088.PNG
[1c03e14]2974
[bf8c07b]2975and the contrast is defined as
[1c03e14]2976
[bf8c07b]2977.. image:: img/image089.PNG
[1c03e14]2978
[bf8c07b]2979The scattering intensity per unit volume is returned in units of |cm^-1|; ie, *I(q)* = |phi| *P(q)*\ .
[1c03e14]2980
[bf8c07b]2981NB: The 2nd virial coefficient of the parallelpiped is calculated based on the the averaged effective radius
2982(= sqrt(*short_a* \* *short_b* / |pi|)) and length(= *long_c*) values, and used as the effective radius for
2983*S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]2984
[bf8c07b]2985To provide easy access to the orientation of the parallelepiped, we define the axis of the cylinder using three angles
2986|theta|, |phi| and |bigpsi|. These angles are defined on Figure 2 of the CylinderModel_. The angle |bigpsi| is the
2987rotational angle around the *long_c* axis against the *q* plane. For example, |bigpsi| = 0 when the *short_b* axis is
2988parallel to the *x*-axis of the detector.
[1c03e14]2989
[7f42aad]2990.. image:: img/image090.jpg
[1c03e14]2991
2992*Figure. Definition of angles for 2D*.
2993
[7f42aad]2994.. image:: img/image091.jpg
[1c03e14]2995
[bf8c07b]2996*Figure. Examples of the angles for oriented pp against the detector plane.*
[1c03e14]2997
2998==============  ========  =============
2999Parameter name  Units     Default value
3000==============  ========  =============
3001background      |cm^-1|   0.0
3002contrast        |Ang^-2|  5e-06
3003long_c          |Ang|     400
3004short_a         |Ang^-2|  35
3005short_b         |Ang|     75
3006scale           None      1
3007==============  ========  =============
3008
[7f42aad]3009.. image:: img/image092.jpg
[1c03e14]3010
3011*Figure. 1D plot using the default values (w/1000 data point).*
3012
[bf8c07b]3013*2.1.37.2. Validation of the parallelepiped 2D model*
[1c03e14]3014
[bf8c07b]3015Validation of our code was done by comparing the output of the 1D calculation to the angular average of the output of
3016a 2D calculation over all possible angles. The Figure below shows the comparison where the solid dot refers to averaged
30172D while the line represents the result of the 1D calculation (for the averaging, 76, 180, 76 points are taken for the
3018angles of |theta|, |phi|, and |psi| respectively).
[1c03e14]3019
[7f42aad]3020.. image:: img/image093.gif
[1c03e14]3021
3022*Figure. Comparison between 1D and averaged 2D.*
3023
[bf8c07b]3024Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
3025(Kline, 2006).
[1c03e14]3026
3027REFERENCE
3028
[93b6fcc]3029P Mittelbach and G Porod, *Acta Physica Austriaca*, 14 (1961) 185-211
[1c03e14]3030Equations (1), (13-14). (in German)
3031
3032
3033
3034.. _CSParallelepipedModel:
3035
[77cfcf0]3036**2.1.38. CSParallelepipedModel**
[1c03e14]3037
[bf8c07b]3038Calculates the form factor for a rectangular solid with a core-shell structure. **The thickness and the scattering**
3039**length density of the shell or "rim" can be different on all three (pairs) of faces.**
3040
3041The form factor is normalized by the particle volume *V* such that
[1c03e14]3042
[bf8c07b]3043*P(q)* = *scale* \* <*f*\ :sup:`2`> / *V* + *background*
[1c03e14]3044
[bf8c07b]3045where < > is an average over all possible orientations of the rectangular solid.
[1c03e14]3046
[bf8c07b]3047An instrument resolution smeared version of the model is also provided.
[1c03e14]3048
[bf8c07b]3049*2.1.38.1. Definition*
[1c03e14]3050
[bf8c07b]3051The function calculated is the form factor of the rectangular solid below. The core of the solid is defined by the
3052dimensions *A*, *B*, *C* such that *A* < *B* < *C*.
[1c03e14]3053
[7f42aad]3054.. image:: img/image087.jpg
[1c03e14]3055
[bf8c07b]3056There are rectangular "slabs" of thickness *tA* that add to the *A* dimension (on the *BC* faces). There are similar
3057slabs on the *AC* (= *tB*) and *AB* (= *tC*) faces. The projection in the *AB* plane is then
[1c03e14]3058
[7f42aad]3059.. image:: img/image094.jpg
[1c03e14]3060
[bf8c07b]3061The volume of the solid is
[1c03e14]3062
[bf8c07b]3063.. image:: img/image095.PNG
[1c03e14]3064
[bf8c07b]3065**meaning that there are "gaps" at the corners of the solid.**
[1c03e14]3066
[bf8c07b]3067The intensity calculated follows the ParallelepipedModel_, with the core-shell intensity being calculated as the
3068square of the sum of the amplitudes of the core and shell, in the same manner as a CoreShellModel_.
[1c03e14]3069
[bf8c07b]3070**For the calculation of the form factor to be valid, the sides of the solid MUST be chosen such that** *A* < *B* < *C*.
3071**If this inequality is not satisfied, the model will not report an error, and the calculation will not be correct.**
[1c03e14]3072
[bf8c07b]3073FITTING NOTES
3074If the scale is set equal to the particle volume fraction, |phi|, the returned value is the scattered intensity per
3075unit volume; ie, *I(q)* = |phi| *P(q)*\ . However, **no interparticle interference effects are included in this**
3076**calculation.**
[1c03e14]3077
[bf8c07b]3078There are many parameters in this model. Hold as many fixed as possible with known values, or you will certainly end
3079up at a solution that is unphysical.
[1c03e14]3080
[bf8c07b]3081Constraints must be applied during fitting to ensure that the inequality *A* < *B* < *C* is not violated. The
3082calculation will not report an error, but the results will not be correct.
[1c03e14]3083
3084The returned value is in units of |cm^-1|, on absolute scale.
3085
[bf8c07b]3086NB: The 2nd virial coefficient of the CSParallelpiped is calculated based on the the averaged effective radius
3087(= sqrt((*short_a* + 2 *rim_a*) \* (*short_b* + 2 *rim_b*) / |pi|)) and length(= *long_c* + 2 *rim_c*) values, and
3088used as the effective radius for *S(Q)* when *P(Q)* \* *S(Q)* is applied.
[1c03e14]3089
[bf8c07b]3090To provide easy access to the orientation of the parallelepiped, we define the axis of the cylinder using three angles
3091|theta|, |phi| and |bigpsi|. These angles are defined on Figure 2 of the CylinderModel_. The angle |bigpsi| is the
3092rotational angle around the *long_c* axis against the *q* plane. For example, |bigpsi| = 0 when the *short_b* axis is
3093parallel to the *x*-axis of the detector.
[1c03e14]3094
[7f42aad]3095.. image:: img/image090.jpg
[1c03e14]3096
3097*Figure. Definition of angles for 2D*.
3098
[7f42aad]3099.. image:: img/image091.jpg
[1c03e14]3100
[bf8c07b]3101*Figure. Examples of the angles for oriented cspp against the detector plane.*
[1c03e14]3102
[bf8c07b]3103This example dataset was produced by running the Macro Plot_CSParallelepiped(), using 100 data points,
3104*qmin* = 0.001 |Ang^-1|, *qmax* = 0.7 |Ang^-1| and the default values
[1c03e14]3105
3106==============  ========  =============
3107Parameter name  Units     Default value
3108==============  ========  =============
3109background      |cm^-1|   0.06
3110sld_pcore       |Ang^-2|  1e-06
3111sld_rimA        |Ang^-2|  2e-06
3112sld_rimB        |Ang^-2|  4e-06
3113sld_rimC        |Ang^-2|  2e-06
3114sld_solv        |Ang^-2|  6e-06
3115rimA            |Ang|     10
3116rimB            |Ang|     10
3117rimC            |Ang|     10
3118longC           |Ang|     400
3119shortA          |Ang|     35
3120midB            |Ang|     75
3121scale           None      1
3122==============  ========  =============
3123
[7f42aad]3124.. image:: img/image096.jpg
[1c03e14]3125
3126*Figure. 1D plot using the default values (w/256 data points).*
3127
[7f42aad]3128.. image:: img/image097.jpg
[1c03e14]3129
[bf8c07b]3130*Figure. 2D plot using the default values (w/(256X265) data points).*
[1c03e14]3131
[bf8c07b]3132Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research
3133(Kline, 2006).
[1c03e14]3134
3135REFERENCE
3136
[93b6fcc]3137P Mittelbach and G Porod, *Acta Physica Austriaca*, 14 (1961) 185-211
[bf8c07b]3138Equations (1), (13-14). (in German)
[1c03e14]3139
3140
3141
[6386cd8]3142.. _RectangularPrismModel:
3143
3144**2.1.39. RectangularPrismModel**
3145
3146This model provides the form factor, *P(q)*, for a rectangular prism.
3147
3148Note that this model is almost totally equivalent to the existing ParallelepipedModel_. The only difference is that the
3149way the relevant parameters are defined here (*a*, *b/a*, *c/a* instead of *a*, *b*, *c*) allows to use polydispersity
3150with this model while keeping the shape of the prism (e.g. setting *b/a* = 1 and *c/a* = 1 and applying polydispersity
3151to *a* will generate a distribution of cubes of different sizes).
3152
3153*2.1.39.1. Definition*
3154
3155The 1D scattering intensity for this model was calculated by Mittelbach and Porod (Mittelbach, 1961), but the
3156implementation here is closer to the equations given by Nayuk and Huber (Nayuk, 2012).
3157
3158The scattering from a massive parallelepiped with an orientation with respect to the scattering vector given by |theta|
3159and |phi| is given by
3160
3161.. math::
3162  A_P\,(q) =  \frac{\sin \bigl( q \frac{C}{2} \cos\theta \bigr)}{q \frac{C}{2} \cos\theta} \, \times \,
3163  \frac{\sin \bigl( q \frac{A}{2} \sin\theta \sin\phi \bigr)}{q \frac{A}{2} \sin\theta \sin\phi} \, \times \,
3164  \frac{\sin \bigl( q \frac{B}{2} \sin\theta \cos\phi \bigr)}{q \frac{B}{2} \sin\theta \cos\phi}
3165
3166where *A*, *B* and *C* are the sides of the parallelepiped and must fulfill :math:`A \le B \le C`, |theta| is the angle
3167between the *z* axis and the longest axis of the parallelepiped *C*, and |phi| is the angle between the scattering
3168vector (lying in the *xy* plane) and the *y* axis.
3169
3170The normalized form factor in 1D is obtained averaging over all possible orientations
3171
3172.. math::
3173  P(q) =  \frac{2}{\pi} \times \, \int_0^{\frac{\pi}{2}} \, \int_0^{\frac{\pi}{2}} A_P^2(q) \, \sin\theta \, d\theta \, d\phi
3174
3175The 1D scattering intensity is then calculated as
3176
3177.. math::
3178  I(q) = \mbox{scale} \times V \times (\rho_{\mbox{pipe}} - \rho_{\mbox{solvent}})^2 \times P(q)
3179
3180where *V* is the volume of the rectangular prism, :math:`\rho_{\mbox{pipe}}` is the scattering length of the
3181parallelepiped, :math:`\rho_{\mbox{solvent}}` is the scattering length of the solvent, and (if the data are in absolute
3182units) *scale* represents the volume fraction (which is unitless).
3183
3184**The 2D scattering intensity is not computed by this model.**
3185
3186The returned value is scaled to units of |cm^-1| and the parameters of the RectangularPrismModel are the following
3187
3188==============  ========  =============
3189Parameter name  Units     Default value
3190==============  ========  =============
3191scale           None      1
3192short_side      |Ang|     35
3193b2a_ratio       None      1
3194c2a_ratio       None      1
3195sldPipe         |Ang^-2|  6.3e-6
3196sldSolv         |Ang^-2|  1.0e-6
3197background      |cm^-1|   0
3198==============  ========  =============
3199
3200*2.1.39.2. Validation of the RectangularPrismModel*
3201
3202Validation of the code was conducted by comparing the output of the 1D model to the output of the existing
3203parallelepiped model.
3204
3205REFERENCES
3206
3207P Mittelbach and G Porod, *Acta Physica Austriaca*, 14 (1961) 185-211
3208
3209R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854
3210
3211
3212
3213.. _RectangularHollowPrismModel:
3214
3215**2.1.40. RectangularHollowPrismModel**
3216
3217This model provides the form factor, *P(q)*, for a hollow rectangular parallelepiped with a wall thickness |bigdelta|.
3218
3219*2.1.40.1. Definition*
3220
3221The 1D scattering intensity for this model is calculated by forming the difference of the amplitudes of two massive
3222parallelepipeds differing in their outermost dimensions in each direction by the same length increment 2 |bigdelta|
3223(Nayuk, 2012).
3224
3225As in the case of the massive parallelepiped, the scattering amplitude is computed for a particular orientation of the
3226parallelepiped with respect to the scattering vector and then averaged over all possible orientations, giving
3227
3228.. math::
3229  P(q) =  \frac{1}{V^2} \frac{2}{\pi} \times \, \int_0^{\frac{\pi}{2}} \, \int_0^{\frac{\pi}{2}} A_{P\Delta}^2(q) \,
3230  \sin\theta \, d\theta \, d\phi
3231
3232where |theta| is the angle between the *z* axis and the longest axis of the parallelepiped, |phi| is the angle between
3233the scattering vector (lying in the *xy* plane) and the *y* axis, and
3234
3235.. math::
3236  A_{P\Delta}\,(q) =  A \, B \, C \, \times
3237                      \frac{\sin \bigl( q \frac{C}{2} \cos\theta \bigr)}{q \frac{C}{2} \cos\theta} \,
3238                      \frac{\sin \bigl( q \frac{A}{2} \sin\theta \sin\phi \bigr)}{q \frac{A}{2} \sin\theta \sin\phi} \,
3239                      \frac{\sin \bigl( q \frac{B}{2} \sin\theta \cos\phi \bigr)}{q \frac{B}{2} \sin\theta \cos\phi} -
3240                      8 \, \bigl( \frac{A}{2} - \Delta \bigr) \, \bigl( \frac{B}{2} - \Delta \bigr) \,
3241                      \bigl( \frac{C}{2} - \Delta \bigr) \, \times
3242                      \frac{\sin \bigl[ q \bigl(\frac{C}{2}-\Delta\bigr) \cos\theta \bigr]}
3243                      {q \bigl(\frac{C}{2}-\Delta\bigr) \cos\theta} \,
3244                      \frac{\sin \bigl[ q \bigl(\frac{A}{2}-\Delta\bigr) \sin\theta \sin\phi \bigr]}
3245                      {q \bigl(\frac{A}{2}-\Delta\bigr) \sin\theta \sin\phi} \,
3246                      \frac{\sin \bigl[ q \bigl(\frac{B}{2}-\Delta\bigr) \sin\theta \cos\phi \bigr]}
3247                      {q \bigl(\frac{B}{2}-\Delta\bigr) \sin\theta \cos\phi} \,
3248
3249where *A*, *B* and *C* are the external sides of the parallelepiped fulfilling :math:`A \le B \le C`, and the volume *V*
3250of the parallelepiped is
3251
3252.. math::
3253  V = A B C \, - \, (A - 2\Delta) (B - 2\Delta) (C - 2\Delta)
3254
3255The 1D scattering intensity is then calculated as
3256
3257.. math::
3258  I(q) = \mbox{scale} \times V \times (\rho_{\mbox{pipe}} - \rho_{\mbox{solvent}})^2 \times P(q)
3259
3260where :math:`\rho_{\mbox{pipe}}` is the scattering length of the parallelepiped, :math:`\rho_{\mbox{solvent}}` is the
3261scattering length of the solvent, and (if the data are in absolute units) *scale* represents the volume fraction (which
3262is unitless).
3263
3264**The 2D scattering intensity is not computed by this model.**
3265
3266The returned value is scaled to units of |cm^-1| and the parameters of the RectangularHollowPrismModel are the
3267following
3268
3269==============  ========  =============
3270Parameter name  Units     Default value
3271==============  ========  =============
3272scale           None      1
3273short_side      |Ang|     35
3274b2a_ratio       None      1
3275c2a_ratio       None      1
3276thickness       |Ang|     1
3277sldPipe         |Ang^-2|  6.3e-6
3278sldSolv         |Ang^-2|  1.0e-6
3279background      |cm^-1|   0
3280==============  ========  =============
3281
3282*2.1.40.2. Validation of the RectangularHollowPrismModel*
3283
3284Validation of the code was conducted by qualitatively comparing the output of the 1D model to the curves shown in
3285(Nayuk, 2012).
3286
3287REFERENCES
3288
3289R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854
3290
3291
3292
3293.. _RectangularHollowPrismInfThinWallsModel:
3294
3295**2.1.41. RectangularHollowPrismInfThinWallsModel**
3296
3297This model provides the form factor, *P(q)*, for a hollow rectangular prism with infinitely thin walls.
3298
3299*2.1.41.1. Definition*
3300
3301The 1D scattering intensity for this model is calculated according to the equations given by Nayuk and Huber
3302(Nayuk, 2012).
3303
3304Assuming a hollow parallelepiped with infinitely thin walls, edge lengths :math:`A \le B \le C` and presenting an
3305orientation with respect to the scattering vector given by |theta| and |phi|, where |theta| is the angle between the
3306*z* axis and the longest axis of the parallelepiped *C*, and |phi| is the angle between the scattering vector
3307(lying in the *xy* plane) and the *y* axis, the form factor is given by
3308
3309.. math::
3310  P(q) =  \frac{1}{V^2} \frac{2}{\pi} \times \, \int_0^{\frac{\pi}{2}} \, \int_0^{\frac{\pi}{2}} [A_L(q)+A_T(q)]^2
3311  \, \sin\theta \, d\theta \, d\phi
3312
3313where
3314
3315.. math::
3316  V = 2AB + 2AC + 2BC
3317
3318.. math::
3319  A_L\,(q) =  8 \times \frac{ \sin \bigl( q \frac{A}{2} \sin\phi \sin\theta \bigr)
3320                              \sin \bigl( q \frac{B}{2} \cos\phi \sin\theta \bigr)
3321                              \cos \bigl( q \frac{C}{2} \cos\theta \bigr) }
3322                            {q^2 \, \sin^2\theta \, \sin\phi \cos\phi}
3323
3324.. math::
3325  A_T\,(q) =  A_F\,(q) \times \frac{2 \, \sin \bigl( q \frac{C}{2} \cos\theta \bigr)}{q \, \cos\theta}
3326
3327and
3328
3329.. math::
3330  A_F\,(q) =  4 \frac{ \cos \bigl( q \frac{A}{2} \sin\phi \sin\theta \bigr)
3331                       \sin \bigl( q \frac{B}{2} \cos\phi \sin\theta \bigr) }
3332                     {q \, \cos\phi \, \sin\theta} +
3333              4 \frac{ \sin \bigl( q \frac{A}{2} \sin\phi \sin\theta \bigr)
3334                       \cos \bigl( q \frac{B}{2} \cos\phi \sin\theta \bigr) }
3335                     {q \, \sin\phi \, \sin\theta}
3336
3337The 1D scattering intensity is then calculated as
3338
3339.. math::
3340  I(q) = \mbox{scale} \times V \times (\rho_{\mbox{pipe}} - \rho_{\mbox{solvent}})^2 \times P(q)
3341
3342where *V* is the volume of the rectangular prism, :math:`\rho_{\mbox{pipe}}` is the scattering length of the
3343parallelepiped, :math:`\rho_{\mbox{solvent}}` is the scattering length of the solvent, and (if the data are in absolute
3344units) *scale* represents the volume fraction (which is unitless).
3345
3346**The 2D scattering intensity is not computed by this model.**
3347
3348The returned value is scaled to units of |cm^-1| and the parameters of the RectangularHollowPrismInfThinWallModel
3349are the following
3350
3351==============  ========  =============
3352Parameter name  Units     Default value
3353==============  ========  =============
3354scale           None      1
3355short_side      |Ang|     35
3356b2a_ratio       None      1
3357c2a_ratio       None      1
3358sldPipe         |Ang^-2|  6.3e-6
3359sldSolv         |Ang^-2|  1.0e-6
3360background      |cm^-1|   0
3361==============  ========  =============
3362
3363*2.1.41.2. Validation of the RectangularHollowPrismInfThinWallsModel*
3364
3365Validation of the code was conducted  by qualitatively comparing the output of the 1D model to the curves shown in
3366(Nayuk, 2012).
3367
3368REFERENCES
3369
3370R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854
3371
3372
3373
[1c03e14]33742.2 Shape-independent Functions
3375-------------------------------
3376
[6386cd8]3377The following are models used for shape-independent SAS analysis.
[1c03e14]3378
[4ed2d0a1]3379.. _Debye:
[1c03e14]3380
[58eccf6]3381**2.2.1. Debye (Gaussian Coil Model)**
[1c03e14]3382
[6386cd8]3383The Debye model is a form factor for a linear polymer chain obeying Gaussian statistics (ie, it is in the theta state).
3384In addition to the radius-of-gyration, *Rg*, a scale factor *scale*, and a constant background term are included in the
3385calculation. **NB: No size polydispersity is included in this model, use the** Poly_GaussCoil_ **Model instead**
[1c03e14]3386
[4ed2d0a1]3387.. image:: img/image172.PNG
[1c03e14]3388
[93b6fcc]3389For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3390
[7f42aad]3391.. image:: img/image040.gif
[1c03e14]3392
[4ed2d0a1]3393==============  ========  =============
3394Parameter name  Units     Default value
3395==============  ========  =============
[58eccf6]3396scale           None      1.0
3397rg              |Ang|     50.0
3398background      |cm^-1|   0.0
[4ed2d0a1]3399==============  ========  =============
[1c03e14]3400
[7f42aad]3401.. image:: img/image173.jpg
[1c03e14]3402
[4ed2d0a1]3403*Figure. 1D plot using the default values (w/200 data point).*
[1c03e14]3404
[4ed2d0a1]3405REFERENCE
[1c03e14]3406
[93b6fcc]3407R J Roe, *Methods of X-Ray and Neutron Scattering in Polymer Science*, Oxford University Press, New York (2000)
[1c03e14]3408
3409
3410
[4ed2d0a1]3411.. _BroadPeakModel:
[1c03e14]3412
[58eccf6]3413**2.2.2. BroadPeakModel**
[1c03e14]3414
[6386cd8]3415This model calculates an empirical functional form for SAS data characterized by a broad scattering peak. Many SAS
[93b6fcc]3416spectra are characterized by a broad peak even though they are from amorphous soft materials. For example, soft systems
[6386cd8]3417that show a SAS peak include copolymers, polyelectrolytes, multiphase systems, layered structures, etc.
[93b6fcc]3418
3419The d-spacing corresponding to the broad peak is a characteristic distance between the scattering inhomogeneities (such
3420as in lamellar, cylindrical, or spherical morphologies, or for bicontinuous structures).
[1c03e14]3421
[4ed2d0a1]3422The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]3423
[93b6fcc]3424*2.2.2.1. Definition*
3425
3426The scattering intensity *I(q)* is calculated as
[1c03e14]3427
[7f42aad]3428.. image:: img/image174.jpg
[1c03e14]3429
[93b6fcc]3430Here the peak position is related to the d-spacing as *Q0* = 2|pi| / *d0*.
[1c03e14]3431
[93b6fcc]3432For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3433
[7f42aad]3434.. image:: img/image040.gif
[1c03e14]3435
[93b6fcc]3436==================  ========  =============
3437Parameter name      Units     Default value
3438==================  ========  =============
3439scale_l    (=C)     None      10
3440scale_p    (=A)     None      1e-05
3441length_l (= |xi| )  |Ang|     50
3442q_peak    (=Q0)     |Ang^-1|  0.1
3443exponent_p (=n)     None      2
3444exponent_l (=m)     None      3
3445Background (=B)     |cm^-1|   0.1
3446==================  ========  =============
[1c03e14]3447
[7f42aad]3448.. image:: img/image175.jpg
[1c03e14]3449
[4ed2d0a1]3450*Figure. 1D plot using the default values (w/200 data point).*
[1c03e14]3451
[4ed2d0a1]3452REFERENCE
[1c03e14]3453
[4ed2d0a1]3454None.
[1c03e14]3455
[93b6fcc]3456*2013/09/09 - Description reviewed by King, S and Parker, P.*
[1c03e14]3457
3458
3459
[4ed2d0a1]3460.. _CorrLength:
[1c03e14]3461
[58eccf6]3462**2.2.3. CorrLength (Correlation Length Model)**
[1c03e14]3463
[6386cd8]3464Calculates an empirical functional form for SAS data characterized by a low-Q signal and a high-Q signal.
[1c03e14]3465
[4ed2d0a1]3466The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]3467
[93b6fcc]3468*2.2.3. Definition*
3469
3470The scattering intensity *I(q)* is calculated as
[1c03e14]3471
[7f42aad]3472.. image:: img/image176.jpg
[1c03e14]3473
[93b6fcc]3474The first term describes Porod scattering from clusters (exponent = n) and the second term is a Lorentzian function
3475describing scattering from polymer chains (exponent = *m*). This second term characterizes the polymer/solvent
3476interactions and therefore the thermodynamics. The two multiplicative factors *A* and *C*, the incoherent
3477background *B* and the two exponents *n* and *m* are used as fitting parameters. The final parameter |xi| is a
3478correlation length for the polymer chains. Note that when *m*\ =2 this functional form becomes the familiar Lorentzian
3479function. 
[1c03e14]3480
[93b6fcc]3481For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3482
[7f42aad]3483.. image:: img/image040.gif
[1c03e14]3484
[93b6fcc]3485====================  ========  =============
3486Parameter name        Units     Default value
3487====================  ========  =============
3488scale_l    (=C)       None      10
3489scale_p    (=A)       None      1e-06
3490length_l   (= |xi| )  |Ang|     50
3491exponent_p (=n)       None      2
3492exponent_l (=m)       None      3
3493Background (=B)       |cm^-1|   0.1
3494====================  ========  =============
[1c03e14]3495
[7f42aad]3496.. image:: img/image177.jpg
[1c03e14]3497
[4ed2d0a1]3498*Figure. 1D plot using the default values (w/500 data points).*
[1c03e14]3499
[4ed2d0a1]3500REFERENCE
[1c03e14]3501
[93b6fcc]3502B Hammouda, D L Ho and S R Kline, *Insight into Clustering in Poly(ethylene oxide) Solutions*, *Macromolecules*, 37
3503(2004) 6932-6937
[1c03e14]3504
[93b6fcc]3505*2013/09/09 - Description reviewed by King, S and Parker, P.*
[1c03e14]3506
3507
3508
[4ed2d0a1]3509.. _Lorentz:
[1c03e14]3510
[58eccf6]3511**2.2.4. Lorentz (Ornstein-Zernicke Model)**
[1c03e14]3512
[93b6fcc]3513*2.2.4.1. Definition*
3514
3515The Ornstein-Zernicke model is defined by
[1c03e14]3516
[4ed2d0a1]3517.. image:: img/image178.PNG
[1c03e14]3518
[93b6fcc]3519The parameter *L* is the screening length.
[1c03e14]3520
[93b6fcc]3521For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3522
[7f42aad]3523.. image:: img/image040.gif
[bf8c07b]3524
[4ed2d0a1]3525==============  ========  =============
3526Parameter name  Units     Default value
3527==============  ========  =============
[58eccf6]3528scale           None      1.0
3529length          |Ang|     50.0
3530background      |cm^-1|   0.0
[4ed2d0a1]3531==============  ========  =============
[1c03e14]3532
[7f42aad]3533.. image:: img/image179.jpg
[1c03e14]3534
[93b6fcc]3535* Figure. 1D plot using the default values (w/200 data point).*
3536
3537REFERENCE
3538
3539None.
[1c03e14]3540
3541
3542
[4ed2d0a1]3543.. _DABModel:
[1c03e14]3544
[58eccf6]3545**2.2.5. DABModel (Debye-Anderson-Brumberger Model)**
[1c03e14]3546
[93b6fcc]3547Calculates the scattering from a randomly distributed, two-phase system based on the Debye-Anderson-Brumberger (DAB)
3548model for such systems. The two-phase system is characterized by a single length scale, the correlation length, which
3549is a measure of the average spacing between regions of phase 1 and phase 2. **The model also assumes smooth interfaces**
3550**between the phases** and hence exhibits Porod behavior (I ~ *q*\ :sup:`-4`) at large *q* (*QL* >> 1).
3551
3552The DAB model is ostensibly a development of the earlier Debye-Bueche model.
3553
3554*2.2.5.1. Definition*
[1c03e14]3555
[4ed2d0a1]3556.. image:: img/image180.PNG
[1c03e14]3557
[93b6fcc]3558The parameter *L* is the correlation length.
[1c03e14]3559
[93b6fcc]3560For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3561
[7f42aad]3562.. image:: img/image040.gif
[1c03e14]3563
[4ed2d0a1]3564==============  ========  =============
3565Parameter name  Units     Default value
3566==============  ========  =============
[58eccf6]3567scale           None      1.0
3568length          |Ang|     50.0
3569background      |cm^-1|   0.0
[4ed2d0a1]3570==============  ========  =============
[1c03e14]3571
[7f42aad]3572.. image:: img/image181.jpg
[1c03e14]3573
[93b6fcc]3574* Figure. 1D plot using the default values (w/200 data point).*
[1c03e14]3575
[4ed2d0a1]3576REFERENCE
[1c03e14]3577
[93b6fcc]3578P Debye, H R Anderson, H Brumberger, *Scattering by an Inhomogeneous Solid. II. The Correlation Function*
3579*and its Application*, *J. Appl. Phys.*, 28(6) (1957) 679
[1c03e14]3580
[93b6fcc]3581P Debye, A M Bueche, *Scattering by an Inhomogeneous Solid*, *J. Appl. Phys.*, 20 (1949) 518
[1c03e14]3582
[93b6fcc]3583*2013/09/09 - Description reviewed by King, S and Parker, P.*
[1c03e14]3584
3585
3586
[4ed2d0a1]3587.. _AbsolutePower_Law:
[1c03e14]3588
[58eccf6]3589**2.2.6. AbsolutePower_Law**
[1c03e14]3590
[93b6fcc]3591This model describes a simple power law with background.
[1c03e14]3592
[4ed2d0a1]3593.. image:: img/image182.PNG
[1c03e14]3594
[93b6fcc]3595Note the minus sign in front of the exponent. The parameter *m* should therefore be entered as a **positive** number.
[1c03e14]3596
[4ed2d0a1]3597==============  ========  =============
3598Parameter name  Units     Default value
3599==============  ========  =============
[58eccf6]3600Scale           None      1.0
3601m               None      4
3602Background      |cm^-1|   0.0
[4ed2d0a1]3603==============  ========  =============
[1c03e14]3604
[7f42aad]3605.. image:: img/image183.jpg
[1c03e14]3606
[4ed2d0a1]3607*Figure. 1D plot using the default values (w/200 data point).*
[1c03e14]3608
[93b6fcc]3609REFERENCE
3610
3611None.
3612
[1c03e14]3613
3614
[93b6fcc]3615.. _TeubnerStrey:
[1c03e14]3616
[93b6fcc]3617**2.2.7. TeubnerStrey (Model)**
[1c03e14]3618
[93b6fcc]3619This function calculates the scattered intensity of a two-component system using the Teubner-Strey model. Unlike the
3620DABModel_ this function generates a peak.
3621
3622*2.2.7.1. Definition*
[1c03e14]3623
[4ed2d0a1]3624.. image:: img/image184.PNG
[1c03e14]3625
[93b6fcc]3626For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3627
[7f42aad]3628.. image:: img/image040.gif
[1c03e14]3629
[4ed2d0a1]3630==============  ========  =============
3631Parameter name  Units     Default value
3632==============  ========  =============
[58eccf6]3633scale           None      0.1
3634c1              None      -30.0
3635c2              None      5000.0
3636background      |cm^-1|   0.0
[4ed2d0a1]3637==============  ========  =============
[1c03e14]3638
[7f42aad]3639.. image:: img/image185.jpg
[1c03e14]3640
[4ed2d0a1]3641*Figure. 1D plot using the default values (w/200 data point).*
[1c03e14]3642
[4ed2d0a1]3643REFERENCE
[1c03e14]3644
[93b6fcc]3645M Teubner, R Strey, *J. Chem. Phys.*, 87 (1987) 3195
[1c03e14]3646
[93b6fcc]3647K V Schubert, R Strey, S R Kline and E W Kaler, *J. Chem. Phys.*, 101 (1994) 5343
[1c03e14]3648
3649
3650
[4ed2d0a1]3651.. _FractalModel:
[1c03e14]3652
[58eccf6]3653**2.2.8. FractalModel**
[1c03e14]3654
[93b6fcc]3655Calculates the scattering from fractal-like aggregates built from spherical building blocks following the Texiera
3656reference.
3657
3658The value returned is in |cm^-1|\ .
3659
3660*2.2.8.1. Definition*
[1c03e14]3661
[4ed2d0a1]3662.. image:: img/image186.PNG
[1c03e14]3663
[93b6fcc]3664The *scale* parameter is the volume fraction of the building blocks, *R0* is the radius of the building block, *Df* is
3665the fractal dimension, |xi| is the correlation length, |rho|\ *solvent* is the scattering length density of the
3666solvent, and |rho|\ *block* is the scattering length density of the building blocks.
[1c03e14]3667
[93b6fcc]3668**Polydispersity on the radius is provided for.**
[1c03e14]3669
[93b6fcc]3670For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3671
[7f42aad]3672.. image:: img/image040.gif
[1c03e14]3673
[4ed2d0a1]3674==============  ========  =============
3675Parameter name  Units     Default value
3676==============  ========  =============
[58eccf6]3677scale           None      0.05
3678radius          |Ang|     5.0
3679fractal_dim     None      2
3680corr_length     |Ang|     100.0
3681block_sld       |Ang^-2|  2e-6
3682solvent_sld     |Ang^-2|  6e-6
3683background      |cm^-1|   0.0
[4ed2d0a1]3684==============  ========  =============
[1c03e14]3685
[7f42aad]3686.. image:: img/image187.jpg
[1c03e14]3687
3688*Figure. 1D plot using the default values (w/200 data point).*
3689
[4ed2d0a1]3690REFERENCE
[1c03e14]3691
[93b6fcc]3692J Teixeira, *J. Appl. Cryst.*, 21 (1988) 781-785
[1c03e14]3693
3694
3695
[4ed2d0a1]3696.. _MassFractalModel:
[1c03e14]3697
[4ed2d0a1]3698**2.2.9. MassFractalModel**
[1c03e14]3699
[93b6fcc]3700Calculates the scattering from fractal-like aggregates based on the Mildner reference.
3701
3702*2.2.9.1. Definition*
[1c03e14]3703
[7f42aad]3704.. image:: img/mass_fractal_eq1.jpg
[1c03e14]3705
[93b6fcc]3706where *R* is the radius of the building block, *Dm* is the **mass** fractal dimension, |zeta| is the cut-off length,
3707|rho|\ *solvent* is the scattering length density of the solvent, and |rho|\ *particle* is the scattering length
3708density of particles.
[1c03e14]3709
[93b6fcc]3710Note:  The mass fractal dimension *Dm* is only valid if 1 < mass_dim < 6. It is also only valid over a limited
3711*q* range (see the reference for details).
[1c03e14]3712
[4ed2d0a1]3713==============  ========  =============
3714Parameter name  Units     Default value
3715==============  ========  =============
[58eccf6]3716scale           None      1
3717radius          |Ang|     10.0
3718mass_dim        None      1.9
3719co_length       |Ang|     100.0
3720background      |cm^-1|   0.0
[4ed2d0a1]3721==============  ========  =============
[1c03e14]3722
[7f42aad]3723.. image:: img/mass_fractal_fig1.jpg
[1c03e14]3724
[93b6fcc]3725*Figure. 1D plot using default values.*
[1c03e14]3726
[4ed2d0a1]3727REFERENCE
[1c03e14]3728
[93b6fcc]3729D Mildner and P Hall, *J. Phys. D: Appl. Phys.*,  19 (1986) 1535-1545
3730Equation(9)
[1c03e14]3731
[93b6fcc]3732*2013/09/09 - Description reviewed by King, S and Parker, P.*
[1c03e14]3733
3734
3735
[4ed2d0a1]3736.. _SurfaceFractalModel:
[1c03e14]3737
[4ed2d0a1]3738**2.2.10. SurfaceFractalModel**
[1c03e14]3739
[93b6fcc]3740Calculates the scattering from fractal-like aggregates based on the Mildner reference.
3741
3742*2.2.10.1. Definition*
[1c03e14]3743
[f8063bf]3744.. image:: img/surface_fractal_eq1.gif
[1c03e14]3745
[93b6fcc]3746where *R* is the radius of the building block, *Ds* is the **surface** fractal dimension, |zeta| is the cut-off length,
3747|rho|\ *solvent* is the scattering length density of the solvent, and |rho|\ *particle* is the scattering length
3748density of particles.
[1c03e14]3749
[93b6fcc]3750Note:  The surface fractal dimension *Ds* is only valid if 1 < surface_dim < 3. It is also only valid over a limited
3751*q* range (see the reference for details).
[1c03e14]3752
[4ed2d0a1]3753==============  ========  =============
3754Parameter name  Units     Default value
3755==============  ========  =============
[58eccf6]3756scale           None      1
3757radius          |Ang|     10.0
3758surface_dim     None      2.0
3759co_length       |Ang|     500.0
3760background      |cm^-1|   0.0
[4ed2d0a1]3761==============  ========  =============
[1c03e14]3762
[7f42aad]3763.. image:: img/surface_fractal_fig1.jpg
[1c03e14]3764
[93b6fcc]3765*Figure. 1D plot using default values.*
[1c03e14]3766
[4ed2d0a1]3767REFERENCE
[1c03e14]3768
[93b6fcc]3769D Mildner and P Hall, *J. Phys. D: Appl. Phys.*,  19 (1986) 1535-1545
3770Equation(13)
[1c03e14]3771
3772
3773
[4ed2d0a1]3774.. _MassSurfaceFractal:
[1c03e14]3775
[58eccf6]3776**2.2.11. MassSurfaceFractal (Model)**
[1c03e14]3777
[93b6fcc]3778A number of natural and commercial processes form high-surface area materials as a result of the vapour-phase
3779aggregation of primary particles. Examples of such materials include soots, aerosols, and fume or pyrogenic silicas.
3780These are all characterised by cluster mass distributions (sometimes also cluster size distributions) and internal
3781surfaces that are fractal in nature. The scattering from such materials displays two distinct breaks in log-log
3782representation, corresponding to the radius-of-gyration of the primary particles, *rg*, and the radius-of-gyration of
3783the clusters (aggregates), *Rg*. Between these boundaries the scattering follows a power law related to the mass
3784fractal dimension, *Dm*, whilst above the high-Q boundary the scattering follows a power law related to the surface
3785fractal dimension of the primary particles, *Ds*.
3786
3787*2.2.11.1. Definition*
3788
3789The scattered intensity *I(q)* is  calculated using a modified Ornstein-Zernicke equation
[1c03e14]3790
[f8063bf]3791.. image:: img/masssurface_fractal_eq1.jpg
[1c03e14]3792
[93b6fcc]3793where *Rg* is the size of the cluster, *rg* is the size of the primary particle, *Ds* is the surface fractal dimension,
3794*Dm* is the mass fractal dimension, |rho|\ *solvent* is the scattering length density of the solvent, and |rho|\ *p* is
3795the scattering length density of particles.
[1c03e14]3796
[93b6fcc]3797Note:  The surface (*Ds*) and mass (*Dm*) fractal dimensions are only valid if 0 < *surface_dim* < 6,
37980 < *mass_dim* < 6, and (*surface_dim*+*mass_dim*) < 6. 
[1c03e14]3799
[4ed2d0a1]3800==============  ========  =============
3801Parameter name  Units     Default value
3802==============  ========  =============
[58eccf6]3803scale           None      1
3804primary_rg      |Ang|     4000.0
3805cluster_rg      |Ang|     86.7
3806surface_dim     None      2.3
3807mass_dim        None      1.8
3808background      |cm^-1|   0.0
[4ed2d0a1]3809==============  ========  =============
[1c03e14]3810
[7f42aad]3811.. image:: img/masssurface_fractal_fig1.jpg
[1c03e14]3812
[93b6fcc]3813*Figure. 1D plot using default values.*
[1c03e14]3814
[4ed2d0a1]3815REFERENCE
[1c03e14]3816
[93b6fcc]3817P Schmidt, *J Appl. Cryst.*, 24 (1991) 414-435
3818Equation(19)
[1c03e14]3819
[93b6fcc]3820A J Hurd, D W Schaefer, J E Martin, *Phys. Rev. A*, 35 (1987) 2361-2364
3821Equation(2)
[1c03e14]3822
3823
3824
[4ed2d0a1]3825.. _FractalCoreShell:
[1c03e14]3826
[58eccf6]3827**2.2.12. FractalCoreShell (Model)**
[1c03e14]3828
[93b6fcc]3829Calculates the scattering from a fractal structure with a primary building block of core-shell spheres, as opposed to
3830just homogeneous spheres in the FractalModel_. This model could find use for aggregates of coated particles, or
3831aggregates of vesicles.
3832
3833The returned value is scaled to units of |cm^-1|, absolute scale.
3834
3835*2.2.12.1. Definition*
[1c03e14]3836
[7f42aad]3837.. image:: img/fractcore_eq1.gif
[1c03e14]3838
[93b6fcc]3839The form factor *P(q)* is that from CoreShellModel_ with *bkg* = 0
[1c03e14]3840
[4ed2d0a1]3841.. image:: img/image013.PNG
[1c03e14]3842
[93b6fcc]3843while the fractal structure factor S(q) is
[1c03e14]3844
[4ed2d0a1]3845.. image:: img/fractcore_eq3.gif
[1c03e14]3846
[93b6fcc]3847where *Df* = frac_dim, |xi| = cor_length, *rc* = (core) radius, and *scale* = volume fraction.
[1c03e14]3848
[93b6fcc]3849The fractal structure is as documented in the FractalModel_. Polydispersity of radius and thickness is provided for.
[1c03e14]3850
[93b6fcc]3851For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3852
[7f42aad]3853.. image:: img/image040.gif
[1c03e14]3854
[4ed2d0a1]3855==============  ========  =============
3856Parameter name  Units     Default value
3857==============  ========  =============
[58eccf6]3858volfraction     None      0.05
3859frac_dim        None      2
3860thickness       |Ang|     5.0
3861radius          |Ang|     20.0
3862cor_length      |Ang|     100.0
3863core_sld        |Ang^-2|  3.5e-6
3864shell_sld       |Ang^-2|  1e-6
3865solvent_sld     |Ang^-2|  6.35e-6
3866background      |cm^-1|   0.0
[4ed2d0a1]3867==============  ========  =============
[1c03e14]3868
[7f42aad]3869.. image:: img/image188.jpg
[1c03e14]3870
[4ed2d0a1]3871*Figure. 1D plot using the default values (w/500 data points).*
[1c03e14]3872
[4ed2d0a1]3873REFERENCE
[1c03e14]3874
[93b6fcc]3875See the CoreShellModel_ and FractalModel_ descriptions.
[1c03e14]3876
3877
3878
[4ed2d0a1]3879.. _GaussLorentzGel:
[1c03e14]3880
[58eccf6]3881**2.2.13. GaussLorentzGel(Model)**
[1c03e14]3882
[93b6fcc]3883Calculates the scattering from a gel structure, but typically a physical rather than chemical network. It is modeled as
3884a sum of a low-*q* exponential decay plus a lorentzian at higher *q*-values.
[1c03e14]3885
[6386cd8]3886Also see the GelFitModel_.
3887
[4ed2d0a1]3888The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]3889
[93b6fcc]3890*2.2.13.1. Definition*
3891
3892The scattering intensity *I(q)* is calculated as (eqn 5 from the reference)
[1c03e14]3893
[7f42aad]3894.. image:: img/image189.jpg
[1c03e14]3895
[93b6fcc]3896|bigzeta| is the length scale of the static correlations in the gel, which can be attributed to the "frozen-in"
3897crosslinks. |xi| is the dynamic correlation length, which can be attributed to the fluctuating polymer chains between
3898crosslinks. *I*\ :sub:`G`\ *(0)* and *I*\ :sub:`L`\ *(0)* are the scaling factors for each of these structures. **Think carefully about how**
3899**these map to your particular system!**
[1c03e14]3900
[93b6fcc]3901NB: The peaked structure at higher *q* values (Figure 2 from the reference) is not reproduced by the model. Peaks can
3902be introduced into the model by summing this model with the PeakGaussModel_ function.
[1c03e14]3903
[93b6fcc]3904For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3905
[7f42aad]3906.. image:: img/image040.gif
[1c03e14]3907
[58eccf6]3908===================================  ========  =============
3909Parameter name                       Units     Default value
3910===================================  ========  =============
3911dyn_colength (=dynamic corr length)  |Ang|     20.0
3912scale_g       (=Gauss scale factor)  None      100
3913scale_l  (=Lorentzian scale factor)  None      50
3914stat_colength (=static corr length)  |Ang|     100.0
3915background                           |cm^-1|   0.0
3916===================================  ========  =============
[1c03e14]3917
[7f42aad]3918.. image:: img/image190.jpg
[1c03e14]3919
[4ed2d0a1]3920*Figure. 1D plot using the default values (w/500 data points).*
[1c03e14]3921
[4ed2d0a1]3922REFERENCE
[1c03e14]3923
[93b6fcc]3924G Evmenenko, E Theunissen, K Mortensen, H Reynaers, *Polymer*, 42 (2001) 2907-2913
[1c03e14]3925
3926
3927
[4ed2d0a1]3928.. _BEPolyelectrolyte:
[1c03e14]3929
[58eccf6]3930**2.2.14. BEPolyelectrolyte (Model)**
[1c03e14]3931
[93b6fcc]3932Calculates the structure factor of a polyelectrolyte solution with the RPA expression derived by Borue and Erukhimovich.
3933
3934The value returned is in |cm^-1|.
3935
3936*2.2.14.1. Definition*
[1c03e14]3937
[4ed2d0a1]3938.. image:: img/image191.PNG
[1c03e14]3939
[93b6fcc]3940where *K* is the contrast factor for the polymer, *Lb* is the Bjerrum length, *h* is the virial parameter, *b* is the
3941monomer length, *Cs* is the concentration of monovalent salt, |alpha| is the ionization degree, *Ca* is the polymer
3942molar concentration, and *background* is the incoherent background.
[1c03e14]3943
[93b6fcc]3944For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3945
[7f42aad]3946.. image:: img/image040.gif
[1c03e14]3947
[4ed2d0a1]3948==============  ========  =============
3949Parameter name  Units     Default value
3950==============  ========  =============
[58eccf6]3951K               barns     10
3952Lb              |Ang|     7.1
3953h               |Ang^-3|  12
3954b               |Ang|     10
3955Cs              mol/L     0
3956alpha           None      0.05
3957Ca              mol/L     0.7
3958background      |cm^-1|   0.0
[4ed2d0a1]3959==============  ========  =============
[1c03e14]3960
[58eccf6]3961NB: 1 barn = 10\ :sup:`-24` |cm^2|
3962
[4ed2d0a1]3963REFERENCE
[1c03e14]3964
[93b6fcc]3965V Y Borue, I Y Erukhimovich, *Macromolecules*, 21 (1988) 3240
[1c03e14]3966
[93b6fcc]3967J F Joanny, L Leibler, *Journal de Physique*, 51 (1990) 545
[1c03e14]3968
[93b6fcc]3969A Moussaid, F Schosseler, J P Munch, S Candau, *J. Journal de Physique II France*, 3 (1993) 573
[1c03e14]3970
[93b6fcc]3971E Raphael, J F Joanny, *Europhysics Letters*, 11 (1990) 179
[1c03e14]3972
3973
3974
[4ed2d0a1]3975.. _Guinier:
[1c03e14]3976
[4ed2d0a1]3977**2.2.15. Guinier (Model)**
[1c03e14]3978
[93b6fcc]3979This model fits the Guinier function
[1c03e14]3980
[4ed2d0a1]3981.. image:: img/image192.PNG
[1c03e14]3982
[93b6fcc]3983to the data directly without any need for linearisation (*cf*. Ln *I(q)* vs *q*\ :sup:`2`).
3984
3985For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]3986
[7f42aad]3987.. image:: img/image040.gif
[1c03e14]3988
[4ed2d0a1]3989==============  ========  =============
3990Parameter name  Units     Default value
3991==============  ========  =============
[58eccf6]3992scale           |cm^-1|   1.0
3993Rg              |Ang|     0.1
[4ed2d0a1]3994==============  ========  =============
[1c03e14]3995
[93b6fcc]3996REFERENCE
3997
3998A Guinier and G Fournet, *Small-Angle Scattering of X-Rays*, John Wiley & Sons, New York (1955)
3999
[1c03e14]4000
4001
[4ed2d0a1]4002.. _GuinierPorod:
[1c03e14]4003
[4ed2d0a1]4004**2.2.16. GuinierPorod (Model)**
[1c03e14]4005
[93b6fcc]4006Calculates the scattering for a generalized Guinier/power law object. This is an empirical model that can be used to
4007determine the size and dimensionality of scattering objects, including asymmetric objects such as rods or platelets, and
4008shapes intermediate between spheres and rods or between rods and platelets.
[1c03e14]4009
[93b6fcc]4010The result is in the units of |cm^-1|, absolute scale.
[1c03e14]4011
[93b6fcc]4012*2.2.16.1 Definition*
[1c03e14]4013
[93b6fcc]4014The following functional form is used
[1c03e14]4015
[7f42aad]4016.. image:: img/image193.jpg
[1c03e14]4017
[93b6fcc]4018This is based on the generalized Guinier law for such elongated objects (see the Glatter reference below). For 3D
4019globular objects (such as spheres), *s* = 0 and one recovers the standard Guinier_ formula. For 2D symmetry (such as
4020for rods) *s* = 1, and for 1D symmetry (such as for lamellae or platelets) *s* = 2. A dimensionality parameter (3-*s*)
4021is thus defined, and is 3 for spherical objects, 2 for rods, and 1 for plates.
4022
4023Enforcing the continuity of the Guinier and Porod functions and their derivatives yields
[1c03e14]4024
[7f42aad]4025.. image:: img/image194.jpg
[1c03e14]4026
[4ed2d0a1]4027and
[1c03e14]4028
[7f42aad]4029.. image:: img/image195.jpg
[1c03e14]4030
[93b6fcc]4031Note that
[1c03e14]4032
[6386cd8]4033 the radius-of-gyration for a sphere of radius *R* is given by *Rg* = *R* sqrt(3/5)
[1c03e14]4034
[6386cd8]4035 the cross-sectional radius-of-gyration for a randomly oriented cylinder of radius *R* is given by *Rg* = *R* / sqrt(2)
[1c03e14]4036
[6386cd8]4037 the cross-sectional radius-of-gyration of a randomly oriented lamella of thickness *T* is given by *Rg* = *T* / sqrt(12)
[1c03e14]4038
[93b6fcc]4039For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4040
[4ed2d0a1]4041.. image:: img/image008.PNG
[1c03e14]4042
[58eccf6]4043==============================  ========  =============
4044Parameter name                  Units     Default value
4045==============================  ========  =============
4046scale      (=Guinier scale, G)  |cm^-1|   1.0
4047rg                              |Ang|     100
4048dim (=dimensional variable, s)  None      1
4049m            (=Porod exponent)  None      3
4050background                      |cm^-1|   0.1
4051==============================  ========  =============
[1c03e14]4052
[7f42aad]4053.. image:: img/image196.jpg
[1c03e14]4054
[4ed2d0a1]4055*Figure. 1D plot using the default values (w/500 data points).*
[1c03e14]4056
[93b6fcc]4057REFERENCE
4058
4059A Guinier, G Fournet, *Small-Angle Scattering of X-Rays*, John Wiley and Sons, New York, (1955)
4060
4061O Glatter, O Kratky, *Small-Angle X-Ray Scattering*, Academic Press (1982)
4062Check out Chapter 4 on Data Treatment, pages 155-156.
4063
[1c03e14]4064
4065
[4ed2d0a1]4066.. _PorodModel:
[1c03e14]4067
[4ed2d0a1]4068**2.2.17. PorodModel**
[1c03e14]4069
[6386cd8]4070This model fits the Porod function
[1c03e14]4071
[4ed2d0a1]4072.. image:: img/image197.PNG
[1c03e14]4073
[6386cd8]4074to the data directly without any need for linearisation (*cf*. Log *I(q)* vs Log *q*).
[1c03e14]4075
[6386cd8]4076Here *C* is the scale factor and *Sv* is the specific surface area (ie, surface area / volume) of the sample, and
4077|drho| is the contrast factor.
[1c03e14]4078
[93b6fcc]4079For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4080
[7f42aad]4081.. image:: img/image040.gif
[1c03e14]4082
[4ed2d0a1]4083==============  ========  =============
4084Parameter name  Units     Default value
4085==============  ========  =============
[58eccf6]4086scale           |Ang^-4|  0.1
4087background      |cm^-1|   0
[4ed2d0a1]4088==============  ========  =============
[1c03e14]4089
[6386cd8]4090REFERENCE
4091
4092None.
4093
[1c03e14]4094
4095
[4ed2d0a1]4096.. _PeakGaussModel:
[1c03e14]4097
[4ed2d0a1]4098**2.2.18. PeakGaussModel**
[1c03e14]4099
[6386cd8]4100This model describes a Gaussian shaped peak on a flat background
[1c03e14]4101
[4ed2d0a1]4102.. image:: img/image198.PNG
[1c03e14]4103
[6386cd8]4104with the peak having height of *I0* centered at *q0* and having a standard deviation of *B*.  The FWHM (full-width
4105half-maximum) is 2.354 B.  
[1c03e14]4106
[93b6fcc]4107For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4108
[7f42aad]4109.. image:: img/image040.gif
[1c03e14]4110
[4ed2d0a1]4111==============  ========  =============
4112Parameter name  Units     Default value
4113==============  ========  =============
[58eccf6]4114scale           |cm^-1|   100
4115q0              |Ang^-1|  0.05
4116B               |Ang^-1|  0.005
4117background      |cm^-1|   1
[4ed2d0a1]4118==============  ========  =============
[1c03e14]4119
[7f42aad]4120.. image:: img/image199.jpg
[1c03e14]4121
[4ed2d0a1]4122*Figure. 1D plot using the default values (w/500 data points).*
[1c03e14]4123
[6386cd8]4124REFERENCE
4125
4126None.
4127
[1c03e14]4128
4129
[4ed2d0a1]4130.. _PeakLorentzModel:
[1c03e14]4131
[4ed2d0a1]4132**2.2.19. PeakLorentzModel**
[1c03e14]4133
[6386cd8]4134This model describes a Lorentzian shaped peak on a flat background
[1c03e14]4135
[4ed2d0a1]4136.. image:: img/image200.PNG
[1c03e14]4137
[6386cd8]4138with the peak having height of *I0* centered at *q0* and having a HWHM (half-width half-maximum) of B. 
[1c03e14]4139
[93b6fcc]4140For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4141
[7f42aad]4142.. image:: img/image040.gif
[1c03e14]4143
[4ed2d0a1]4144==============  ========  =============
4145Parameter name  Units     Default value
4146==============  ========  =============
[58eccf6]4147scale           |cm^-1|   100
4148q0              |Ang^-1|  0.05
4149B               |Ang^-1|  0.005
4150background      |cm^-1|     1
[4ed2d0a1]4151==============  ========  =============
[1c03e14]4152
[7f42aad]4153.. image:: img/image201.jpg
[1c03e14]4154
[4ed2d0a1]4155*Figure. 1D plot using the default values (w/500 data points).*
[1c03e14]4156
[6386cd8]4157REFERENCE
4158
4159None.
4160
[1c03e14]4161
4162
[4ed2d0a1]4163.. _Poly_GaussCoil:
[1c03e14]4164
[4ed2d0a1]4165**2.2.20. Poly_GaussCoil (Model)**
[1c03e14]4166
[6386cd8]4167This model calculates an empirical functional form for the scattering from a **polydisperse** polymer chain in the
4168theta state assuming a Schulz-Zimm type molecular weight distribution. Polydispersity on the radius-of-gyration is also
4169provided for.
[1c03e14]4170
[4ed2d0a1]4171The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]4172
[6386cd8]4173*2.2.20.1. Definition*
4174
4175The scattering intensity *I(q)* is calculated as
4176
[4ed2d0a1]4177.. image:: img/image202.PNG
[1c03e14]4178
[6386cd8]4179where the dimensionless chain dimension is
[1c03e14]4180
[4ed2d0a1]4181.. image:: img/image203.PNG
[1c03e14]4182
[6386cd8]4183and the polydispersity is
[1c03e14]4184
[4ed2d0a1]4185.. image:: img/image204.PNG
[1c03e14]4186
[93b6fcc]4187For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4188
[7f42aad]4189.. image:: img/image040.gif
[1c03e14]4190
[6386cd8]4191This example dataset is produced using 200 data points, using 200 data points,
4192*qmin* = 0.001 |Ang^-1|, *qmax* = 0.7 |Ang^-1| and the default values
[1c03e14]4193
[4ed2d0a1]4194==============  ========  =============
4195Parameter name  Units     Default value
4196==============  ========  =============
[58eccf6]4197scale           None      1.0
4198rg              |Ang|     60.0
4199poly_m (Mw/Mn)  None      2
4200background      |cm^-1|   0.001
[4ed2d0a1]4201==============  ========  =============
[1c03e14]4202
[7f42aad]4203.. image:: img/image205.jpg
[1c03e14]4204
4205*Figure. 1D plot using the default values (w/200 data point).*
4206
[bf8c07b]4207REFERENCE
[1c03e14]4208
[6386cd8]4209O Glatter and O Kratky (editors), *Small Angle X-ray Scattering*, Academic Press, (1982)
4210Page 404
[1c03e14]4211
[93b6fcc]4212J S Higgins, and H C Benoit, Polymers and Neutron Scattering, Oxford Science Publications (1996)
[4ed2d0a1]4213
[1c03e14]4214
[4ed2d0a1]4215
4216.. _PolyExclVolume:
4217
4218**2.2.21. PolymerExclVolume (Model)**
[1c03e14]4219
[6386cd8]4220This model describes the scattering from polymer chains subject to excluded volume effects, and has been used as a
4221template for describing mass fractals.
[1c03e14]4222
[4ed2d0a1]4223The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]4224
[6386cd8]4225*2.2.21.1 Definition*
[1c03e14]4226
[6386cd8]4227The form factor  was originally presented in the following integral form (Benoit, 1957)
[1c03e14]4228
[7f42aad]4229.. image:: img/image206.jpg
[1c03e14]4230
[6386cd8]4231where |nu| is the excluded volume parameter (which is related to the Porod exponent *m* as |nu| = 1 / *m*), *a* is the
4232statistical segment length of the polymer chain, and *n* is the degree of polymerization. This integral was later put
4233into an almost analytical form as follows (Hammouda, 1993)
[1c03e14]4234
[7f42aad]4235.. image:: img/image207.jpg
[1c03e14]4236
[6386cd8]4237where |gamma|\ *(x,U)* is the incomplete gamma function
[1c03e14]4238
[7f42aad]4239.. image:: img/image208.jpg
[1c03e14]4240
[6386cd8]4241and the variable *U* is given in terms of the scattering vector *Q* as
[1c03e14]4242
[7f42aad]4243.. image:: img/image209.jpg
[1c03e14]4244
[6386cd8]4245The square of the radius-of-gyration is defined as
[1c03e14]4246
[7f42aad]4247.. image:: img/image210.jpg
[1c03e14]4248
[6386cd8]4249Note that this model applies only in the mass fractal range (ie, 5/3 <= *m* <= 3) and **does not** apply to surface
4250fractals (3 < *m* <= 4). It also does not reproduce the rigid rod limit (*m* = 1) because it assumes chain flexibility
4251from the outset. It may cover a portion of the semi-flexible chain range (1 < *m* < 5/3).
[1c03e14]4252
[6386cd8]4253A low-*Q* expansion yields the Guinier form and a high-*Q* expansion yields the Porod form which is given by
[1c03e14]4254
[7f42aad]4255.. image:: img/image211.jpg
[1c03e14]4256
[6386cd8]4257Here |biggamma|\ *(x)* = |gamma|\ *(x,inf)* is the gamma function.
4258
4259The asymptotic limit is dominated by the first term
[1c03e14]4260
[7f42aad]4261.. image:: img/image212.jpg
[1c03e14]4262
[6386cd8]4263The special case when |nu| = 0.5 (or *m* = 1/|nu| = 2) corresponds to Gaussian chains for which the form factor is given
4264by the familiar Debye_ function.
[1c03e14]4265
[7f42aad]4266.. image:: img/image213.jpg
[1c03e14]4267
[93b6fcc]4268For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4269
[7f42aad]4270.. image:: img/image040.gif
[1c03e14]4271
[6386cd8]4272This example dataset is produced using 200 data points, *qmin* = 0.001 |Ang^-1|, *qmax* = 0.2 |Ang^-1| and the default
4273values
[1c03e14]4274
[58eccf6]4275===================  ========  =============
4276Parameter name       Units     Default value
4277===================  ========  =============
4278scale                None      1.0
4279rg                   |Ang|     60.0
4280m (=Porod exponent)  None      3
4281background           |cm^-1|   0.0
4282===================  ========  =============
[1c03e14]4283
[7f42aad]4284.. image:: img/image214.jpg
[1c03e14]4285
4286*Figure. 1D plot using the default values (w/500 data points).*
4287
[6386cd8]4288REFERENCE
[1c03e14]4289
[6386cd8]4290H Benoit, *Comptes Rendus*, 245 (1957) 2244-2247
[1c03e14]4291
[6386cd8]4292B Hammouda, *SANS from Homogeneous Polymer Mixtures ­ A Unified Overview*, *Advances in Polym. Sci.*, 106 (1993) 87-133
[4ed2d0a1]4293
[1c03e14]4294
4295
[6386cd8]4296.. _RPA10Model:
[1c03e14]4297
[6386cd8]4298**2.2.22. RPA10Model**
[1c03e14]4299
[6386cd8]4300Calculates the macroscopic scattering intensity (units of |cm^-1|) for a multicomponent homogeneous mixture of polymers
4301using the Random Phase Approximation. This general formalism contains 10 specific cases
[1c03e14]4302
[6386cd8]4303Case 0: C/D binary mixture of homopolymers
[1c03e14]4304
[6386cd8]4305Case 1: C-D diblock copolymer
[1c03e14]4306
[6386cd8]4307Case 2: B/C/D ternary mixture of homopolymers
[1c03e14]4308
[6386cd8]4309Case 3: C/C-D mixture of a homopolymer B and a diblock copolymer C-D
[1c03e14]4310
[6386cd8]4311Case 4: B-C-D triblock copolymer
[1c03e14]4312
[6386cd8]4313Case 5: A/B/C/D quaternary mixture of homopolymers
[1c03e14]4314
[6386cd8]4315Case 6: A/B/C-D mixture of two homopolymers A/B and a diblock C-D
[1c03e14]4316
[6386cd8]4317Case 7: A/B-C-D mixture of a homopolymer A and a triblock B-C-D
[1c03e14]4318
[6386cd8]4319Case 8: A-B/C-D mixture of two diblock copolymers A-B and C-D
[1c03e14]4320
[6386cd8]4321Case 9: A-B-C-D tetra-block copolymer
[1c03e14]4322
[6386cd8]4323**NB: these case numbers are different from those in the NIST SANS package!**
[1c03e14]4324
[6386cd8]4325Only one case can be used at any one time.
[1c03e14]4326
[6386cd8]4327The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]4328
[6386cd8]4329The RPA (mean field) formalism only applies only when the multicomponent polymer mixture is in the homogeneous
4330mixed-phase region.
[1c03e14]4331
[6386cd8]4332**Component D is assumed to be the "background" component (ie, all contrasts are calculated with respect to**
4333**component D).** So the scattering contrast for a C/D blend = [SLD(component C) - SLD(component D)]\ :sup:`2`.
[1c03e14]4334
[6386cd8]4335Depending on which case is being used, the number of fitting parameters - the segment lengths (ba, bb, etc) and |chi|
4336parameters (Kab, Kac, etc) - vary. The *scale* parameter should be held equal to unity.
[1c03e14]4337
[6386cd8]4338The input parameters are the degrees of polymerization, the volume fractions, the specific volumes, and the neutron
4339scattering length densities for each component.
[1c03e14]4340
[6386cd8]4341Fitting parameters for a Case 0 Model
[1c03e14]4342
[58eccf6]4343=======================  ========  =============
4344Parameter name           Units     Default value
4345=======================  ========  =============
4346background               |cm^-1|   0.0
4347scale                    None      1
4348bc (=segment Length_bc)  **unit**  5
4349bd (=segment length_bd)  **unit**  5
4350Kcd (=chi_cd)            **unit**  -0.0004
4351=======================  ========  =============
[1c03e14]4352
[6386cd8]4353Fixed parameters for a Case 0 Model
[1c03e14]4354
[58eccf6]4355=======================  ========  =============
4356Parameter name           Units     Default value
4357=======================  ========  =============
4358Lc (=scatter. length_c)  **unit**  1e-12
4359Ld (=scatter. length_d)  **unit**  0
4360Nc    (=degree polym_c)  None      1000
4361Nd    (=degree polym_d)  None      1000
4362Phic (=vol. fraction_c)  None      0.25
4363Phid (=vol. fraction_d)  None      0.25
4364vc (=specific volume_c)  **unit**  100
4365vd (=specific volume_d)  **unit**  100
4366=======================  ========  =============
[1c03e14]4367
[7f42aad]4368.. image:: img/image215.jpg
[1c03e14]4369
4370*Figure. 1D plot using the default values (w/500 data points).*
4371
[6386cd8]4372REFERENCE
4373
4374A Z Akcasu, R Klein and B Hammouda, *Macromolecules*, 26 (1993) 4136
[1c03e14]4375
4376
4377
[4ed2d0a1]4378.. _TwoLorentzian:
[1c03e14]4379
[58eccf6]4380**2.2.23. TwoLorentzian (Model)**
[1c03e14]4381
[6386cd8]4382This model calculates an empirical functional form for SAS data characterized by two Lorentzian-type functions.
[1c03e14]4383
[4ed2d0a1]4384The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]4385
[6386cd8]4386*2.2.23.1. Definition*
[1c03e14]4387
[6386cd8]4388The scattering intensity *I(q)* is calculated as
[1c03e14]4389
[f8063bf]4390.. image:: img/image216.jpg 
[1c03e14]4391
[6386cd8]4392where *A* = Lorentzian scale factor #1, *C* = Lorentzian scale #2, |xi|\ :sub:`1` and |xi|\ :sub:`2` are the
4393corresponding correlation lengths, and *n* and *m* are the respective power law exponents (set *n* = *m* = 2 for
4394Ornstein-Zernicke behaviour).
[1c03e14]4395
[93b6fcc]4396For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4397
[7f42aad]4398.. image:: img/image040.gif
[1c03e14]4399
[58eccf6]4400===============================  ========  =============
4401Parameter name                   Units     Default value
4402===============================  ========  =============
4403scale_1 (=A)                     None      10
4404scale_2 (=C)                     None      1
44051ength_1 (=correlation length1)  |Ang|     100
44061ength_2 (=correlation length2)  |Ang|     10
4407exponent_1 (=n)                  None      3
4408exponent_2 (=m)                  None      2
4409background (=B)                  |cm^-1|   0.1
4410===============================  ========  =============
[1c03e14]4411
[7f42aad]4412.. image:: img/image217.jpg
[1c03e14]4413
4414*Figure. 1D plot using the default values (w/500 data points).*
4415
[bf8c07b]4416REFERENCE
4417
[6386cd8]4418None.
[1c03e14]4419
4420
4421
[4ed2d0a1]4422.. _TwoPowerLaw:
[1c03e14]4423
[58eccf6]4424**2.2.24. TwoPowerLaw (Model)**
[1c03e14]4425
[6386cd8]4426This model calculates an empirical functional form for SAS data characterized by two power laws.
[1c03e14]4427
[4ed2d0a1]4428The returned value is scaled to units of |cm^-1|, absolute scale.
[1c03e14]4429
[6386cd8]4430*2.2.24.1. Definition*
4431
4432The scattering intensity *I(q)* is calculated as
[1c03e14]4433
[7f42aad]4434.. image:: img/image218.jpg
[1c03e14]4435
[6386cd8]4436where *qc* is the location of the crossover from one slope to the other. The scaling *coef_A* sets the overall
4437intensity of the lower *q* power law region. The scaling of the second power law region is then automatically scaled to
4438match the first.
4439
4440**NB: Be sure to enter the power law exponents as positive values!**
[1c03e14]4441
[93b6fcc]4442For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4443
[7f42aad]4444.. image:: img/image040.gif
[1c03e14]4445
[4ed2d0a1]4446==============  ========  =============
4447Parameter name  Units     Default value
4448==============  ========  =============
[58eccf6]4449coef_A          None      1.0
4450qc              |Ang^-1|  0.04
4451power_1 (=m1)   None      4
4452power_2 (=m2)   None      4
4453background      |cm^-1|   0.0
[4ed2d0a1]4454==============  ========  =============
[1c03e14]4455
[7f42aad]4456.. image:: img/image219.jpg
[1c03e14]4457
4458*Figure. 1D plot using the default values (w/500 data points).*
4459
[6386cd8]4460REFERENCE
4461
4462None.
4463
[1c03e14]4464
4465
[4ed2d0a1]4466.. _UnifiedPowerRg:
[1c03e14]4467
[58eccf6]4468**2.2.25. UnifiedPowerRg (Beaucage Model)**
[1c03e14]4469
[6386cd8]4470This model deploys the empirical multiple level unified Exponential/Power-law fit method developed by G Beaucage. Four
4471functions are included so that 1, 2, 3, or 4 levels can be used. In addition a 0 level has been added which simply
4472calculates
4473
4474*I(q)* = *scale* / *q* + *background*
4475
[4ed2d0a1]4476The returned value is scaled to units of |cm^-1|, absolute scale. 
4477
[6386cd8]4478The Beaucage method is able to reasonably approximate the scattering from many different types of particles, including
4479fractal clusters, random coils (Debye equation), ellipsoidal particles, etc. 
[1c03e14]4480
[6386cd8]4481*2.2.25.1 Definition*
[1c03e14]4482
[4ed2d0a1]4483The empirical fit function is 
[1c03e14]4484
[7f42aad]4485.. image:: img/image220.jpg
[1c03e14]4486
[6386cd8]4487For each level, the four parameters *Gi*, *Rg,i*, *Bi* and *Pi* must be chosen. 
[1c03e14]4488
[6386cd8]4489For example, to approximate the scattering from random coils (Debye_ equation), set *Rg,i* as the Guinier radius,
4490*Pi* = 2, and *Bi* = 2 *Gi* / *Rg,i* 
[1c03e14]4491
[6386cd8]4492See the references for further information on choosing the parameters.
[1c03e14]4493
[93b6fcc]4494For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4495
[7f42aad]4496.. image:: img/image040.gif
[1c03e14]4497
[4ed2d0a1]4498==============  ========  =============
4499Parameter name  Units     Default value
4500==============  ========  =============
[58eccf6]4501scale           None      1.0
4502Rg2             |Ang|     21
4503power2          None      2
4504G2              |cm^-1|   3
4505B2              |cm^-1|   0.0006
4506Rg1             |Ang|     15.8
4507power1          None      4
4508G1              |cm^-1|   400
4509B1              |cm^-1|   4.5e-6                |
4510background      |cm^-1|   0.0
[4ed2d0a1]4511==============  ========  =============
[1c03e14]4512
[7f42aad]4513.. image:: img/image221.jpg
[1c03e14]4514
4515*Figure. 1D plot using the default values (w/500 data points).*
4516
4517REFERENCE
4518
[6386cd8]4519G Beaucage, *J. Appl. Cryst.*, 28 (1995) 717-728
[1c03e14]4520
[6386cd8]4521G Beaucage, *J. Appl. Cryst.*, 29 (1996) 134-146
[1c03e14]4522
4523
4524
[4ed2d0a1]4525.. _LineModel:
[1c03e14]4526
[4ed2d0a1]4527**2.2.26. LineModel**
[1c03e14]4528
[6386cd8]4529This calculates the simple linear function
[1c03e14]4530
[4ed2d0a1]4531.. image:: img/image222.PNG
[1c03e14]4532
[6386cd8]4533**NB: For 2D plots,** *I(q)* = *I(qx)*\ *\ *I(qy)*, **which is a different definition to other shape independent models.**
[1c03e14]4534
[6386cd8]4535==============  ==============  =============
4536Parameter name  Units           Default value
4537==============  ==============  =============
4538A               |cm^-1|         1.0
4539B               |Ang|\ |cm^-1|  1.0
4540==============  ==============  =============
[1c03e14]4541
[6386cd8]4542REFERENCE
[1c03e14]4543
[6386cd8]4544None.
[1c03e14]4545
4546
4547
[6386cd8]4548.. _GelFitModel:
[1c03e14]4549
[6386cd8]4550**2.2.27. GelFitModel**
[1c03e14]4551
[6386cd8]4552*This model was implemented by an interested user!*
[1c03e14]4553
[6386cd8]4554Unlike a concentrated polymer solution, the fine-scale polymer distribution in a gel involves at least two
4555characteristic length scales, a shorter correlation length (*a1*) to describe the rapid fluctuations in the position
4556of the polymer chains that ensure thermodynamic equilibrium, and a longer distance (denoted here as *a2*) needed to
4557account for the static accumulations of polymer pinned down by junction points or clusters of such points. The latter
4558is derived from a simple Guinier function.
[1c03e14]4559
[6386cd8]4560Also see the GaussLorentzGel_ Model.
[1c03e14]4561
[6386cd8]4562*2.2.27.1. Definition*
4563
4564The scattered intensity *I(q)* is calculated as
[1c03e14]4565
[7f42aad]4566.. image:: img/image233.gif
[1c03e14]4567
[6386cd8]4568where
[1c03e14]4569
[7f42aad]4570.. image:: img/image234.gif
[1c03e14]4571
[6386cd8]4572Note that the first term reduces to the Ornstein-Zernicke equation when *D* = 2; ie, when the Flory exponent is 0.5
4573(theta conditions). In gels with significant hydrogen bonding *D* has been reported to be ~2.6 to 2.8.
[1c03e14]4574
[6386cd8]4575============================  ========  =============
4576Parameter name                Units     Default value
4577============================  ========  =============
4578Background                    |cm^-1|   0.01
4579Guinier scale    (= *I(0)G*)  |cm^-1|   1.7
4580Lorentzian scale (= *I(0)L*)  |cm^-1|   3.5
4581Radius of gyration  (= *Rg*)  |Ang|     104
4582Fractal exponent     (= *D*)  None      2
4583Correlation length  (= *a1*)  |Ang|     16
4584============================  ========  =============
[1c03e14]4585
[7f42aad]4586.. image:: img/image235.gif
[1c03e14]4587
[6386cd8]4588*Figure. 1D plot using the default values (w/300 data points).*
[1c03e14]4589
[6386cd8]4590REFERENCE
[1c03e14]4591
[6386cd8]4592Mitsuhiro Shibayama, Toyoichi Tanaka, Charles C Han, J. Chem. Phys. 1992, 97 (9), 6829-6841
[1c03e14]4593
[6386cd8]4594Simon Mallam, Ferenc Horkay, Anne-Marie Hecht, Adrian R Rennie, Erik Geissler, Macromolecules 1991, 24, 543-548
[1c03e14]4595
4596
4597
[6386cd8]4598.. _StarPolymer:
[1c03e14]4599
[6386cd8]4600**2.2.28. Star Polymer with Gaussian Statistics**
[1c03e14]4601
[6386cd8]4602This model is also known as the Benoit Star model.
[1c03e14]4603
[6386cd8]4604*2.2.28.1. Definition*
4605
4606For a star with *f* arms:
[1c03e14]4607
[7f42aad]4608.. image:: img/star1.png
[1c03e14]4609
[6386cd8]4610where
[1c03e14]4611
[7f42aad]4612.. image:: img/star2.png
[1c03e14]4613
[6386cd8]4614and
4615
[7f42aad]4616.. image:: img/star3.png
[1c03e14]4617
[6386cd8]4618is the square of the ensemble average radius-of-gyration of an arm.
[1c03e14]4619
[6386cd8]4620REFERENCE
[1c03e14]4621
[6386cd8]4622H Benoit,   J. Polymer Science.,  11, 596-599  (1953)
[1c03e14]4623
4624
4625
[6386cd8]4626.. _ReflectivityModel:
[1c03e14]4627
[6386cd8]4628**2.2.29. ReflectivityModel**
[1c03e14]4629
[6386cd8]4630*This model was contributed by an interested user!*
4631
4632This model calculates **reflectivity** using the Parrett algorithm.
4633
4634Up to nine film layers are supported between Bottom(substrate) and Medium(Superstrate) where the neutron enters the
4635first top film. Each of the layers are composed of
4636
4637[œ of the interface (from the previous layer or substrate) + flat portion + œ of the interface (to the next layer or medium)]
4638
4639Two simple functions are provided to describe the interfacial density distribution; a linear function and an error
4640function. The interfacial thickness is equivalent to (-2.5 |sigma| to +2.5 |sigma| for the error function, where
4641|sigma| = roughness).
4642
4643Also see ReflectivityIIModel_.
4644
[7f42aad]4645.. image:: img/image231.bmp
[6386cd8]4646
4647*Figure. Comparison (using the SLD profile below) with the NIST web calculation (circles)*
4648http://www.ncnr.nist.gov/resources/reflcalc.html
4649
[7f42aad]4650.. image:: img/image232.gif
[6386cd8]4651
4652*Figure. SLD profile used for the calculation (above).*
[1c03e14]4653
4654REFERENCE
4655
[6386cd8]4656None.
[1c03e14]4657
4658
4659
[6386cd8]4660.. _ReflectivityIIModel:
[1c03e14]4661
[6386cd8]4662**2.2.30. ReflectivityIIModel**
[1c03e14]4663
[6386cd8]4664*This model was contributed by an interested user!*
[1c03e14]4665
[6386cd8]4666This **reflectivity** model is a more flexible version of ReflectivityModel_. More interfacial density
4667functions are supported, and the number of points (*npts_inter*) for each interface can be chosen.
[1c03e14]4668
[6386cd8]4669The SLD at the interface between layers, |rho|\ *inter_i*, is calculated with a function chosen by a user, where the
4670available functions are
[1c03e14]4671
[6386cd8]46721) Erf
[1c03e14]4673
[7f42aad]4674.. image:: img/image051.gif
[1c03e14]4675
[6386cd8]46762) Power-Law
4677
[7f42aad]4678.. image:: img/image050.gif
[6386cd8]4679
46803) Exp
4681
[7f42aad]4682.. image:: img/image049.gif
[6386cd8]4683
4684The constant *A* in the expressions above (but the parameter *nu* in the model!) is an input.
[1c03e14]4685
4686REFERENCE
[bf8c07b]4687
[6386cd8]4688None.
[1c03e14]4689
4690
4691
46922.3 Structure-factor Functions
4693------------------------------
4694
[6386cd8]4695The information in this section originated from NIST SANS package.
[1c03e14]4696
4697.. _HardSphereStructure:
4698
4699**2.3.1. HardSphereStructure Factor**
4700
4701This calculates the interparticle structure factor for monodisperse spherical particles interacting through hard
4702sphere (excluded volume) interactions.
4703
4704The calculation uses the Percus-Yevick closure where the interparticle potential is
4705
4706.. image:: img/image223.PNG
4707
4708where *r* is the distance from the center of the sphere of a radius *R*.
4709
4710For a 2D plot, the wave transfer is defined as
4711
[7f42aad]4712.. image:: img/image040.gif
[1c03e14]4713
4714==============  ========  =============
4715Parameter name  Units     Default value
4716==============  ========  =============
4717effect_radius   |Ang|     50.0
4718volfraction     None      0.2
4719==============  ========  =============
4720
[7f42aad]4721.. image:: img/image224.jpg
[1c03e14]4722
4723*Figure. 1D plot using the default values (in linear scale).*
4724
4725REFERENCE
[bf8c07b]4726
[93b6fcc]4727J K Percus, J Yevick, *J. Phys. Rev.*, 110, (1958) 1
[1c03e14]4728
4729
4730
4731.. _SquareWellStructure:
4732
4733**2.3.2. SquareWellStructure Factor**
4734
4735This calculates the interparticle structure factor for a square well fluid spherical particles. The mean spherical
4736approximation (MSA) closure was used for this calculation, and is not the most appropriate closure for an attractive
4737interparticle potential. This solution has been compared to Monte Carlo simulations for a square well fluid, showing
4738this calculation to be limited in applicability to well depths |epsilon| < 1.5 kT and volume fractions |phi| < 0.08.
4739
4740Positive well depths correspond to an attractive potential well. Negative well depths correspond to a potential
4741"shoulder", which may or may not be physically reasonable.
4742
4743The well width (*l*\ ) is defined as multiples of the particle diameter (2\*\ *R*\ )
4744
4745The interaction potential is:
4746
4747.. image:: img/image225.PNG
4748
4749where *r* is the distance from the center of the sphere of a radius *R*.
4750
[93b6fcc]4751For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4752
[7f42aad]4753.. image:: img/image040.gif
[1c03e14]4754
4755==============  =========  =============
4756Parameter name  Units      Default value
4757==============  =========  =============
4758effect_radius   |Ang|      50.0
4759volfraction     None       0.04
4760welldepth       kT         1.5
4761wellwidth       diameters  1.2
4762==============  =========  =============
4763
[7f42aad]4764.. image:: img/image226.jpg
[1c03e14]4765
4766*Figure. 1D plot using the default values (in linear scale).*
4767
4768REFERENCE
[bf8c07b]4769
[93b6fcc]4770R V Sharma, K C Sharma, *Physica*, 89A (1977) 213
[1c03e14]4771
4772
4773
4774.. _HayterMSAStructure:
4775
4776**2.3.3. HayterMSAStructure Factor**
4777
4778This calculates the structure factor (the Fourier transform of the pair correlation function *g(r)*) for a system of
4779charged, spheroidal objects in a dielectric medium. When combined with an appropriate form factor (such as sphere,
4780core+shell, ellipsoid, etc), this allows for inclusion of the interparticle interference effects due to screened coulomb
4781repulsion between charged particles.
4782
4783**This routine only works for charged particles**. If the charge is set to zero the routine will self-destruct!
4784For non-charged particles use a hard sphere potential.
4785
4786The salt concentration is used to compute the ionic strength of the solution which in turn is used to compute the Debye
4787screening length. At present there is no provision for entering the ionic strength directly nor for use of any
4788multivalent salts. The counterions are also assumed to be monovalent.
4789
[93b6fcc]4790For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4791
4792.. image:: img/image040.gif
4793
4794==============  ========  =============
4795Parameter name  Units     Default value
4796==============  ========  =============
4797effect_radius   |Ang|     20.8
4798charge          *e*       19
4799volfraction     None      0.2
4800temperature     K         318
4801salt conc       M         0
4802dielectconst    None      71.1
4803==============  ========  =============
4804
[7f42aad]4805.. image:: img/image227.jpg
[1c03e14]4806
4807*Figure. 1D plot using the default values (in linear scale).*
4808
4809REFERENCE
[bf8c07b]4810
[93b6fcc]4811J B Hayter and J Penfold, *Molecular Physics*, 42 (1981) 109-118
[bf8c07b]4812
[93b6fcc]4813J P Hansen and J B Hayter, *Molecular Physics*, 46 (1982) 651-656
[1c03e14]4814
4815
4816.. _StickyHSStructure:
4817
4818**2.3.4. StickyHSStructure Factor**
4819
4820This calculates the interparticle structure factor for a hard sphere fluid with a narrow attractive well. A perturbative
4821solution of the Percus-Yevick closure is used. The strength of the attractive well is described in terms of "stickiness"
4822as defined below. The returned value is a dimensionless structure factor, *S(q)*.
4823
4824The perturb (perturbation parameter), |epsilon|, should be held between 0.01 and 0.1. It is best to hold the
4825perturbation parameter fixed and let the "stickiness" vary to adjust the interaction strength. The stickiness, |tau|,
4826is defined in the equation below and is a function of both the perturbation parameter and the interaction strength.
4827|tau| and |epsilon| are defined in terms of the hard sphere diameter (|sigma| = 2\*\ *R*\ ), the width of the square
4828well, |bigdelta| (same units as *R*), and the depth of the well, *Uo*, in units of kT. From the definition, it is clear
4829that smaller |tau| means stronger attraction.
4830
4831.. image:: img/image228.PNG
4832
4833where the interaction potential is
4834
4835.. image:: img/image229.PNG
4836
4837The Percus-Yevick (PY) closure was used for this calculation, and is an adequate closure for an attractive interparticle
4838potential. This solution has been compared to Monte Carlo simulations for a square well fluid, with good agreement.
4839
4840The true particle volume fraction, |phi|, is not equal to *h*, which appears in most of the reference. The two are
4841related in equation (24) of the reference. The reference also describes the relationship between this perturbation
4842solution and the original sticky hard sphere (or adhesive sphere) model by Baxter.
4843
4844NB: The calculation can go haywire for certain combinations of the input parameters, producing unphysical solutions - in
4845this case errors are reported to the command window and the *S(q)* is set to -1 (so it will disappear on a log-log
4846plot). Use tight bounds to keep the parameters to values that you know are physical (test them) and keep nudging them
4847until the optimization does not hit the constraints.
4848
[93b6fcc]4849For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
[1c03e14]4850
[7f42aad]4851.. image:: img/image040.gif
[1c03e14]4852
4853==============  ========  =============
4854Parameter name  Units     Default value
4855==============  ========  =============
4856effect_radius   |Ang|     50
4857perturb         None      0.05
4858volfraction     None      0.1
4859stickiness      K         0.2
4860==============  ========  =============
4861
[7f42aad]4862.. image:: img/image230.jpg
[1c03e14]4863
4864*Figure. 1D plot using the default values (in linear scale).*
4865
4866REFERENCE
[bf8c07b]4867
[93b6fcc]4868S V G Menon, C Manohar, and K S Rao, *J. Chem. Phys.*, 95(12) (1991) 9186-9190
[1c03e14]4869
4870
4871
48722.4 Customised Functions
4873------------------------------
4874
4875
4876Customized model functions can be redefined or added to by users (See SansView tutorial for details).
4877
4878.. _testmodel:
4879
4880**2.4.1. testmodel**
4881
4882This function, as an example of a user defined function, calculates
4883
4884*I(q)* = *A* + *B* cos(2\ *q*\ ) + *C* sin(2\ *q*\ )
4885
4886
4887
4888.. _testmodel_2:
4889
4890**2.4.2. testmodel_2**
4891
4892This function, as an example of a user defined function, calculates
4893
4894*I(q)* = *scale* * sin(*f*\ )/*f*
4895
4896where
4897
4898*f* = *A* + *Bq* + *Cq*\ :sup:`2` + *Dq*\ :sup:`3` + *Eq*\ :sup:`4` + *Fq*\ :sup:`5`
4899
4900
4901
4902.. _sum_p1_p2:
4903
4904**2.4.3. sum_p1_p2**
4905
4906This function, as an example of a user defined function, calculates
4907
4908*I(q)* = *scale_factor* \* (CylinderModel + PolymerExclVolumeModel)
4909
4910To make your own (*p1 + p2*) model, select 'Easy Custom Sum' from the Fitting menu, or modify and compile the file
4911named 'sum_p1_p2.py' from 'Edit Custom Model' in the 'Fitting' menu.
4912
4913NB: Summing models only works only for single functional models (ie, single shell models, two-component RPA models, etc).
4914
4915
4916
4917.. _sum_Ap1_1_Ap2:
4918
4919**2.4.4. sum_Ap1_1_Ap2**
4920
4921This function, as an example of a user defined function, calculates
4922
4923*I(q)* = (*scale_factor* \* CylinderModel + (1 - *scale_factor*\ ) \* PolymerExclVolume model)
4924
4925To make your own (*A*\ * *p1* + (1-*A*) \* *p2*) model, modify and compile the file named 'sum_Ap1_1_Ap2.py' from
4926'Edit Custom Model' in the 'Fitting' menu.
4927
4928NB: Summing models only works only for single functional models (ie, single shell models, two-component RPA models, etc).
4929
4930
4931
4932.. _polynomial5:
4933
4934**2.4.5. polynomial5**
4935
4936This function, as an example of a user defined function, calculates
4937
4938*I(q)* = *A* + *Bq* + *Cq*\ :sup:`2` + *Dq*\ :sup:`3` + *Eq*\ :sup:`4` + *Fq*\ :sup:`5`
4939
4940This model can be modified and compiled from 'Edit Custom Model' in the 'Fitting' menu.
4941
4942
4943
4944.. _sph_bessel_jn:
4945
4946**2.4.6. sph_bessel_jn**
4947
4948This function, as an example of a user defined function, calculates
4949
4950*I(q)* = *C* \* *sph_jn(Ax+B)+D*
4951
4952where *sph_jn* is a spherical Bessel function of order *n*.
4953
4954This model can be modified and compiled from 'Edit Custom Model' in the 'Fitting' menu.
Note: See TracBrowser for help on using the repository browser.