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


Ignore:
Timestamp:
Apr 8, 2017 5:15:43 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
18d732c
Parents:
3fd0499
Message:

fix line lengths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/triaxial_ellipsoid.py

    r3fd0499 rafd4692  
    1616    \frac{X^2}{R_a^2} + \frac{Y^2}{R_b^2} + \frac{Z^2}{R_c^2} = 1 
    1717 
    18 the scattering for randomly oriented particles is defined by the average over all orientations $\Omega$ of: 
     18the scattering for randomly oriented particles is defined by the average over 
     19all orientations $\Omega$ of: 
    1920 
    2021.. math:: 
    2122 
    22     P(q) = \text{scale}(\Delta\rho)^2\frac{V}{4 \pi}\int_\Omega \Phi^2(qr) d\Omega + \text{background} 
     23    P(q) = \text{scale}(\Delta\rho)^2\frac{V}{4 \pi}\int_\Omega\Phi^2(qr)\,d\Omega 
     24           + \text{background} 
    2325 
    2426where 
     
    3840 .. math:: 
    3941 
    40      \langle\Phi^2\rangle = \int_0^{2\pi} \int_{-\pi/2}^{\pi/2} \Phi^2(qr) \cos \gamma\,d\gamma d\phi 
     42     \langle\Phi^2\rangle = \int_0^{2\pi} \int_{-\pi/2}^{\pi/2} \Phi^2(qr) 
     43                                                \cos \gamma\,d\gamma d\phi 
    4144 
    4245with $e = \cos\gamma \sin\phi$, $f = \cos\gamma \cos\phi$ and $g = \sin\gamma$. 
     
    6972.. figure:: img/elliptical_cylinder_angle_definition.png 
    7073 
    71     Definition of angles for oriented triaxial ellipsoid, where radii shown here are $a < b << c$ 
    72     and angle $\Psi$ is a rotation around the axis of the particle. 
     74    Definition of angles for oriented triaxial ellipsoid, where radii shown 
     75    here are $a < b << c$ and angle $\Psi$ is a rotation around the axis 
     76    of the particle. 
    7377 
    7478The angle $\psi$ is the rotational angle around its own $c$ axis 
     
    122126title = "Ellipsoid of uniform scattering length density with three independent axes." 
    123127 
    124 description = """\ 
     128description = """ 
    125129Note: During fitting ensure that the inequality ra<rb<rc is not 
    126130        violated. Otherwise the calculation will 
     
    157161    from .ellipsoid import ER as ellipsoid_ER 
    158162 
    159     # now that radii can be in any size order, radii need sorting a,b,c where a~b and c is either much smaller 
    160     # or much larger 
     163    # now that radii can be in any size order, radii need sorting a,b,c 
     164    # where a~b and c is either much smaller or much larger 
    161165    radii = np.vstack((radius_equat_major, radius_equat_minor, radius_polar)) 
    162166    radii = np.sort(radii, axis=0) 
     
    178182 
    179183q = 0.1 
    180 # april 6 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 
     184# april 6 2017, rkh add unit tests 
     185#     NOT compared with any other calc method, assume correct! 
    181186# add 2d test after pull #890 
    182187qx = q*cos(pi/6.0) 
Note: See TracChangeset for help on using the changeset viewer.