Changes in sasmodels/models/cylinder.py [aa2edb2:01eece6] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/cylinder.py
raa2edb2 r01eece6 2 2 # Note: model title and parameter table are inserted automatically 3 3 r""" 4 The form factor is normalized by the particle volume .4 The form factor is normalized by the particle volume V = \piR^2L. 5 5 6 6 Definition … … 19 19 20 20 F(q) = 2 (\Delta \rho) V 21 \frac{\sin \left( q\tfrac12L\cos\alpha \right)}22 { q\tfrac12L \cos \alpha}21 \frac{\sin \left(\tfrac12 qL\cos\alpha \right)} 22 {\tfrac12 qL \cos \alpha} 23 23 \frac{J_1 \left(q R \sin \alpha\right)}{q R \sin \alpha} 24 24 … … 88 88 title = "Right circular cylinder with uniform scattering length density." 89 89 description = """ 90 f(q,alpha) = 2*(sld - s olvent_sld)*V*sin(qLcos(alpha/2))91 /[qLcos(alpha /2)]*J1(qRsin(alpha/2))/[qRsin(alpha)]90 f(q,alpha) = 2*(sld - sld_solvent)*V*sin(qLcos(alpha)/2)) 91 /[qLcos(alpha)/2]*J1(qRsin(alpha))/[qRsin(alpha)] 92 92 93 93 P(q,alpha)= scale/V*f(q,alpha)^(2)+background … … 107 107 parameters = [["sld", "4e-6/Ang^2", 4, [-inf, inf], "", 108 108 "Cylinder scattering length density"], 109 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "",109 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 110 110 "Solvent scattering length density"], 111 111 ["radius", "Ang", 20, [0, inf], "volume", … … 130 130 # parameters for demo 131 131 demo = dict(scale=1, background=0, 132 sld=6, s olvent_sld=1,132 sld=6, sld_solvent=1, 133 133 radius=20, length=300, 134 134 theta=60, phi=60, … … 141 141 # names and the target sasview model name. 142 142 oldname = 'CylinderModel' 143 oldpars = dict(theta='cyl_theta', phi='cyl_phi', sld='sldCyl', s olvent_sld='sldSolv')143 oldpars = dict(theta='cyl_theta', phi='cyl_phi', sld='sldCyl', sld_solvent='sldSolv') 144 144 145 145 … … 151 151 ] 152 152 del qx, qy # not necessary to delete, but cleaner 153 # ADDED by: RKH ON: 18Mar2016 renamed sld's etc
Note: See TracChangeset
for help on using the changeset viewer.