Changeset 15a90c1 in sasmodels for sasmodels/models/parallelepiped.py


Ignore:
Timestamp:
Apr 6, 2017 11:20:47 AM (7 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
14207bb
Parents:
4aaf89a
Message:

more changes for new axes, and a bug in cylinder.py docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/parallelepiped.py

    r4aaf89a r15a90c1  
    2121.. note:: 
    2222 
    23    The edge of the solid must satisfy the condition that $A < B < C$. 
    24    This requirement is not enforced in the model, so it is up to the 
    25    user to check this during the analysis. 
     23   The edge of the solid used to have to satisfy the condition that $A < B < C$. 
     24   After some improvements to the effective radius calculation, used with an S(Q), 
     25   it is beleived that this is no longer the case.  
    2626 
    2727The 1D scattering intensity $I(q)$ is calculated as: 
     
    7171 
    7272NB: The 2nd virial coefficient of the parallelepiped is calculated based on 
    73 the averaged effective radius $(=\sqrt{A B / \pi})$ and 
     73the averaged effective radius, after appropriately 
     74sorting the three dimensions, to give an oblate or prolate particle, $(=\sqrt{A B / \pi})$ and 
    7475length $(= C)$ values, and used as the effective radius for 
    7576$S(q)$ when $P(q) \cdot S(q)$ is applied. 
     
    102103.. _parallelepiped-orientation: 
    103104 
    104 .. figure:: img/parallelepiped_angle_definition.jpg 
    105  
    106     Definition of the angles for oriented parallelepipeds. 
    107  
    108 .. figure:: img/parallelepiped_angle_projection.jpg 
    109  
    110     Examples of the angles for oriented parallelepipeds against the 
     105.. figure:: img/parallelepiped_angle_definition.png 
     106 
     107    Definition of the angles for oriented parallelepiped, shown with $A < B < C$. 
     108 
     109.. figure:: img/parallelepiped_angle_projection.png 
     110 
     111    Examples of the angles for an oriented parallelepiped against the 
    111112    detector plane. 
    112113 
     
    116117.. math:: 
    117118 
    118     P(q_x, q_y) = \left[\frac{\sin(qA\cos\alpha/2)}{(qA\cos\alpha/2)}\right]^2 
    119                   \left[\frac{\sin(qB\cos\beta/2)}{(qB\cos\beta/2)}\right]^2 
    120                   \left[\frac{\sin(qC\cos\gamma/2)}{(qC\cos\gamma/2)}\right]^2 
     119    P(q_x, q_y) = \left[\frac{\sin(\tfrac{1}{2}qA\cos\alpha)}{(\tfrac{1}{2}qA\cos\alpha)}\right]^2 
     120                  \left[\frac{\sin(\tfrac{1}{2}qB\cos\beta)}{(\tfrac{1}{2}qB\cos\beta)}\right]^2 
     121                  \left[\frac{\sin(\tfrac{1}{2}qC\cos\gamma)}{(\tfrac{1}{2}qC\cos\gamma)}\right]^2 
    121122 
    122123with 
     
    154155angles. 
    155156 
    156 This model is based on form factor calculations implemented in a c-library 
    157 provided by the NIST Center for Neutron Research (Kline, 2006). 
    158157 
    159158References 
     
    163162 
    164163R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 
     164 
     165Authorship and Verification 
     166---------------------------- 
     167 
     168* **Author:** This model is based on form factor calculations implemented in a c-library 
     169provided by the NIST Center for Neutron Research (Kline, 2006). 
     170* **Last Modified by:**  Paul Kienzle **Date:** April 05, 2017 
     171* **Last Reviewed by:**  Richard Heenan **Date:** April 06, 2017 
     172 
    165173""" 
    166174 
Note: See TracChangeset for help on using the changeset viewer.