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

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 a910c788 was ee9fa94, checked in by smk78, 9 years ago

Changes to address issues identified by Richard in his email 25/06/15

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