Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_cylinder.py

    rf4878dc r01eece6  
    1212.. math:: 
    1313 
    14     P(q,\alpha) = \frac{\text{scale}}{V_s} F^2(q) + \text{background} 
     14    I(q,\alpha) = \frac{\text{scale}}{V_s} F^2(q) + \text{background} 
    1515 
    1616where 
     
    5252 
    5353To provide easy access to the orientation of the core-shell cylinder, we 
    54 define the axis of the cylinder using two angles $\theta$ and $\phi$. As 
    55 for the case of the cylinder, those angles are defined in 
    56 :num:`figure #cylinder-orientation`. 
     54define the axis of the cylinder using two angles $\theta$ and $\phi$.  
     55(see :ref:`cylinder model <cylinder-angle-definition>`) 
    5756 
    5857NB: The 2nd virial coefficient of the cylinder is calculated based on 
     
    7473distribution $p(\theta,\phi) = 1.0$. 
    7574 
    76 2013/11/26 - Description reviewed by Heenan, R. 
     75Reference 
     76--------- 
     77see, for example, Ian Livsey  J. Chem. Soc., Faraday Trans. 2, 1987,83, 1445-1452 
     78 
     792016/03/18 - Description reviewed by RKH 
    7780""" 
    7881 
     
    8386description = """ 
    8487P(q,alpha)= scale/Vs*f(q)^(2) + background, 
    85       where: f(q)= 2(core_sld - solvant_sld) 
     88      where: f(q)= 2(sld_core - solvant_sld) 
    8689        * Vc*sin[qLcos(alpha/2)] 
    8790        /[qLcos(alpha/2)]*J1(qRsin(alpha)) 
    88         /[qRsin(alpha)]+2(shell_sld-solvent_sld) 
     91        /[qRsin(alpha)]+2(sld_shell-sld_solvent) 
    8992        *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T) 
    9093        *cos(alpha/2)]*J1(q(R+T)sin(alpha)) 
     
    9699    Vc: the volume of the core 
    97100    L: the length of the core 
    98         shell_sld: the scattering length density of the shell 
    99     solvent_sld: the scattering length density of the solvent 
     101        sld_shell: the scattering length density of the shell 
     102    sld_solvent: the scattering length density of the solvent 
    100103    background: the background 
    101104    T: the thickness 
     
    109112 
    110113#             ["name", "units", default, [lower, upper], "type", "description"], 
    111 parameters = [["core_sld", "1e-6/Ang^2", 4, [-inf, inf], "", 
     114parameters = [["sld_core", "1e-6/Ang^2", 4, [-inf, inf], "", 
    112115               "Cylinder core scattering length density"], 
    113               ["shell_sld", "1e-6/Ang^2", 4, [-inf, inf], "", 
     116              ["sld_shell", "1e-6/Ang^2", 4, [-inf, inf], "", 
    114117               "Cylinder shell scattering length density"], 
    115               ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", 
     118              ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 
    116119               "Solvent scattering length density"], 
    117120              ["radius", "Ang", 20, [0, inf], "volume", 
     
    147150 
    148151demo = dict(scale=1, background=0, 
    149             core_sld=6, shell_sld=8, solvent_sld=1, 
     152            sld_core=6, sld_shell=8, sld_solvent=1, 
    150153            radius=45, thickness=25, length=340, 
    151154            theta=30, phi=15, 
     
    156159            phi_pd=15, phi_pd_n=1) 
    157160oldname = 'CoreShellCylinderModel' 
    158 oldpars = dict(theta='axis_theta', phi='axis_phi') 
     161oldpars = dict( sld_core='core_sld', 
     162               sld_shell='shell_sld', 
     163               sld_solvent='solvent_sld', 
     164               theta='axis_theta', phi='axis_phi') 
     165# ADDED by:  RKH  ON: 18Mar2016 renamed sld's etc 
Note: See TracChangeset for help on using the changeset viewer.