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


Ignore:
Timestamp:
Nov 30, 2015 9: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/hollow_cylinder.py

    rd138d43 reb69cce  
    66.. math:: 
    77 
    8     P(q) = \text{scale} \langle F^2 \rangle/V_\text{shell} + \text{background} 
     8    P(q) = \text{scale} \left<F^2\right>/V_\text{shell} + \text{background} 
    99 
    10 where the averaging $\langle \rangle$ is applied only for the 1D calculation. 
     10where the averaging $\left<\ldots\right>$ is applied only for the 1D calculation. 
    1111 
    1212The inside and outside of the hollow cylinder are assumed have the same SLD. 
     
    1919.. math:: 
    2020 
    21     \begin{eqnarray} 
    22     P(q)           &=& (\text{scale})V_\text{shell}\Delta\rho^2 
     21    %\begin{align*} % isn't working with pdflatex 
     22    \begin{array}{rl} 
     23    P(q)           &= (\text{scale})V_\text{shell}\Delta\rho^2 
    2324            \int_0^{1}\Psi^2 
    2425            \left[q_z, R_\text{shell}(1-x^2)^{1/2}, 
    2526                       R_\text{core}(1-x^2)^{1/2}\right] 
    2627            \left[\frac{\sin(qHx)}{qHx}\right]^2 dx \\ 
    27     \Psi[q,y,z]    &=& \frac{1}{1-\gamma^2} 
     28    \Psi[q,y,z]    &= \frac{1}{1-\gamma^2} 
    2829            \left[ \Lambda(qy) - \gamma^2\Lambda(qz) \right] \\ 
    29     \Lambda(a)     &=& 2 J_1(a) / a \\ 
    30     \gamma         &=& R_\text{core} / R_\text{shell} \\ 
    31     V_\text{shell} &=& \pi \left(R_\text{shell}^2 - R_\text{core}^2 \right)L \\ 
    32     J_1(x)         &=& \frac{(\sin(x)-x\cdot \cos(x))}{x^2} \\ 
    33     \end{eqnarray} 
     30    \Lambda(a)     &= 2 J_1(a) / a \\ 
     31    \gamma         &= R_\text{core} / R_\text{shell} \\ 
     32    V_\text{shell} &= \pi \left(R_\text{shell}^2 - R_\text{core}^2 \right)L \\ 
     33    J_1(x)         &= (\sin(x)-x\cdot \cos(x)) / x^2 \\ 
     34    \end{array} 
    3435 
    3536where *scale* is a scale factor and $J_1$ is the 1st order 
     
    4243**NB**: The 2nd virial coefficient of the cylinder is calculated 
    4344based on the radius and 2 length values, and used as the effective radius 
    44 for $S(Q)$ when $P(Q) * S(Q)$ is applied. 
     45for $S(q)$ when $P(q) \cdot S(q)$ is applied. 
    4546 
    4647In the parameters, the contrast represents SLD :sub:`shell` - SLD :sub:`solvent` 
     
    5960    Examples of the angles for oriented pp against the detector plane. 
    6061 
    61 Reference 
    62 --------- 
     62References 
     63---------- 
    6364 
    6465L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and 
     
    8889              ["sld", "1/Ang^2", 6.3, [-inf, inf], "", "Cylinder sld"], 
    8990              ["solvent_sld", "1/Ang^2", 1, [-inf, inf], "", "Solvent sld"], 
    90               ["theta", "[deg]", 90, [-360, 360], "orientation", "Theta angle"], 
    91               ["phi", "[deg]", 0, [-360, 360], "orientation", "Phi angle"], 
     91              ["theta", "degrees", 90, [-360, 360], "orientation", "Theta angle"], 
     92              ["phi", "degrees", 0, [-360, 360], "orientation", "Phi angle"], 
    9293              ] 
    9394 
Note: See TracChangeset for help on using the changeset viewer.