Index: src/sans/models/media/model_functions.rst
===================================================================
--- src/sans/models/media/model_functions.rst	(revision d4117ccb42482e7d1b92173cbdddbc9fdb681a05)
+++ src/sans/models/media/model_functions.rst	(revision 4ed2d0a1586325fec013f8b1591ff80c5f47cd48)
@@ -210,5 +210,5 @@
 -------------------------------
 
-- AbsolutePower_Law
+- AbsolutePower_Law_
 - BEPolyelectrolyte
 - BroadPeakModel
@@ -1678,5 +1678,5 @@
 
 W-R Chen, P. D. Butler and L. J. Magid, *Incorporating Intermicellar Interactions in the Fitting of SANS Data from*
-*Cationic Wormlike Micelles*. *Langmuir*, 22(15) 2006 6539â6548
+*Cationic Wormlike Micelles*. *Langmuir*, 22(15) 2006 6539Ã¢â¬â6548
 
 
@@ -1766,5 +1766,5 @@
 
 W-R Chen, P. D. Butler and L. J. Magid, *Incorporating Intermicellar Interactions in the Fitting of SANS Data from*
-*Cationic Wormlike Micelles*. *Langmuir*, 22(15) 2006 6539â6548
+*Cationic Wormlike Micelles*. *Langmuir*, 22(15) 2006 6539Ã¢â¬â6548
 
 
@@ -1939,5 +1939,5 @@
 .. image:: img/image079.GIF
 
-The scattering intensity I(q) is
+The scattering intensity *I(q)* is
 
 .. image:: img/image081.PNG
@@ -2421,5 +2421,5 @@
 
 where |delta|\ T = tail length (or *t_length*), |delta|\ H = head thickness (or *h_thickness*),
-|bigdelta|\ |rho|\ H = SLD(headgroup) - SLD(solvent), and |bigdelta|\ |rho|\ T = SLD(tail) - SLD(headgroup).
+|bigdelta|\ |rho|\ H = SLD(headgroup) - SLD(solvent), and |bigdelta|\ |rho|\ T = SLD(tail) - SLD(solvent).
 
 The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as
@@ -2454,4 +2454,6 @@
 
 also in J. Phys. Chem. B, 105, (2001) 11081-11088
+
+*2014/04/17 - Description reviewed by S. King and P. Butler.*
 
 
@@ -2665,5 +2667,5 @@
 *2.1.34.1. Definition*
 
-The scattering intensity I(q) is calculated as
+The scattering intensity *I(q)* is calculated as
 
 .. image:: img/image149.JPG
@@ -3120,407 +3122,279 @@
 The following are models used for shape-independent SANS analysis.
 
-**2.2.1. Debye**
-
-The Debye model is a form factor for a linear polymer chain. In
-addition to the radius of gyration, Rg, a scale factor "scale", and a
-constant background term are included in the calculation.
-
-
-
-
-
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-1.0
-
-rg
-
-
-
-50.0
-
-background
-
-|cm^-1|
-
-0.0
-
-
+.. _Debye:
+
+**2.2.1. Debye (Model)**
+
+The Debye model is a form factor for a linear polymer chain. In addition
+to the radius of gyration, Rg, a scale factor "scale", and a constant
+background term are included in the calculation.
+
+.. image:: img/image172.PNG
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+
+==============  ========  =============
+| scale None 1.0 
+
+| rg   ÃâŠ    50.0
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image173.JPG
 
 *Figure. 1D plot using the default values (w/200 data point).*
 
-
-
-REFERENCE
-
-R. J. Roe, *Methods of X-Ray and Neutron Scattering in Polymer Science*, Oxford University Press, New York (2000).
-
-*3.2. BroadPeak Model*
-
-Calculate an empirical functional form for SANS data characterized by
-a broad scattering peak. Many SANS spectra are characterized by a
-broad peak even though they are from amorphous soft materials. The
-d-spacing corresponding to the broad peak is a characteristic distance
-between the scattering inhomogeneities (such as in lamellar,
-cylindrical, or spherical morphologies or for bicontinuous
-structures).
-
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-The scattering intensity I(q) is calculated by:
-
-
-
-Here the peak position is related to the d-spacing as Q0 = 2pi/d0.
-Soft systems that show a SANS peak include copolymers,
-polyelectrolytes, multiphase systems, layered structures, etc.
-
-
-
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale_l (= C)
-
-10
-
-scale_p (=A)
-
-1e-05
-
-length_l (=x)
-
-
-
-50
-
-q_peak (= Q0)
-
--1
-
-0.1
-
-exponent_p (=n)
-
-2
-
-exponent_l (=m)
-
-3
-
-Background (=B)
-
-|cm^-1|
-
-0.1
-
-
+REFERENCE
+
+Roe, R.-J., "Methods of X-Ray and Neutron Scattering in
+Polymer Science", Oxford University Press, New York (2000).
+
+
+
+.. _BroadPeakModel:
+
+**2.2.2. BroadPeak Model**
+
+Calculate an empirical functional form for SANS data characterized by a
+broad scattering peak. Many SANS spectra are characterized by a broad
+peak even though they are from amorphous soft materials. The d-spacing
+corresponding to the broad peak is a characteristic distance between the
+scattering inhomogeneities (such as in lamellar, cylindrical, or
+spherical morphologies or for bicontinuous structures).
+
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+The scattering intensity *I(q)* is calculated by:Â 
+
+.. image:: img/image174.JPG
+
+Here the peak position is related to the d-spacing as Q0 = 2pi/d0. Soft
+systems that show a SANS peak include copolymers, polyelectrolytes,
+multiphase systems, layered structures, etc.
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale\_l (= C)          | Â     10  
+
+| scale\_p (=A)           | Â     1e-05
+
+| length\_l (=x)          | ÃâŠ    50  
+
+| q\_peak (= Q0)          | ÃâŠ-1  0.1 
+
+| exponent\_p (=n)        | Â     2   
+
+| exponent\_l (=m)        | Â     3   
+
+| Background (=B)         | cm-1 0.1 
+==============  ========  =============
+
+.. image:: img/image175.JPG
 
 *Figure. 1D plot using the default values (w/200 data point).*
 
-
-
-REFERENCE
-
-*None*
-
-2013/09/09 - Description reviewed by King, S. and Parker, P.
-
-*3.3. CorrLength (CorrelationLengthModel)*
-
-Calculate an empirical functional form for SANS data characterized by
-a low-Q signal and a high-Q signal
-
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-The scattering intensity I(q) is calculated by:
-
-
+REFERENCE
+
+None.
+
+*2013/09/09 - Description reviewed by King, S. and Parker, P.*
+
+
+
+.. _CorrLength:
+
+**2.2.3. CorrLength (CorrelationLengthModel)**
+
+Calculate an empirical functional form for SANS data characterized by a
+low-Q signal and a high-Q signal
+
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+The scattering intensity *I(q)* is calculated by:Â 
+
+.. image:: img/image176.JPG
 
 The first term describes Porod scattering from clusters (exponent = n)
-and the second term is a Lorentzian function describing scattering
-from polymer chains (exponent = m). This second term characterizes the
+and the second term is a Lorentzian function describing scattering from
+polymer chains (exponent = m). This second term characterizes the
 polymer/solvent interactions and therefore the thermodynamics. The two
-multiplicative factors A and C, the incoherent background B and the
-two exponents n and m are used as fitting parameters. The final
-parameter (xi) is a correlation length for the polymer chains. Note
-that when m = 2, this functional form becomes the familiar Lorentzian
-function.
-
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale_l (= C)
-
-10
-
-scale_p (=A)
-
-1e-06
-
-length_l (=x)
-
-
-
-50
-
-exponent_p (=n)
-
-2
-
-exponent_l (=m)
-
-3
-
-Background (=B)
-
-|cm^-1|
-
-0.1
-
-
+multiplicative factors A and C, the incoherent background B and the two
+exponents n and m are used as fitting parameters. The final parameter
+(xi) is a correlation length for the polymer chains. Note that when m =
+2, this functional form becomes the familiar Lorentzian function.Â 
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale\_l (= C)          | Â     10  
+
+| scale\_p (=A)           | Â     1e-06
+
+| length\_l (=x)          | ÃâŠ    50  
+
+| exponent\_p (=n)        | Â     2   
+
+| exponent\_l (=m)        | Â     3   
+
+| Background (=B)         | cm-1 0.1 
+==============  ========  =============
+
+.. image:: img/image177.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
 
-
-
-REFERENCE
-
-B. Hammouda, D.L. Ho and S.R. Kline, *Insight into Clustering in Poly(ethylene oxide) Solutions*,
-*Macromolecules*, 37 (2004) 6932-6937
-
-2013/09/09 - Description reviewed by King, S. and Parker, P.
-
-*3.4. (Ornstein-Zernicke) Lorentz (Model)*
+REFERENCE
+
+B. Hammouda, D.L. Ho and S.R. Kline, Insight into Clustering in
+Poly(ethylene oxide) Solutions, Macromolecules 37, 6932-6937 (2004).
+
+*2013/09/09 - Description reviewed by King, S. and Parker, P.*
+
+
+
+.. _Lorentz:
+
+**2.2.4. (Ornstein-Zernicke) Lorentz (Model)**
 
 The Ornstein-Zernicke model is defined by:
 
-
-
-
-
-
+.. image:: img/image178.PNG
 
 The parameter L is referred to as the screening length.
 
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-1.0
-
-length
-
-
-
-50.0
-
-background
-
-|cm^-1|
-
-0.0
-
-* *
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 1.0 
+
+| length ÃâŠ    50.0
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image179.JPG
+
+**Â Figure. 1D plot using the default values (w/200 data point).**
+
+
+
+.. _DABModel:
+
+**2.2.5. DAB (Debye-Anderson-Brumberger) Model**
+
+Calculates the scattering from a randomly distributed, two-phase system
+based on the Debye-Anderson-Brumberger (DAB) model for such systems. The
+two-phase system is characterized by a single length scale, the
+correlation length, which is a measure of the average spacing between
+regions of phase 1 and phase 2. The model also assumes smooth interfaces
+between the phases and hence exhibits Porod behavior (I ~ Q-4) at large
+Q (Q\*correlation length >> 1).
+
+.. image:: img/image180.PNG
+
+The parameter L is referred to as the correlation length.
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 1.0 
+
+| length ÃâŠ    50.0
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image181.JPG
+
+**Â Figure. 1D plot using the default values (w/200 data point).**
+
+REFERENCE
+
+Debye, Anderson, Brumberger, "Scattering by an Inhomogeneous Solid. II.
+The Correlation Function and its Application", J. Appl. Phys. 28 (6),
+679 (1957).
+
+Debye, Bueche, "Scattering by an Inhomogeneous Solid", J. Appl. Phys.
+20, 518 (1949).
+
+*2013/09/09 - Description reviewed by King, S. and Parker, P.*
+
+
+
+.. _AbsolutePower_Law:
+
+**2.2.6.  Absolute Power\_Law**
+
+This model describes a power law with background.
+
+.. image:: img/image182.PNG
+
+Note the minus sign in front of the exponent.
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| Scale None 1.0 
+
+| m    None 4   
+
+| Background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image183.JPG
 
 *Figure. 1D plot using the default values (w/200 data point).*
 
-*3.5. DAB (Debye-Anderson-Brumberger)_Model*
-
-
-
-Calculates the scattering from a randomly distributed, two-phase
-system based on the Debye-Anderson-Brumberger (DAB) model for such
-systems. The two-phase system is characterized by a single length
-scale, the correlation length, which is a measure of the average
-spacing between regions of phase 1 and phase 2. The model also assumes
-smooth interfaces between the phases and hence exhibits Porod behavior
-(I ~ Q-4) at large Q (Q*correlation length >> 1).
-
-
-
-
-
-
-
-The parameter L is referred to as the correlation length.
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-1.0
-
-length
-
-
-
-50.0
-
-background
-
-|cm^-1|
-
-0.0
-
-* *
-
-*Figure. 1D plot using the default values (w/200 data point).*
-
-REFERENCE
-
-Debye, Bueche, *Scattering by an Inhomogeneous Solid*, *J. Appl. Phys.*, 20 (1949) 518
-
-Debye, Anderson, Brumberger, *Scattering by an Inhomogeneous Solid. II. The Correlation Function and its Application*,
-*J. Appl. Phys.*, 28(6), (1957) 679
-
-2013/09/09 - Description reviewed by King, S. and Parker, P.
-
-
-
-**3.6. AbsolutePowerLaw**
-
-This model describes a power law with background.
-
-
-
-
-
-Note the minus sign in front of the exponent.
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-Scale
-
-None
-
-1.0
-
-m
-
-None
-
-4
-
-Background
-
-|cm^-1|
-
-0.0
-
-
-
-*Figure. 1D plot using the default values (w/200 data point).*
-
-*3.7. Teubner Strey (Model)*
+
+
+.. _Teubner Strey:
+
+**2.2.7. Teubner Strey (Model)**
 
 This function calculates the scattered intensity of a two-component
 system using the Teubner-Strey model.
 
-
-
-
-
-
-
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-0.1
-
-c1
-
-None
-
--30.0
-
-c2
-
-None
-
-5000.0
-
-background
-
-|cm^-1|
-
-0.0
-
-
+.. image:: img/image184.PNG
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 0.1 
+
+| c1   None -30.0
+
+| c2   None 5000.0
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image185.JPG
 
 *Figure. 1D plot using the default values (w/200 data point).*
@@ -3528,91 +3402,55 @@
 REFERENCE
 
-Teubner, M; Strey, R. J. Chem. Phys., 87, 3195 (1987)
-
-
-
-Schubert, K-V., Strey, R., Kline, S. R. and E. W. Kaler, J. Chem.
-Phys., 101, 5343 (1994).
-
-*3.8.  FractalModel*
+Teubner, M; Strey, R. J. Chem. Phys., 87, 3195 (1987).
+
+Schubert, K-V., Strey, R., Kline, S. R. and E. W. Kaler, J. Chem. Phys.,
+101, 5343 (1994).
+
+
+
+.. _FractalModel:
+
+**2.2.8.  FractalModel**
 
 Calculates the scattering from fractal-like aggregates built from
 spherical building blocks following the Texiera reference. The value
-returned is in |cm^-1|.
-
-
-
-
-
-
-
-The scale parameter is the volume fraction of the building blocks, R0
-is the radius of the building block, Df is the fractal dimension, is
-the correlation length, *solvent* is the scattering length density of
-the solvent, and *block* is the scattering length density of the
-building blocks.
-
-*The polydispersion in radius is provided.*
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-0.05
-
-radius
-
-
-
-5.0
-
-fractal_dim
-
-None
-
-2
-
-corr_length
-
-
-
-100.0
-
-block_sld
-
--2
-
-2e-6
-
-solvent_sld
-
--2
-
-6e-6
-
-background
-
-|cm^-1|
-
-0.0
-
-
+returned is in cm-1.
+
+.. image:: img/image186.PNG
+
+The scale parameter is the volume fraction of the building blocks, R0 is
+the radius of the building block, Df is the fractal dimension, ÃÂŸ is the
+correlation length, *Ãï¿œsolvent* is the scattering length density of the
+solvent, and *Ãï¿œblock* is the scattering length density of the building
+blocks.
+
+**The polydispersion in radius is provided.**
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 0.05
+
+| radius ÃâŠ    5.0 
+
+| fractal\_dim            | None 2   
+
+| corr\_length            | ÃâŠ    100.0
+
+| block\_sld              | ÃâŠ-2  2e-6
+
+| solvent\_sld            | ÃâŠ-2  6e-6
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image187.JPG
 
 *Figure. 1D plot using the default values (w/200 data point).*
 
-
-
-
-
 REFERENCE
 
@@ -3621,159 +3459,91 @@
 
 
-*3.9. MassFractalModel*
+.. _MassFractalModel:
+
+**2.2.9. MassFractalModel**
 
 Calculates the scattering from fractal-like aggregates based on the
-Mildner reference (below).
-
-
-
-
-
-
-
-
-
+Mildner reference (below).Â 
+
+.. image:: img/mass_fractal_eq1.JPG
 
 The R is the radius of the building block, Dm is the mass fractal
-dimension, is the correlation (or cutt-off) length, *solvent* is the
-scattering length density of the solvent, and *particle* is the
+dimension, ÃÂŸ is the correlation (or cutt-off)Â  length, *Ãï¿œsolvent* is the
+scattering length density of the solvent, and *Ãï¿œparticle* is the
 scattering length density of particles.
 
-NB: The mass fractal dimension is valid for 1<mass_dim<6.
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-1
-
-radius
-
-
-
-10.0
-
-mass_dim
-
-None
-
-1.9
-
-co_length
-
-
-
-100.0
-
-background
-
-
-
-0.0
-
-
+Note: Â The mass fractal dimension is valid for 1<mass\_dim<6.
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 1   
+
+| radius ÃâŠ    10.0
+
+| mass\_dim               | None 1.9 
+
+| co\_length              | ÃâŠ    100.0
+
+| background              | Â     0.0 
+==============  ========  =============
+
+.. image:: img/mass_fractal_fig1.JPG
 
 *Figure. 1D plot*
 
-
-
-
-
-REFERENCE
-
-D. Mildner, and P. Hall, J. Phys. D.: Appl. Phys., 19, 1535-1545
+REFERENCE
+
+D. Mildner, and P. Hall,Â  J. Phys. D.: Appl. Phys.,Â  19, 1535-1545Â 
 (1986), Equation(9).
 
-2013/09/09 - Description reviewed by King, S. and Parker, P.
-
-
-
-
-
-*3.10.  SurfaceFractalModel*
-
-Calculates the scattering based on the Mildner reference (below).
-
-
-
-
-
-
-
-
-
+*2013/09/09 - Description reviewed by King, S. and Parker, P.*
+
+
+
+.. _SurfaceFractalModel:
+
+**2.2.10. SurfaceFractalModel**
+
+Calculates the scatteringÂ  based on the Mildner reference (below).Â 
+
+.. image:: img/surface_fractal_eq1.GIFÂ 
 
 The R is the radius of the building block, Ds is the surface fractal
-dimension, is the correlation (or cutt-off) length, *solvent* is the
-scattering length density of the solvent, and *particle* is the
+dimension, ÃÂŸ is the correlation (or cutt-off)Â  length, *Ãï¿œsolvent* is the
+scattering length density of the solvent, and *Ãï¿œparticle* is the
 scattering length density of particles.
 
-NB: The surface fractal dimension is valid for 1<surface_dim<3. Also
-it is valid in a limited q range (see the reference for details).
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-1
-
-radius
-
-
-
-10.0
-
-surface_dim
-
-None
-
-2.0
-
-co_length
-
-
-
-500.0
-
-background
-
-
-
-0.0
-
-
+Â Note: Â The surface fractal dimension is valid for 1<surface\_dim<3.
+Â Also it is valid in a limited q range (see the reference for details).
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 1   
+
+| radius ÃâŠ    10.0
+
+| surface\_dim            | None 2.0 
+
+| co\_length              | ÃâŠ    500.0
+
+| background              | Â     0.0 
+==============  ========  =============
+
+.. image:: img/surface_fractal_fig1.JPG
 
 *Figure. 1D plot*
 
-
-
-
-
-REFERENCE
-
-D. Mildner, and P. Hall, J. Phys. D.: Appl. Phys., 19, 1535-1545
+REFERENCE
+
+D. Mildner, and P. Hall,Â  J. Phys. D.: Appl. Phys.,Â  19, 1535-1545Â 
 (1986), Equation(13).
 
 
 
-
-
-*3.11. MassSurfaceFractal*
+.. _MassSurfaceFractal:
+
+**2.2.11. MassSurfaceFractal**
 
 A number of natural and commercial processes form high-surface area
@@ -3782,181 +3552,123 @@
 fume or pyrogenic silicas. These are all characterised by cluster mass
 distributions (sometimes also cluster size distributions) and internal
-surfaces that are fractal in nature. The scattering from such
+surfaces that are fractal in nature. Â  The scattering from such
 materials displays two distinct breaks in log-log representation,
 corresponding to the radius-of-gyration of the primary particles, rg,
 and the radius-of-gyration of the clusters (aggregates), Rg. Between
-these boundaries the scattering follows a power law related to the
-mass fractal dimension, Dm, whilst above the high-Q boundary the
-scattering follows a power law related to the surface fractal
-dimension of the primary particles, Ds.
-
-The scattered intensity I(Q) is then calculated using a modified
+these boundaries the scattering follows a power law related to the mass
+fractal dimension, Dm, whilst above the high-Q boundary the scattering
+follows a power law related to the surface fractal dimension of the
+primary particles, Ds.
+
+The scattered intensity *I(q)* is then calculated using a modified
 Ornstein-Zernicke equation:
 
-
-
-
-
-
-
-
-
+.. image:: img/masssurface_fractal_eq1.JPGÂ 
 
 The Rg is for the cluster, rg is for the primary, Ds is the surface
-fractal dimension, Dm is the mass fractal dimension, *solvent* is the
-scattering length density of the solvent, and *p* is the scattering
+fractal dimension, Dm is the mass fractal dimension, *Ãï¿œsolvent* is the
+scattering length density of the solvent, and *Ãï¿œp* is the scattering
 length density of particles.
 
-NB: The surface and mass fractal dimensions are valid for
-0<surface_dim<6, 0<mass_dim<6, and (surface_mass+mass_dim)<6.
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-None
-
-1
-
-primary_rg
-
-
-
-4000.0
-cluster_rg 86.7
-surface_dim
-
-None
-
-2.3
-mass_dim None 1.8
-background
-
-
-
-0.0
-
-
+Â Note: Â The surface and mass fractal dimensions are valid for
+0<surface\_dim<6, 0<mass\_dim<6, and (surface\_mass+mass\_dim)<6.Â 
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale None 1   
+
+| primary\_rg             | ÃâŠ    4000.0
+
+| Â  cluster\_rg           | Â  ÃâŠ  Â 86.7
+
+| surface\_dim            | None 2.3 
+
+| Â  mass\_dim             | Â None Â 1.8
+
+| background              | Â     0.0 
+==============  ========  =============
+
+.. image:: img/masssurface_fractal_fig1.JPG
 
 *Figure. 1D plot*
 
-
-
-
-
-REFERENCE
-
-P. Schmidt, J Appl. Cryst., 24, 414-435 (1991), Equation(19).
-
-Hurd, Schaefer, Martin, Phys. Rev. A, 35, 2361-2364 (1987),
-Equation(2).
-
-
-
-
-
-*3.12.  FractalCoreShell(Model)*
+REFERENCE
+
+P. Schmidt, J Appl. Cryst., 24, 414-435Â  (1991), Equation(19).
+
+Hurd, Schaefer, Martin, Phys. Rev. A, 35, 2361-2364 (1987), Equation(2).
+
+
+
+.. _FractalCoreShell:
+
+**2.2.12.  FractalCoreShell(Model)**
 
 Calculates the scattering from a fractal structure with a primary
 building block of core-shell spheres.
 
-
-
-
-The formfactor P(q) is CoreShellModel with bkg = 0,
-,
+.. image:: img/fractcore_eq1.GIF
+
+The formfactor P(q) is `CoreShellModel <#CoreShellModel>`__ with bkg
+= 0,
+
+.. image:: img/image013.PNG
 
 while the fractal structure factor S(q);
 
-
-
-where Df = frac_dim, = cor_length, rc = (core) radius, and scale =
-volfraction.
-The fractal structure is as documented in the fractal model. This
-model could find use for aggregates of coated particles, or aggregates
-of vesicles.The polydispersity computation of radius and thickness is
+.. image:: img/fractcore_eq3.gif
+
+where Df = frac\_dim, ÃÂŸ = cor\_length, rc = (core) radius, and scale
+= volfraction.
+
+The fractal structure is as documented in the fractal model. This model
+could find use for aggregates of coated particles, or aggregates of
+vesicles.Â The polydispersity computation of radius and thickness is
 provided.
 
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-See each of these individual models for full documentation.
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-volfraction
-
-0.05
-
-frac_dim
-
-2
-
-thickness
-
-
-
-5.0
-
-raidus
-
-20.0
-
-cor_length
-
-
-
-100.0
-
-core_sld
-
--2
-
-3.5e-6
-
-shell_sld
-
--2
-
-1e-6
-
-solvent_sld
-
--2
-
-6.35e-6
-
-background
-
-|cm^-1|
-
-0.0
-
-
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+See each of these individual models for full documentation.Â 
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| volfraction             | Â     0.05
+
+| frac\_dim               | Â     2   
+
+| thickness               | ÃâŠ    5.0 
+
+| raidus Â ÃâŠ   20.0
+
+| cor\_length             | ÃâŠ    100.0
+
+| core\_sld               | ÃâŠ-2  3.5e-6
+
+| shell\_sld              | ÃâŠ-2  1e-6
+
+| solvent\_sld            | ÃâŠ-2  6.35e-6
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image188.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
 
-
-
-
-
-REFERENCE
-
-See the PolyCore and Fractal documentation. * *
-
-*3.13.  GaussLorentzGel(Model)*
+REFERENCE
+
+See the PolyCore and Fractal documentation.\
+
+
+
+.. _GaussLorentzGel:
+
+**2.2.13.  GaussLorentzGel(Model)**
 
 Calculates the scattering from a gel structure, typically a physical
@@ -3965,68 +3677,47 @@
 structures.
 
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-The scattering intensity I(q) is calculated as (eqn 5 from the
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+The scattering intensity *I(q)* is calculated as (eqn 5 from the
 reference):
 
-
-
-
+.. image:: img/image189.JPG
 
 Uppercase Zeta is the static correlations in the gel, which can be
-attributed to the "frozen-in" crosslinks of some gels. Lowercase zeta
-is the dynamic correlation length, which can be attributed to the
+attributed to the "frozen-in" crosslinks of some gels. Lowercase zeta is
+the dynamic correlation length, which can be attributed to the
 fluctuating polymer chain between crosslinks. IG(0) and IL(0) are the
 scaling factors for each of these structures. Your physical system may
 be different, so think about the interpretation of these parameters.
 
-Note that the peaked structure at higher q values (from Figure 2 of
-the reference below) is not reproduced by the model. Peaks can be
-introduced into the model by summing this model with the PeakGauss
-Model function.
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-dyn_colength(=Dynamic correlation length)
-
-
-
-20.0
-
-scale_g(=Gauss scale factor)
-
-100
-
-scale_l(=Lorentzian scale factor)
-
-50
-
-stat_colength(=Static correlation Z)
-
-
-
-100.0
-
-background
-
-|cm^-1|
-
-0.0
-
-
+Note that the peaked structure at higher q values (from Figure 2 of the
+reference below) is not reproduced by the model. Peaks can be introduced
+into the model by summing this model with the PeakGauss Model function.
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| dyn\_colength(=Dynamic  | ÃâŠ    20.0
+| correlation length)     |          
+
+| scale\_g(=Gauss scale   | Â     100 
+| factor)          
+
+| scale\_l(=Lorentzian    | Â     50  
+| scale factor)           |          
+
+| stat\_colength(=Static  | ÃâŠ    100.0
+| correlation Z)          |          
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image190.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
-
-
-
-
 
 REFERENCE
@@ -4035,76 +3726,44 @@
 (2001) 2907-2913.
 
-*3.14.  BEPolyelectrolyte Model*
+
+
+.. _BEPolyelectrolyte:
+
+**2.2.14.  BEPolyelectrolyte Model**
 
 Calculates the structure factor of a polyelectrolyte solution with the
-RPA expression derived by Borue and Erukhimovich. The value returned
-is in |cm^-1|.
-
-
-
-
-
-
+RPA expression derived by Borue and Erukhimovich. The value returned is
+in cm-1.
+
+.. image:: img/image191.PNG
 
 K is a contrast factor of the polymer, Lb is the Bjerrum length, h is
 the virial parameter, b is the monomer length, Cs is the concentration
-of monovalent salt, is the ionization degree, Ca is the polymer molar
+of monovalent salt, ÃÂ± is the ionization degree, Ca is the polymer molar
 concentration, and background is the incoherent background.
 
-For 2D plot, the wave transfer is defined as .
-
-Parameter name
-
-Units
-
-Default value
-
-K
-
-Barns = 10-24 cm2
-
-10
-
-Lb
-
-
-
-7.1
-
-h
-
--3
-
-12
-
-b
-
-
-
-10
-
-Cs
-
-Mol/L
-
-0
-
-alpha
-
-None
-
-0.05
-
-Ca
-
-Mol/L
-
-0.7
-
-background
-
-|cm^-1|
-
-0.0
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| K    Barns = 10-24 cm2       | 10  
+
+| Lb   ÃâŠ    7.1 
+
+| h    ÃâŠ-3  12  
+
+| b    ÃâŠ    10  
+
+| Cs   Mol/L 0   
+
+| alpha None 0.05
+
+| Ca   Mol/L 0.7 
+
+| background              | cm-1 0.0 
+==============  ========  =============
 
 REFERENCE
@@ -4115,45 +3774,37 @@
 
 Moussaid, A., Schosseler, F., Munch, J.-P., Candau, S. J. Journal de
-Physique II France, 3, 573 (1993).
-
-Raphal, E., Joanny, J.-F., Europhysics Letters 11, 179 (1990).
-
-
-
-*3.15. Guinier (Model)*
-
-A Guinier analysis is done by linearizing the data at low q by
-plotting it as log(I) versus Q2. The Guinier radius Rg can be obtained
-by fitting the following model:
-
-
-
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-|cm^-1|
-
-1.0
-
-Rg
-
-
-
-0.1
-
-
-
-*3.16. GuinierPorod (Model)*
+Physique II France 3, 573 (1993).
+
+RaphaÃÂ«l, E., Joanny, J.-F., Europhysics Letters 11, 179 (1990).
+
+
+
+.. _Guinier:
+
+**2.2.15. Guinier (Model)**
+
+A Guinier analysis is done by linearizing the data at low q by plotting
+it as log(I) versus Q2. The Guinier radius Rg can be obtained by fitting
+the following model:
+
+.. image:: img/image192.PNG
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale cm-1 1.0 
+
+| Rg   ÃâŠ    0.1 
+==============  ========  =============
+
+
+
+.. _GuinierPorod:
+
+**2.2.16. GuinierPorod (Model)**
 
 Calculates the scattering for a generalized Guinier/power law object.
@@ -4162,5 +3813,5 @@
 
 The returned value is P(Q) as written in equation (1), plus the
-incoherent background term. The result is in the units of |cm^-1|\ |sr^-1|,
+incoherent background term. The result is in the units of |cm^-1|,
 absolute scale.
 
@@ -4168,36 +3819,32 @@
 asymmetric objects such as rods or platelets. It also applies to
 intermediate shapes between spheres and rod or between rods and
-platelets. The following functional form is used:
-
-(1)
-
-
-
-This is based on the generalized Guinier law for such elongated
-objects [2]. For 3D globular objects (such as spheres), s = 0 and one
-recovers the standard Guinier formula. For 2D symmetry (such as for
-rods) s = 1 and for 1D symmetry (such as for lamellae or platelets) s
-= 2. A dimensionality parameter 3-s is defined, and is 3 for spherical
-objects, 2 for rods, and 1 for plates.
+platelets. The following functional form is used:Â 
+
+.. image:: img/image193.JPGÂ Â  (1)
+
+This is based on the generalized Guinier law for such elongated objects
+[2]. For 3D globular objects (such as spheres), s = 0 and one recovers
+the standard Guinier formula. For 2D symmetry (such as for rods) s = 1
+and for 1D symmetry (such as for lamellae or platelets) s = 2. A
+dimensionality parameter 3-s is defined, and is 3 for spherical objects,
+2 for rods, and 1 for plates.
 
 Enforcing the continuity of the Guinier and Porod functions and their
-derivatives yields:
-
-
+derivatives yields:Â 
+
+.. image:: img/image194.JPG
 
 and
 
-
-
-
-
-Note that the radius of gyration for a sphere of radius R is given by
-Rg = R sqrt(3/5) ,
-
-that for the cross section of an randomly oriented cylinder of radius
-R is given by Rg = R / sqrt(2).
-
-The cross section of a randomly oriented lamella of thickness T is
-given by Rg = T / sqrt(12).
+.. image:: img/image195.JPG
+
+Note that the radius of gyration for a sphere of radius R is given by Rg
+= R sqrt(3/5) ,
+
+Â that for the cross section of an randomly oriented cylinder of radius R
+is given byÂ  Rg = R / sqrt(2).
+
+The cross section of a randomly oriented lamella of thickness T is given
+by Rg = T / sqrt(12).
 
 The intensity given by Eq. 1 is the calculated result, and is plotted
@@ -4210,43 +3857,27 @@
 
 [2] Glatter, O.; Kratky, O., Small-Angle X-Ray Scattering, Academic
-Press (1982). Check out Chapter 4 on Data Treatment, pages 155-156.
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-Scale(=Guinier scale, G)
-
-|cm^-1|
-
-1.0
-
-rg
-
-
-
-100
-
-dim(=Dimensional Variable, s)
-
-1
-
-m(=Porod exponent)
-
-3
-
-background
-
-0.1
-
-
-
-* *
+Press (1982). Check out Chapter 4 on Data Treatment, pages 155-156.Â 
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image008.PNG
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| Scale(=Guinier scale,   | cm-1 1.0 
+| G)            
+
+| rg   ÃâŠ    100 
+
+| dim(=Dimensional        | Â     1   
+| Variable, s)            |          
+
+| m(=Porod exponent)      | Â     3   
+
+| background              | Â     0.1 
+==============  ========  =============
+
+.. image:: img/image196.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
@@ -4254,7 +3885,7 @@
 
 
-
-
-*3.17. PorodModel*
+.. _PorodModel:
+
+**2.2.17. PorodModel**
 
 A Porod analysis is done by linearizing the data at high q by plotting
@@ -4262,47 +3893,35 @@
 following model:
 
-
-
-
-
-C is the scale factor and Sv is the specific surface area of the
-sample and is the contrast factor.
+.. image:: img/image197.PNG
+
+C is the scale factor and Â Sv is the specific surface area of the sample
+and ÃâÃï¿œ is the contrast factor.
 
 The background term is added for data analysis.
 
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
--4
-
-0.1
-
-background
-
-|cm^-1|
-
-0
-
-*3.18. PeakGaussModel*
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale ÃâŠ-4  0.1 
+
+| background              | cm-1 0   
+==============  ========  =============
+
+
+
+.. _PeakGaussModel:
+
+**2.2.18. PeakGaussModel**
 
 Model describes a Gaussian shaped peak including a flat background,
 
-
-
-
-
-
+.. image:: img/image198.PNG
 
 with the peak having height of I0 centered at qpk having standard
-deviation of B. The fwhm is 2.354*B.
+deviation of B.Â  The fwhm is 2.354\*B.Â Â 
 
 Parameters I0, B, qpk, and BGD can all be adjusted during fitting.
@@ -4310,41 +3929,23 @@
 REFERENCE
 
-*None*
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-|cm^-1|
-
-100
-
-q0
-
-
-
-0.05
-
-B
-
-0.005
-
-background
-
-1
-
-
-
-
-
-* *
+None
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale cm-1 100 
+
+| q0   ÃâŠ    0.05
+
+| B    Â     0.005
+
+| background              | Â     1   
+==============  ========  =============
+
+.. image:: img/image199.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
@@ -4352,16 +3953,14 @@
 
 
-*3.19. PeakLorentzModel*
+.. _PeakLorentzModel:
+
+**2.2.19. PeakLorentzModel**
 
 Model describes a Lorentzian shaped peak including a flat background,
 
-
-
-
-
-
-
-with the peak having height of I0 centered at qpk having a hwhm (half-
-width-half-maximum) of B.
+.. image:: img/image200.PNG
+
+with the peak having height of I0 centered at qpk having a hwhm
+(half-width-half-maximum) of B.Â 
 
 The parameters I0, B, qpk, and BGD can all be adjusted during fitting.
@@ -4369,174 +3968,143 @@
 REFERENCE
 
-*None*
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-|cm^-1|
-
-100
-
-q0
-
-
-
-0.05
-
-B
-
-0.005
-
-background
-
-1
-
-
-
-
-
+None
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale cm-1 100 
+
+| q0   ÃâŠ    0.05
+
+| B    Â     0.005
+
+| background              | Â     1   
+==============  ========  =============
+
+.. image:: img/image201.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
 
-*3.20. Poly_GaussCoil (Model)*
+
+
+.. _Poly_GaussCoil:
+
+**2.2.20. Poly_GaussCoil (Model)**
 
 Polydisperse Gaussian Coil: Calculate an empirical functional form for
 scattering from a polydisperse polymer chain ina good solvent. The
 polymer is polydisperse with a Schulz-Zimm polydispersity of the
-molecular weight distribution.
-
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-
+molecular weight distribution.Â 
+
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+.. image:: img/image202.PNG
 
 where the dimensionless chain dimension is:
 
-
+.. image:: img/image203.PNG
 
 and the polydispersion is
 
-.
-
-The scattering intensity I(q) is calculated as:
+.. image:: img/image204.PNG
+
+The scattering intensity *I(q)* is calculated as:
 
 The polydispersion in rg is provided.
 
-
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-This example dataset is produced by running the Poly_GaussCoil, using
-200 data points, *qmin* = 0.001 |Ang^-1|, *qmax* = 0.7 -1 and the default values
-below.
-
-Parameter name
-
-Units
-
-Default value
-
-Scale
-
-None
-
-1.0
-
-rg
-
-
-
-60.0
-
-poly_m
-
-Mw/Mn
-
-2
-
-background
-
-|cm^-1|
-
-0.001
-
-
-
-
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+TEST DATASET
+
+Â This example dataset is produced by running the Poly\_GaussCoil, using
+200 data points, qmin = 0.001 ÃâŠ-1,Â  qmax = 0.7 ÃâŠ-1Â Â  and the default
+values below.
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| Scale None 1.0 
+
+| rg   ÃâŠ    60.0
+
+| poly\_m Mw/Mn 2   
+
+| background              | cm-1 0.001
+==============  ========  =============
+
+.. image:: img/image205.JPG
 
 *Figure. 1D plot using the default values (w/200 data point).*
 
-
-
 REFERENCE
 
 Glatter & Kratky - pg.404.
 
-J.S. Higgins, and H.C. Benoit, Polymers and Neutron Scattering, Oxford Science Publications (1996).
-
-*3.21. PolymerExclVolume (Model)*
+J.S. Higgins, and H.C. Benoit, Polymers and Neutron Scattering, Oxford
+Science Publications (1996).
+
+
+
+.. _PolyExclVolume:
+
+**2.2.21. PolymerExclVolume (Model)**
 
 Calculates the scattering from polymers with excluded volume effects.
 
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
+The returned value is scaled to units of |cm^-1|, absolute scale.
 
 The returned value is P(Q) as written in equation (2), plus the
-incoherent background term. The result is in the units of |cm^-1|\ |sr^-1|,
+incoherent background term. The result is in the units of |cm^-1|,
 absolute scale.
 
-A model describing polymer chain conformations with excluded volume
-was introduced to describe the conformation of polymer chains, and has
-been used as a template for describing mass fractals. The form factor
-for that model (Benoit, 1957) was originally presented in the
-following integral form:
-
-(1)
+A model describing polymer chain conformations with excluded volume was
+introduced to describe the conformation of polymer chains, and has been
+used as a template for describing mass fractals. The form factor for
+that model (Benoit, 1957) was originally presented in the following
+integral form:
+
+.. image:: img/image206.JPGÂ Â Â Â  (1)
 
 Here n is the excluded volume parameter which is related to the Porod
-exponent m as n = 1/m, a is the polymer chain statistical segment
-length and n is the degree of polymerization. This integral was later
-put into an almost analytical form (Hammouda, 1993) as follows:
-
-(2)
+exponent m as n = 1/m, a is the polymer chain statistical segment length
+and n is the degree of polymerization. This integral was later put into
+an almost analytical form (Hammouda, 1993) as follows:
+
+.. image:: img/image207.JPGÂ Â Â  (2)
 
 Here, g(x,U) is the incomplete gamma function which is a built-in
 function in computer libraries.
 
-
+.. image:: img/image208.JPG
 
 The variable U is given in terms of the scattering variable Q as:
 
-
+.. image:: img/image209.JPG
 
 The radius of gyration squared has been defined as:
 
-
+.. image:: img/image210.JPG
 
 Note that this model describing polymer chains with excluded volume
 applies only in the mass fractal range ( 5/3 <= m <= 3) and does not
-apply to surface fractals ( 3 < m <= 4). It does not reproduce the
-rigid rod limit (m = 1) because it assumes chain flexibility from the
-outset. It may cover a portion of the semiflexible chain range ( 1 < m
-< 5/3).
+apply to surface fractals ( 3 < m <= 4). It does not reproduce the rigid
+rod limit (m = 1) because it assumes chain flexibility from the outset.Â 
+It may cover a portion of the semiflexible chain range ( 1 < m < 5/3).
 
 The low-Q expansion yields the Guinier form and the high-Q expansion
 yields the Porod form which is given by:
 
-
+.. image:: img/image211.JPG
 
 Here G(x) = g(x,inf) is the gamma function. The asymptotic limit is
 dominated by the first term:
 
-
+.. image:: img/image212.JPG
 
 The special case when n = 0.5 (or m = 1/n = 2) corresponds to Gaussian
@@ -4544,8 +4112,8 @@
 function.
 
-
-
-The form factor given by Eq. 2 is the calculated result, and is
-plotted below for the default parameter values.
+.. image:: img/image213.JPG
+
+The form factor given by Eq. 2 is the calculated result, and is plotted
+below for the default parameter values.
 
 REFERENCE
@@ -4553,44 +4121,29 @@
 Benoit, H., Comptes Rendus (1957). 245, 2244-2247.
 
-Hammouda, B., SANS from Homogeneous Polymer Mixtures A Unified Overview, Advances in Polym. Sci. (1993), 106, 87-133.
-
-For 2D plot, the wave transfer is defined as .
-
-
-
-This example dataset is produced, using 200 data points, *qmin* = 0.001
--1, *qmax* = 0.2 -1 and the default values below.
-
-Parameter name
-
-Units
-
-Default value
-
-Scale
-
-None
-
-1.0
-
-rg
-
-
-
-60.0
-
-m(=Porod exponent)
-
-3
-
-background
-
-|cm^-1|
-
-0.0
-
-
-
-
+Hammouda, B., SANS from Homogeneous Polymer Mixtures Â­ A Unified
+Overview, Advances in Polym. Sci. (1993), 106, 87-133.
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+TEST DATASET
+
+Â This example dataset is produced, using 200 data points, qmin = 0.001
+ÃâŠ-1,Â  qmax = 0.2 ÃâŠ-1Â Â  and the default values below.
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| Scale None 1.0 
+
+| rg   ÃâŠ    60.0
+
+| m(=Porod exponent)      | Â     3   
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image214.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
@@ -4598,5 +4151,7 @@
 
 
-*3.22.  RPA10Model*
+.. _RPA10Model:
+
+**2.2.22. RPA10Model**
 
 Calculates the macroscopic scattering intensity (units of cm^-1) for a
@@ -4624,23 +4179,21 @@
 Case 9: A-B-C-D Four-block copolymer
 
-NB: the case numbers are different from the IGOR/NIST SANS package.
-
-
-
-Only one case can be used at any one time. Plotting a different case
+Note: the case numbers are different from the IGOR/NIST SANS package.
+
+Only one case can be used at any one time.Â  Plotting a different case
 will overwrite the original parameter waves.
 
-The returned value is scaled to units of |cm^-1|.
+The returned value is scaled to units of [cm-1].
 
 Component D is assumed to be the "background" component (all contrasts
 are calculated with respect to component D).
 
-Scattering contrast for a C/D blend= {SLD (component C) - SLD
-(component D)}2
-
-Depending on what case is used, the number of fitting parameters
-varies. These represent the segment lengths (ba, bb, etc) and the Chi
-parameters (Kab, Kac, etc). The last one of these is a scaling factor
-to be held constant equal to unity.
+Scattering contrast for a C/D blend= {SLD (component C) - SLD (component
+D)}2
+
+Depending on what case is used, the number of fitting parameters varies.
+These represent the segment lengths (ba, bb, etc) and the Chi parameters
+(Kab, Kac, etc). The last one of these is a scaling factor to be held
+constant equal to unity.
 
 The input parameters are the degree of polymerization, the volume
@@ -4655,85 +4208,47 @@
 A.Z. Akcasu, R. Klein and B. Hammouda, Macromolecules 26, 4136 (1993)
 
-
-
 Fitting parameters for Case0 Model
 
-Parameter name
-
-Units
-
-Default value
-
-background
-
-|cm^-1|
-
-0.0
-
-scale
-
-1
-
-bc(=Seg. Length bc)
-
-5
-
-bd(=Seg. Length bd)
-
-5
-
-Kcd(Chi Param. Kcd)
-
--0.0004
-
-
-
-
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| background              | cm-1 0.0 
+
+| scale Â     1   
+
+| bc(=Seg. Length bc)     | Â     5   
+
+| bd(=Seg. Length bd)     | Â     5   
+
+| Kcd(Chi Param. Kcd)     | Â     -0.0004
+==============  ========  =============
 
 Fixed parameters for Case0 Model
 
-Parameter name
-
-Units
-
-Default value
-
-Lc(= Scatter. Length_c)
-
-1e-12
-
-Ld(= Scatter. Length_d)
-
-0
-
-Nc(=Deg.Polym.c)
-
-1000
-
-Nd(=Deg.Polym.d)
-
-1000
-
-Phic(=Vol. fraction of c)
-
-0.25
-
-Phid(=Vol. fraction of d)
-
-0.25
-
-vc(=Spec. vol. of c)
-
-100
-
-vd(=Spec. vol. of d)
-
-100
-
-
-
-
-
-
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| Lc(= Scatter.           | Â     1e-12
+| Length\_c)              |          
+
+| Ld(= Scatter.           | Â     0   
+| Length\_d)              |          
+
+| Nc(=Deg.Polym.c)        | Â     1000
+
+| Nd(=Deg.Polym.d)        | Â     1000
+
+| Phic(=Vol. fraction of  | Â     0.25
+| c)            
+
+| Phid(=Vol. fraction of  | Â     0.25
+| d)            
+
+| vc(=Spec. vol. of c)    | Â     100 
+
+| vd(=Spec. vol. of d)    | Â     100 
+==============  ========  =============
+
+.. image:: img/image215.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
@@ -4741,20 +4256,21 @@
 
 
-*3.23. TwoLorentzian(Model)*
-
-Calculate an empirical functional form for SANS data characterized by
-a two Lorentzian functions.
-
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-The scattering intensity I(q) is calculated by:
-
-
-
-
+
+.. _TwoLorentzian:
+
+**2.2.23. TwoLorentzian(Model)**
+
+Calculate an empirical functional form for SANS data characterized by a
+two Lorentzian functions.
+
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+The scattering intensity *I(q)* is calculated by:Â 
+
+.. image:: img/image216.JPGÂ 
 
 A = Lorentzian scale #1
 
-C = Lorentzian scale #2
+C = Lorentzian scale #2Â 
 
 where scale is the peak height centered at q0, and B refers to the
@@ -4763,121 +4279,79 @@
 The background term is added for data analysis.
 
-For 2D plot, the wave transfer is defined as .
-
-*Default input parameter values*
-
-Parameter name
-
-Units
-
-Default value
-
-scale_1(=A)
-
-10
-
-scale_2(=C)
-
-1
-
-1ength_1 (=Correlation length1)
-
-
-
-100
-
-1ength_2(=Correlation length2)
-
-
-
-10
-
-exponent_1(=n)
-
-3
-
-exponent_2(=m)
-
-2
-
-Background(=B)
-
-|cm^-1|
-
-0.1
-
-
-
-
-
-
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+**Default input parameter values**
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale\_1(=A)            | Â     10  
+
+| scale\_2(=C)            | Â     1   
+
+| 1ength\_1 (=Correlation | ÃâŠ    100 
+| length1)                |          
+
+| 1ength\_2(=Correlation  | ÃâŠ    10  
+| length2)                |          
+
+| exponent\_1(=n)         | Â     3   
+
+| exponent\_2(=m)         | Â     2   
+
+| Background(=B)          | cm-1 0.1 
+==============  ========  =============
+
+.. image:: img/image217.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
 
-
-
-REFERENCE
-
-*None*
-
-*3.24. TwoPowerLaw(Model)*
+REFERENCE
+
+None
+
+
+
+.. _TwoPowerLaw:
+
+**2.2.24. TwoPowerLaw(Model)**
 
 Calculate an empirical functional form for SANS data characterized by
 two power laws.
 
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-
-
-The scattering intensity I(q) is calculated by:
-
-
-
-
+The returned value is scaled to units of |cm^-1|, absolute scale.
+
+The scattering intensity *I(q)* is calculated by:
+
+.. image:: img/image218.JPG
 
 qc is the location of the crossover from one slope to the other. The
 scaling A, sets the overall intensity of the lower Q power law region.
-The scaling of the second power law region is scaled to match the
-first. Be sure to enter the power law exponents as positive values.
-
-For 2D plot, the wave transfer is defined as .
-
-*Default input parameter values*
-
-Parameter name
-
-Units
-
-Default value
-
-coef_A
-
-1.0
-
-qc
-
--1
-
-0.04
-
-power_1(=m1)
-
-4
-
-power_2(=m2)
-
-4
-
-background
-
-|cm^-1|
-
-0.0
-
-
-
-
-
-
+The scaling of the second power law region is scaled to match the first.
+Be sure to enter the power law exponents as positive values.
+
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+**Default input parameter values**
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| coef\_A Â     1.0 
+
+| qc   ÃâŠ-1  0.04
+
+| power\_1(=m1)           | Â     4   
+
+| power\_2(=m2)           | Â     4   
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image219.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
@@ -4885,10 +4359,12 @@
 
 
-*3.25. UnifiedPower(Law and)Rg(Model)*
-
-The returned value is scaled to units of |cm^-1|\ |sr^-1|, absolute scale.
-
-Note that the level 0 is an extra function that is the inverse
-function; I (q) = scale/q + background.
+.. _UnifiedPowerRg:
+
+**2.2.25. UnifiedPower(Law and)Rg(Model)**
+
+The returned value is scaled to units of |cm^-1|, absolute scale.Â 
+
+Note that the level 0 is an extra function that is the inverse function;
+I (q) = scale/q + background.
 
 Otherwise, program incorporates the empirical multiple level unified
@@ -4899,144 +4375,91 @@
 The empirical expressions are able to reasonably approximate the
 scattering from many different types of particles, including fractal
-clusters, random coils (Debye equation), ellipsoidal particles, etc.
-The empirical fit function is
-
-
-
-
-
-For each level, the four parameters Gi, Rg,i, Bi and Pi must be
-chosen.
+clusters, random coils (Debye equation), ellipsoidal particles, etc.Â 
+The empirical fit function isÂ 
+
+.. image:: img/image220.JPG
+
+For each level, the four parameters Gi, Rg,i, Bi and Pi must be chosen.Â 
 
 For example, to approximate the scattering from random coils (Debye
-equation), set Rg,i as the Guinier radius, Pi = 2, and Bi = 2 Gi /
-Rg,i
+equation), set Rg,i as the Guinier radius, Pi = 2, and Bi = 2 Gi / Rg,iÂ 
 
 See the listed references for further information on choosing the
 parameters.
 
-
-
-For 2D plot, the wave transfer is defined as .
-
-*Default input parameter values*
-
-Parameter name
-
-Units
-
-Default value
-
-scale
-
-1.0
-
-Rg2
-
-
-
-21
-
-power2
-
-2
-
-G2
-
-|cm^-1|\ |sr^-1|
-
-3
-
-B2
-
-|cm^-1|\ |sr^-1|
-
-0.0006
-
-Rg1
-
-
-
-15.8
-
-power1
-
-4
-
-G1
-
-|cm^-1|\ |sr^-1|
-
-400
-
-B1
-
-|cm^-1|\ |sr^-1|
-
-4.5e-006
-
-background
-
-|cm^-1|
-
-0.0
-
-
-
-
-
-
+For 2D plot, the wave transfer is defined as
+
+.. image:: img/image040.GIF
+
+**Default input parameter values**
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| scale Â     1.0 
+
+| Rg2  ÃâŠ    21  
+
+| power2 Â     2   
+
+| G2   cm-1sr-1                | 3   
+
+| B2   cm-1sr-1                | 0.0006
+
+| Rg1  ÃâŠ    15.8
+
+| power1 Â     4   
+
+| G1   cm-1sr-1                | 400 
+
+| B1   cm-1sr-1                | 4.5e-006                |
+
+| background              | cm-1 0.0 
+==============  ========  =============
+
+.. image:: img/image221.JPG
 
 *Figure. 1D plot using the default values (w/500 data points).*
 
-
-
-REFERENCE
-
-G. Beaucage (1995). J. Appl. Cryst., vol. 28, p717-728.
-
-G. Beaucage (1996). J. Appl. Cryst., vol. 29, p134-146.
-
-*3.26.  LineModel*
+REFERENCE
+
+G. Beaucage (1995).Â  J. Appl. Cryst., vol. 28, p717-728.
+
+G. Beaucage (1996).Â  J. Appl. Cryst., vol. 29, p134-146.
+
+
+
+.. _LineModel:
+
+**2.2.26. LineModel**
 
 This is a linear function that calculates:
 
-
-
-
-
-where A and B are the coefficients of the first and second order
-terms.
-
-*NB:* For 2D plot, I(q) = I(qx)*I(qy) which is defined differently
+.. image:: img/image222.PNG
+
+where A and B are the coefficients of the first and second order terms.
+
+**Note:** For 2D plot, *I(q)*= I(qx)\*I(qy)Â  which is defined differently
 from other shape independent models.
 
-Parameter name
-
-Units
-
-Default value
-
-A
-
-|cm^-1|
-
-1.0
-
-B
-
-
-
-1.0
-
-
-
-*3.27. ReflectivityModel*
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| A    cm-1 1.0 
+
+| B    ÃâŠ    1.0 
+==============  ========  =============
+
+
+
+.. _ReflectivityModel:
+
+**2.2.27. ReflectivityModel**
 
 This model calculates the reflectivity and uses the Parrett algorithm.
 Up to nine film layers are supported between Bottom(substrate) and
 Medium(Superstrate where the neutron enters the first top film). Each
-layers are composed of [ of the interface(from the previous layer or
-substrate) + flat portion + of the interface(to the next layer or
+layers are composed of [ Âœ of the interface(from the previous layer or
+substrate) + flat portion + Âœ of the interface(to the next layer or
 medium)]. Only two simple interfacial functions are selectable, error
 function and linear function. The each interfacial thickness is
@@ -5044,127 +4467,94 @@
 sigma=roughness).
 
-NB: This model was contributed by an interested user.
-
-
-
-*Figure. Comparison (using the SLD profile below) with NISTweb
-calculation (circles):
-http://www.ncnr.nist.gov/resources/reflcalc.html.*
-
-
+Note: This model was contributed by an interested user.
+
+.. image:: img/image231.BMP
+
+*Figure. Comparison (using the SLD profile below) with NISTweb calculation (circles)*
+http://www.ncnr.nist.gov/resources/reflcalc.html
+
+.. image:: img/image232.GIF
 
 *Figure. SLD profile used for the calculation(above).*
 
-*3.28. ReflectivityIIModel*
-
-Same as the ReflectivityModel except that the it is more customizable.
-More interfacial functions are supplied. The number of points
-(npts_inter) for each interface can be choosen. The constant (A below
-but 'nu' as a parameter name of the model) for exp, erf, or power-law
-is an input. The SLD at the interface between layers, *rinter_i*, is
-calculated with a function chosen by a user, where the functions are:
+
+
+.. _ReflectivityIIModel:
+
+**2.2.28. ReflectivityIIModel**
+
+Â Â Â  Same as the ReflectivityModel except that the it is more
+customizable. More interfacial functions are supplied. The number of
+points (npts\_inter) for each interface can be choosen. Â Â Â  The constant
+(A below but 'nu' as a parameter name of the model) for exp, erf, or
+power-law is an input. The SLD at the interface between layers,
+*rinter\_i*, is calculated with a function chosen by a user, where the
+functions are:
 
 1) Erf;
 
-
+.. image:: img/image051.GIF
 
 2) Power-Law;
 
-
-
-
-
-
+.. image:: img/image050.GIF
 
 3) Exp;
 
-
-
-
-
-NB: This model was implemented by an interested user.
-
-*3.29. GelFitModel*
-
-Unlike a concentrated polymer solution, the fine-scale polymer
+.. image:: img/image049.GIF
+
+Â Â Â  Note: This model was implemented by an interested user.
+
+
+
+.. _GelFitModel:
+
+**2.2.29. GelFitModel**
+
+Â Â Â  Unlike a concentrated polymer solution, the fine-scale polymer
 distribution in a gel involves at least two characteristic length
 scales, a shorter correlation length (a1) to describe the rapid
 fluctuations in the position of the polymer chains that ensure
 thermodynamic equilibrium, and a longer distance (denoted here as a2)
-needed to account for the static accumulations of polymer pinned down
-by junction points or clusters of such points. The letter is derived
-from a simple Guinier function.
-
-The scattered intensity I(Q) is then calculated as:
-
-
+needed to account for the static accumulations of polymer pinned down by
+junction points or clusters of such points. The letter is derived from a
+simple Guinier function.
+
+The scattered intensity *I(q)* is then calculated as:
+
+.. image:: img/image233.GIF
 
 Where:
 
-
-
-
-
-
-
-Note the first term reduces to the Ornstein-Zernicke equation when
-D=2; ie, when the Flory exponent is 0.5 (theta conditions). In gels
-with significant hydrogen bonding D has been reported to be ~2.6 to
-2.8.
-
-NB: This model was implemented by an interested user.
-
-*Default input parameter values*
-
-Parameter name
-
-Units
-
-Default value
-
-Background
-
-|cm^-1|
-
-0.01
-
-Guinier scale
-
-|cm^-1|
-
-1.7
-
-Lorentzian scale
-
-|cm^-1|
-
-3.5
-
-Radius of gyration
-
-
-
-104
-
-Fractal exponent
-
-2
-
-Correlation length
-
-
-
-16
-
-
-
-
-
-
+.. image:: img/image234.GIF
+
+Â Â Â  Note the first term reduces to the Ornstein-Zernicke equation when
+D=2; ie, when the Flory exponent is 0.5 (theta conditions). Â  In gels
+with significant hydrogen bonding D has been reported to be ~2.6 to 2.8.
+
+Â Â Â  Note: This model was implemented by an interested user.
+
+**Default input parameter values**
+
+==============  ========  =============
+Parameter name  Units     Default value
+==============  ========  =============
+| Background              | cm-1 0.01
+
+| Guinier scale           | cm-1 1.7 
+
+| Lorentzian scale        | cm-1 3.5 
+
+| Radius of gyration      | ÃâŠ    104 
+
+| Fractal exponent        | Â     2   
+
+| Correlation length      | ÃâŠ    16  
+==============  ========  =============
+
+.. image:: img/image235.GIF
 
 *Figure. 1D plot using the default values (w/300 data points,
-*qmin*=0.001, and *qmax*=0.3).*
-
-
+qmin=0.001, and qmax=0.3).*
 
 REFERENCE
@@ -5178,24 +4568,21 @@
 
 
-**3.30. Star Polymer with Gaussian Statistics**
+.. _StarPolymer:
+
+**2.2.30. Star Polymer with Gaussian Statistics**
 
 For a star with *f* arms:
 
-
-
-
-
-
+.. image:: img/star1.PNG
+
+.. image:: img/star2.PNG
+
+.. image:: img/star3.PNG
 
 where is the ensemble average radius of gyration squared of an arm.
 
-
-
-REFERENCE
-
-H. Benoit, J. Polymer Science., 11, 596-599 (1953)
-
-
-
+REFERENCE
+
+H. Benoit, Â  J. Polymer Science.,Â  11, 596-599Â  (1953)
 
 
