Changeset 483a022 in sasmodels


Ignore:
Timestamp:
Oct 11, 2016 11:06:46 AM (8 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
041bc75 (diff), 64f0a1c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://github.com/sasview/sasmodels

Location:
sasmodels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    re4bf271 r64f0a1c  
    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' 
    127133        if not hasattr(model, 'id'): 
    128134            model.id = splitext(basename(model.filename))[0] 
  • sasmodels/models/core_shell_bicelle.py

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

    r19e7ca7 r041bc75  
    1515 
    1616See the :ref:`core-shell-sphere` model for more documentation. 
     17 
     18The 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 
     24where 
     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 
     34where $R_i = r_c + (i-1)(t_s + t_w)$ 
     35    
     36where $V_t$ is the volume of the whole particle, $V(R)$ is the volume of a sphere 
     37of radius $R$, $r_c$ is the radius of the core, $\rho_{shell}$ is the scattering length  
     38density of a shell, $\rho_{solv}$ is the scattering length density of the solvent. 
     39 
    1740 
    1841The 2D scattering intensity is the same as 1D, regardless of the orientation 
Note: See TracChangeset for help on using the changeset viewer.