Changeset eb69cce in sasmodels for sasmodels/models/hollow_cylinder.py
- Timestamp:
- Nov 30, 2015 9:18:41 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hollow_cylinder.py
rd138d43 reb69cce 6 6 .. math:: 7 7 8 P(q) = \text{scale} \l angle F^2 \rangle/V_\text{shell} + \text{background}8 P(q) = \text{scale} \left<F^2\right>/V_\text{shell} + \text{background} 9 9 10 where the averaging $\l angle \rangle$ is applied only for the 1D calculation.10 where the averaging $\left<\ldots\right>$ is applied only for the 1D calculation. 11 11 12 12 The inside and outside of the hollow cylinder are assumed have the same SLD. … … 19 19 .. math:: 20 20 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 23 24 \int_0^{1}\Psi^2 24 25 \left[q_z, R_\text{shell}(1-x^2)^{1/2}, 25 26 R_\text{core}(1-x^2)^{1/2}\right] 26 27 \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} 28 29 \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} 34 35 35 36 where *scale* is a scale factor and $J_1$ is the 1st order … … 42 43 **NB**: The 2nd virial coefficient of the cylinder is calculated 43 44 based on the radius and 2 length values, and used as the effective radius 44 for $S( Q)$ when $P(Q) * S(Q)$ is applied.45 for $S(q)$ when $P(q) \cdot S(q)$ is applied. 45 46 46 47 In the parameters, the contrast represents SLD :sub:`shell` - SLD :sub:`solvent` … … 59 60 Examples of the angles for oriented pp against the detector plane. 60 61 61 Reference 62 --------- 62 References 63 ---------- 63 64 64 65 L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and … … 88 89 ["sld", "1/Ang^2", 6.3, [-inf, inf], "", "Cylinder sld"], 89 90 ["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"], 92 93 ] 93 94
Note: See TracChangeset
for help on using the changeset viewer.