Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_cylinder.py

    re31b19a r2d81cfe  
    55The output of the 2D scattering intensity function for oriented core-shell 
    66cylinders 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. 
     7by the particle volume. 
    148 
    159.. math:: 
     
    3933 
    4034and $\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 
     36the shell), $V_c$ is the volume of the core, $L$ is the length of the core, 
    4337$R$ is the radius of the core, $T$ is the thickness of the shell, $\rho_c$ 
    4438is the scattering length density of the core, $\rho_s$ is the scattering 
     
    141135    return 0.5 * (ddd) ** (1. / 3.) 
    142136 
     137def 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 
    143145def random(): 
    144146    outer_radius = 10**np.random.uniform(1, 4.7) 
Note: See TracChangeset for help on using the changeset viewer.