Changes in / [18d732c:737679d] in sasmodels


Ignore:
Location:
sasmodels/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/parallelepiped.py

    rafd4692 r3330bb4  
    2323 
    2424   The edge of the solid used to have to satisfy the condition that $A < B < C$. 
    25    After some improvements to the effective radius calculation, used with 
    26    an S(Q), it is beleived that this is no longer the case. 
     25   After some improvements to the effective radius calculation, used with an S(Q), 
     26   it is beleived that this is no longer the case. 
    2727 
    2828The 1D scattering intensity $I(q)$ is calculated as: 
     
    7272 
    7373NB: The 2nd virial coefficient of the parallelepiped is calculated based on 
    74 the averaged effective radius, after appropriately sorting the three 
    75 dimensions, to give an oblate or prolate particle, $(=\sqrt{AB/\pi})$ and 
     74the averaged effective radius, after appropriately 
     75sorting the three dimensions, to give an oblate or prolate particle, $(=\sqrt{A B / \pi})$ and 
    7676length $(= C)$ values, and used as the effective radius for 
    7777$S(q)$ when $P(q) \cdot S(q)$ is applied. 
     
    106106.. figure:: img/parallelepiped_angle_definition.png 
    107107 
    108     Definition of the angles for oriented parallelepiped, shown with $A<B<C$. 
     108    Definition of the angles for oriented parallelepiped, shown with $A < B < C$. 
    109109 
    110110.. figure:: img/parallelepiped_angle_projection.png 
     
    167167---------------------------- 
    168168 
    169 * **Author:** This model is based on form factor calculations implemented 
    170 in a c-library provided by the NIST Center for Neutron Research (Kline, 2006). 
     169* **Author:** This model is based on form factor calculations implemented in a c-library 
     170provided by the NIST Center for Neutron Research (Kline, 2006). 
    171171* **Last Modified by:**  Paul Kienzle **Date:** April 05, 2017 
    172172* **Last Reviewed by:**  Richard Heenan **Date:** April 06, 2017 
  • sasmodels/models/triaxial_ellipsoid.py

    r1f65db5 r1f65db5  
    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 
    19 all orientations $\Omega$ of: 
     18the scattering for randomly oriented particles is defined by the average over all orientations $\Omega$ of: 
    2019 
    2120.. math:: 
    2221 
    23     P(q) = \text{scale}(\Delta\rho)^2\frac{V}{4 \pi}\int_\Omega\Phi^2(qr)\,d\Omega 
    24            + \text{background} 
     22    P(q) = \text{scale}(\Delta\rho)^2\frac{V}{4 \pi}\int_\Omega \Phi^2(qr) d\Omega + \text{background} 
    2523 
    2624where 
     
    4038 .. math:: 
    4139 
    42      \langle\Phi^2\rangle = \int_0^{2\pi} \int_{-\pi/2}^{\pi/2} \Phi^2(qr) 
    43                                                 \cos \gamma\,d\gamma d\phi 
     40     \langle\Phi^2\rangle = \int_0^{2\pi} \int_{-\pi/2}^{\pi/2} \Phi^2(qr) \cos \gamma\,d\gamma d\phi 
    4441 
    4542with $e = \cos\gamma \sin\phi$, $f = \cos\gamma \cos\phi$ and $g = \sin\gamma$. 
     
    7269.. figure:: img/elliptical_cylinder_angle_definition.png 
    7370 
    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. 
     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. 
    7773 
    7874The angle $\psi$ is the rotational angle around its own $c$ axis 
     
    130126title = "Ellipsoid of uniform scattering length density with three independent axes." 
    131127 
    132 description = """ 
     128description = """\ 
    133129Note: During fitting ensure that the inequality ra<rb<rc is not 
    134130        violated. Otherwise the calculation will 
     
    165161    from .ellipsoid import ER as ellipsoid_ER 
    166162 
    167     # now that radii can be in any size order, radii need sorting a,b,c 
    168     # where a~b and c is either much smaller or much larger 
     163    # now that radii can be in any size order, radii need sorting a,b,c where a~b and c is either much smaller 
     164    # or much larger 
    169165    radii = np.vstack((radius_equat_major, radius_equat_minor, radius_polar)) 
    170166    radii = np.sort(radii, axis=0) 
     
    186182 
    187183q = 0.1 
    188 # april 6 2017, rkh add unit tests 
    189 #     NOT compared with any other calc method, assume correct! 
     184# april 6 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 
    190185# add 2d test after pull #890 
    191186qx = q*cos(pi/6.0) 
Note: See TracChangeset for help on using the changeset viewer.