Changes in sasmodels/models/core_shell_cylinder.py [e31b19a:2d81cfe] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_cylinder.py
re31b19a r2d81cfe 5 5 The output of the 2D scattering intensity function for oriented core-shell 6 6 cylinders is given by (Kline, 2006 [#kline]_). The form factor is normalized 7 by the particle volume. Note that in this model the shell envelops the entire 8 core so that besides a "sleeve" around the core, the shell also provides two 9 flat end caps of thickness = shell thickness. In other words the length of the 10 total cyclinder is the length of the core cylinder plus twice the thickness of 11 the shell. If no end caps are desired one should use the 12 :ref:`core-shell-bicelle` and set the thickness of the end caps (in this case 13 the "thick_face") to zero. 7 by the particle volume. 14 8 15 9 .. math:: … … 39 33 40 34 and $\alpha$ is the angle between the axis of the cylinder and $\vec q$, 41 $V_s$ is the total volume (i.e. including both the core and the outer shell),42 $V_c$ is the volume of the core, $L$ is the length of the core,35 $V_s$ is the volume of the outer shell (i.e. the total volume, including 36 the shell), $V_c$ is the volume of the core, $L$ is the length of the core, 43 37 $R$ is the radius of the core, $T$ is the thickness of the shell, $\rho_c$ 44 38 is the scattering length density of the core, $\rho_s$ is the scattering … … 141 135 return 0.5 * (ddd) ** (1. / 3.) 142 136 137 def VR(radius, thickness, length): 138 """ 139 Returns volume ratio 140 """ 141 whole = pi * (radius + thickness) ** 2 * (length + 2 * thickness) 142 core = pi * radius ** 2 * length 143 return whole, whole - core 144 143 145 def random(): 144 146 outer_radius = 10**np.random.uniform(1, 4.7)
Note: See TracChangeset
for help on using the changeset viewer.