Changes in sasmodels/models/core_shell_cylinder.py [f4878dc:01eece6] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_cylinder.py
rf4878dc r01eece6 12 12 .. math:: 13 13 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} 15 15 16 16 where … … 52 52 53 53 To 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`. 54 define the axis of the cylinder using two angles $\theta$ and $\phi$. 55 (see :ref:`cylinder model <cylinder-angle-definition>`) 57 56 58 57 NB: The 2nd virial coefficient of the cylinder is calculated based on … … 74 73 distribution $p(\theta,\phi) = 1.0$. 75 74 76 2013/11/26 - Description reviewed by Heenan, R. 75 Reference 76 --------- 77 see, for example, Ian Livsey J. Chem. Soc., Faraday Trans. 2, 1987,83, 1445-1452 78 79 2016/03/18 - Description reviewed by RKH 77 80 """ 78 81 … … 83 86 description = """ 84 87 P(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) 86 89 * Vc*sin[qLcos(alpha/2)] 87 90 /[qLcos(alpha/2)]*J1(qRsin(alpha)) 88 /[qRsin(alpha)]+2(s hell_sld-solvent_sld)91 /[qRsin(alpha)]+2(sld_shell-sld_solvent) 89 92 *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T) 90 93 *cos(alpha/2)]*J1(q(R+T)sin(alpha)) … … 96 99 Vc: the volume of the core 97 100 L: the length of the core 98 s hell_sld: the scattering length density of the shell99 s olvent_sld: the scattering length density of the solvent101 sld_shell: the scattering length density of the shell 102 sld_solvent: the scattering length density of the solvent 100 103 background: the background 101 104 T: the thickness … … 109 112 110 113 # ["name", "units", default, [lower, upper], "type", "description"], 111 parameters = [[" core_sld", "1e-6/Ang^2", 4, [-inf, inf], "",114 parameters = [["sld_core", "1e-6/Ang^2", 4, [-inf, inf], "", 112 115 "Cylinder core scattering length density"], 113 ["s hell_sld", "1e-6/Ang^2", 4, [-inf, inf], "",116 ["sld_shell", "1e-6/Ang^2", 4, [-inf, inf], "", 114 117 "Cylinder shell scattering length density"], 115 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "",118 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 116 119 "Solvent scattering length density"], 117 120 ["radius", "Ang", 20, [0, inf], "volume", … … 147 150 148 151 demo = 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, 150 153 radius=45, thickness=25, length=340, 151 154 theta=30, phi=15, … … 156 159 phi_pd=15, phi_pd_n=1) 157 160 oldname = 'CoreShellCylinderModel' 158 oldpars = dict(theta='axis_theta', phi='axis_phi') 161 oldpars = 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.