Changeset eb69cce in sasmodels for sasmodels/models/triaxial_ellipsoid.py


Ignore:
Timestamp:
Nov 30, 2015 7:18:41 PM (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:
d18f8a8
Parents:
d138d43
Message:

make model docs more consistent; build pdf docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/triaxial_ellipsoid.py

    r3e428ec reb69cce  
    22# Note: model title and parameter table are inserted automatically 
    33r""" 
    4 All three axes are of different lengths with $R_a \le R_b <= R_c$ 
     4All three axes are of different lengths with $R_a \leq R_b \leq R_c$ 
    55**Users should maintain this inequality for all calculations**. 
    66 
    77.. math:: 
    88 
    9     P(Q) = \text{scale} V \left< F^2(Q) \right> + \text{background} 
     9    P(q) = \text{scale} V \left< F^2(q) \right> + \text{background} 
    1010 
    1111where the volume $V = 4/3 \pi R_a R_b R_c$, and the averaging 
    12 $\left< \cdots \right>$ is applied over all orientations for 1D. 
     12$\left<\ldots\right>$ is applied over all orientations for 1D. 
    1313 
    1414.. figure:: img/triaxial_ellipsoid_geometry.jpg 
    1515 
    1616    Ellipsoid schematic. 
    17  
    18 The returned value is in units of |cm^-1|, on absolute scale. 
    1917 
    2018Definition 
     
    2523.. math:: 
    2624 
    27     P(Q) = \frac{\text{scale}}{V}\int_0^1\int_0^1 
    28         \Phi^2(QR_a^2\cos^2( \pi x/2) + QR_b^2\sin^2(\pi y/2)(1-y^2) + c^2y^2) 
     25    P(q) = \frac{\text{scale}}{V}\int_0^1\int_0^1 
     26        \Phi^2(qR_a^2\cos^2( \pi x/2) + qR_b^2\sin^2(\pi y/2)(1-y^2) + R_c^2y^2) 
    2927        dx dy 
    3028 
     
    4038:num:`figure #triaxial-ellipsoid-angles`. 
    4139The angle $\psi$ is the rotational angle around its own $c$ axis 
    42 against the $Q$ plane. For example, $\psi = 0$ when the 
     40against the $q$ plane. For example, $\psi = 0$ when the 
    4341$a$ axis is parallel to the $x$ axis of the detector. 
    4442 
     
    5250 
    5351The contrast is defined as SLD(ellipsoid) - SLD(solvent).  In the 
    54 parameters, *a* is the minor equatorial radius, *b* is the major 
    55 equatorial radius, and c is the polar radius of the ellipsoid. 
     52parameters, $R_a$ is the minor equatorial radius, $R_b$ is the major 
     53equatorial radius, and $R_c$ is the polar radius of the ellipsoid. 
    5654 
    5755NB: The 2nd virial coefficient of the triaxial solid ellipsoid is 
    5856calculated based on the polar radius $R_p = R_c$ and equatorial 
    5957radius $R_e = \sqrt{R_a R_b}$, and used as the effective radius for 
    60 $S(Q)$ when $P(Q) \cdot S(Q)$ is applied. 
     58$S(q)$ when $P(q) \cdot S(q)$ is applied. 
    6159 
    6260.. figure:: img/triaxial_ellipsoid_1d.jpg 
     
    8179    Comparison between 1D and averaged 2D. 
    8280 
    83 Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research 
    84 (Kline, 2006) 
    85  
    86 REFERENCE 
     81References 
     82---------- 
    8783 
    8884L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum, 
Note: See TracChangeset for help on using the changeset viewer.