Changes in / [5430333:ca3abe6] in sasmodels
- Location:
- sasmodels/models
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/sphere.py
r49da079 raa2edb2 17 17 where *scale* is a volume fraction, $V$ is the volume of the scatterer, 18 18 $r$ is the radius of the sphere, *background* is the background level and 19 *sld* and *s ld_solvent* are the scattering length densities (SLDs) of the19 *sld* and *solvent_sld* are the scattering length densities (SLDs) of the 20 20 scatterer and the solvent respectively. 21 21 … … 49 49 title = "Spheres with uniform scattering length density" 50 50 description = """\ 51 P(q)=(scale/V)*[3V(sld-s ld_solvent)*(sin(qr)-qr cos(qr))51 P(q)=(scale/V)*[3V(sld-solvent_sld)*(sin(qr)-qr cos(qr)) 52 52 /(qr)^3]^2 + background 53 53 r: radius of sphere 54 54 V: The volume of the scatter 55 55 sld: the SLD of the sphere 56 s ld_solvent: the SLD of the solvent56 solvent_sld: the SLD of the solvent 57 57 """ 58 58 category = "shape:sphere" … … 61 61 parameters = [["sld", "1e-6/Ang^2", 1, [-inf, inf], "", 62 62 "Layer scattering length density"], 63 ["s ld_solvent", "1e-6/Ang^2", 6, [-inf, inf], "",63 ["solvent_sld", "1e-6/Ang^2", 6, [-inf, inf], "", 64 64 "Solvent scattering length density"], 65 65 ["radius", "Ang", 50, [0, inf], "volume", … … 76 76 77 77 Iq = """ 78 return sphere_form(q, radius, sld, s ld_solvent);78 return sphere_form(q, radius, sld, solvent_sld); 79 79 """ 80 80 … … 82 82 // never called since no orientation or magnetic parameters. 83 83 //return -1.0; 84 return Iq(sqrt(qx*qx + qy*qy), sld, s ld_solvent, radius);84 return Iq(sqrt(qx*qx + qy*qy), sld, solvent_sld, radius); 85 85 """ 86 86 … … 94 94 95 95 demo = dict(scale=1, background=0, 96 sld=6, s ld_solvent=1,96 sld=6, solvent_sld=1, 97 97 radius=120, 98 98 radius_pd=.2, radius_pd_n=45) 99 99 oldname = "SphereModel" 100 oldpars = dict(sld='sldSph', s ld_solvent='sldSolv', radius='radius')100 oldpars = dict(sld='sldSph', solvent_sld='sldSolv', radius='radius') -
sasmodels/models/triaxial_ellipsoid.py
r49da079 r6ef4293 91 91 "Solvent scattering length density"], 92 92 ["req_minor", "Ang", 20, [0, inf], "volume", 93 "Minor equ atorial radius"],93 "Minor equitorial radius"], 94 94 ["req_major", "Ang", 400, [0, inf], "volume", 95 95 "Major equatorial radius"],
Note: See TracChangeset
for help on using the changeset viewer.