Changeset 40a87fa in sasmodels for sasmodels/models/fuzzy_sphere.py


Ignore:
Timestamp:
Aug 8, 2016 11:24:11 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/fuzzy_sphere.py

    r2c74c11 r40a87fa  
    11r""" 
    2 For information about polarised and magnetic scattering, see  
    3 the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 
     2For information about polarised and magnetic scattering, see 
     3the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` 
     4documentation. 
    45 
    56Definition 
    67---------- 
    78 
    8 The scattering intensity *I(q)* is calculated as: 
     9The scattering intensity $I(q)$ is calculated as: 
    910 
    1011.. math:: 
    11     I(q) = \frac{scale}{V}(\Delta \rho)^2 A^2(q) S(q) +\text{background} 
     12 
     13    I(q) = \frac{\text{scale}}{V}(\Delta \rho)^2 A^2(q) S(q) 
     14           + \text{background} 
    1215 
    1316 
    14 where the amplitude *A(q)* is given as the typical sphere scattering convoluted 
     17where the amplitude $A(q)$ is given as the typical sphere scattering convoluted 
    1518with a Gaussian to get a gradual drop-off in the scattering length density: 
    1619 
     
    1821 
    1922    A(q) = \frac{3\left[\sin(qR) - qR \cos(qR)\right]}{(qR)^3} 
    20            \exp\left(\frac{-(\sigma_{fuzzy}q)^2}{2}\right) 
     23           \exp\left(\frac{-(\sigma_\text{fuzzy}q)^2}{2}\right) 
    2124 
    22 Here *|A(q)|*:sup:`2`\  is the form factor, *P(q)*. The scale is equivalent to the 
    23 volume fraction of spheres, each of volume, *V*\. Contrast (|drho|) is the 
    24 difference of scattering length densities of the sphere and the surrounding 
    25 solvent. 
     25Here $A(q)^2$ is the form factor, $P(q)$. The scale is equivalent to the 
     26volume fraction of spheres, each of volume, $V$. Contrast $(\Delta \rho)$ 
     27is the difference of scattering length densities of the sphere and the 
     28surrounding solvent. 
    2629 
    27 Poly-dispersion in radius and in fuzziness is provided for, though the fuzziness 
    28 must be kept much smaller than the sphere radius for meaningful results. 
    29  
    30  
     30Poly-dispersion in radius and in fuzziness is provided for, though the 
     31fuzziness must be kept much smaller than the sphere radius for meaningful 
     32results. 
    3133 
    3234From the reference: 
    3335 
    3436  The "fuzziness" of the interface is defined by the parameter 
    35   |sigma| :sub:`fuzzy`\ . The particle radius *R* represents the radius of the 
     37  $\sigma_\text{fuzzy}$. The particle radius $R$ represents the radius of the 
    3638  particle where the scattering length density profile decreased to 1/2 of the 
    37   core density. The |sigma| :sub:`fuzzy`\ is the width of the smeared particle 
     39  core density. $\sigma_\text{fuzzy}$ is the width of the smeared particle 
    3840  surface; i.e., the standard deviation from the average height of the fuzzy 
    3941  interface. The inner regions of the microgel that display a higher density 
    4042  are described by the radial box profile extending to a radius of 
    41   approximately *Rbox* ~ *R* - 2\ |sigma|\ . The profile approaches zero as 
    42   *Rsans* ~ *R* + 2\ |sigma|\ . 
     43  approximately $R_\text{box} \sim R - 2 \sigma$. The profile approaches 
     44  zero as $R_\text{sans} \sim R + 2\sigma$. 
    4345 
    4446For 2D data: The 2D scattering intensity is calculated in the same way as 1D, 
    45 where the *q* vector is defined as 
     47where the $q$ vector is defined as 
    4648 
    47 .. math:: 
    48  
    49     q = \sqrt{{q_x}^2 + {q_y}^2} 
    50  
     49.. math:: q = \sqrt{{q_x}^2 + {q_y}^2} 
    5150 
    5251References 
Note: See TracChangeset for help on using the changeset viewer.