Changes in / [1fdb555:0d6e865] in sasmodels


Ignore:
Location:
sasmodels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_bicelle.py

    r0d6e865 r0d6e865  
    4040.. math:: 
    4141 
    42     I(Q,\alpha) = \frac{\text{scale}}{V_t} \cdot 
     42    I(Q,\alpha) = \frac{\text{scale}}{V} \cdot 
    4343        F(Q,\alpha)^2 + \text{background} 
    4444 
  • sasmodels/models/multilayer_vesicle.py

    r041bc75 r19e7ca7  
    1515 
    1616See the :ref:`core-shell-sphere` model for more documentation. 
    17  
    18 The 1D scattering intensity is calculated in the following way (Guinier, 1955) 
    19  
    20 .. math:: 
    21  
    22     P(q) = \frac{\text{scale.volfraction}}{V_t} F^2(q) + \text{background} 
    23  
    24 where 
    25  
    26 .. math:: 
    27  
    28      F(q) = (\rho_{shell}-\rho_{solv}) \sum_{i=1}^{n\_pairs} \left[ 
    29      3V(R_i)\frac{\sin(qR_i)-qR_i\cos(qR_i)}{(qR_i)^3} \\ 
    30       - 3V(R_i+t_s)\frac{\sin(q(R_i+t_s))-q(R_i+t_s)\cos(q(R_i+t_s))}{(q(R_i+t_s))^3} 
    31      \right] 
    32  
    33  
    34 where $R_i = r_c + (i-1)(t_s + t_w)$ 
    35     
    36 where $V_t$ is the volume of the whole particle, $V(R)$ is the volume of a sphere 
    37 of radius $R$, $r_c$ is the radius of the core, $\rho_{shell}$ is the scattering length  
    38 density of a shell, $\rho_{solv}$ is the scattering length density of the solvent. 
    39  
    4017 
    4118The 2D scattering intensity is the same as 1D, regardless of the orientation 
  • sasmodels/sasview_model.py

    r64f0a1c re4bf271  
    125125        if not hasattr(model, 'filename'): 
    126126            model.filename = kernel_module.__file__ 
    127             # For old models, treat .pyc and .py files interchangeably. 
    128             # This is needed because of the Sum|Multi(p1,p2) types of models 
    129             # and the convoluted way in which they are created. 
    130             if model.filename.endswith(".py"): 
    131                 logging.info("Loading %s as .pyc", model.filename) 
    132                 model.filename = model.filename+'c' 
    133127        if not hasattr(model, 'id'): 
    134128            model.id = splitext(basename(model.filename))[0] 
Note: See TracChangeset for help on using the changeset viewer.