Changes in / [1dd2854:6794301] in sasmodels
- Location:
- sasmodels/models
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/correlation_length.py
r0cc31e1 r326281f 16 16 incoherent background B and the two exponents n and m are used as fitting 17 17 parameters. (Respectively $porod\_scale$, $lorentz\_scale$, $background$, $exponent\_p$ and 18 $exponent\_l$ in the parameter list.) The remaining parameter \ |xi|\is a correlation18 $exponent\_l$ in the parameter list.) The remaining parameter \xi is a correlation 19 19 length for the polymer chains. Note that when m=2 this functional form becomes the 20 20 familiar Lorentzian function. Some interpretation of the values of A and C may be -
sasmodels/models/elliptical_cylinder.py
r0cc31e1 r74fd96f 12 12 .. figure:: img/elliptical_cylinder_geometry.png 13 13 14 Elliptical cylinder geometry $a$ = $r_{minor}$ and \ |nu|\= $axis\_ratio$ = $r_{major} / r_{minor}$14 Elliptical cylinder geometry $a$ = $r_{minor}$ and \nu = $axis\_ratio$ = $r_{major} / r_{minor}$ 15 15 16 16 The function calculated is -
sasmodels/models/fuzzy_sphere.py
r0cc31e1 raa2edb2 19 19 20 20 A(q) = \frac{3\left[\sin(qR) - qR \cos(qR)\right]}{(qR)^3} 21 \exp\left(\frac{-( \sigma_{fuzzy}q)^2}{2}\right)21 \exp\left(\frac{-(o_{fuzzy}q)^2}{2}\right) 22 22 23 23 Here *|A(q)|*:sup:`2`\ is the form factor, *P(q)*. The scale is equivalent to the … … 26 26 solvent. 27 27 28 Poly-dispersion in radius and in fuzziness is provided for, though the fuzziness 29 must be kept much smaller than the sphere radius for meaningful results. 28 Poly-dispersion in radius and in fuzziness is provided for. 30 29 31 30 … … 66 65 or just volume fraction for absolute scale data 67 66 radius: radius of the solid sphere 68 fuzziness = the standard deviation of thefuzzy interfacial67 fuzziness = the STD of the height of fuzzy interfacial 69 68 thickness (ie., so-called interfacial roughness) 70 69 sld: the SLD of the sphere … … 77 76 # pylint: disable=bad-whitespace,line-too-long 78 77 # ["name", "units", default, [lower, upper], "type","description"], 79 parameters = [["sld", "1e-6/Ang^2", 1, [-inf, inf], "", " Particlescattering length density"],80 ["s ld_solvent", "1e-6/Ang^2", 3, [-inf, inf], "", "Solvent scattering length density"],78 parameters = [["sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Layer scattering length density"], 79 ["solvent_sld", "1e-6/Ang^2", 3, [-inf, inf], "", "Solvent scattering length density"], 81 80 ["radius", "Ang", 60, [0, inf], "volume", "Sphere radius"], 82 ["fuzziness", "Ang", 10, [0, inf], "", " std deviation of Gaussian convolution for interface (must be << radius)"],81 ["fuzziness", "Ang", 10, [0, inf], "", "The STD of the height of fuzzy interfacial"], 83 82 ] 84 83 # pylint: enable=bad-whitespace,line-too-long … … 96 95 const double bes = sph_j1c(qr); 97 96 const double qf = q*fuzziness; 98 const double fq = bes * (sld - s ld_solvent) * form_volume(radius) * exp(-0.5*qf*qf);97 const double fq = bes * (sld - solvent_sld) * form_volume(radius) * exp(-0.5*qf*qf); 99 98 return 1.0e-4*fq*fq; 100 99 """ … … 103 102 // never called since no orientation or magnetic parameters. 104 103 //return -1.0; 105 return Iq(sqrt(qx*qx + qy*qy), sld, s ld_solvent, radius, fuzziness);104 return Iq(sqrt(qx*qx + qy*qy), sld, solvent_sld, radius, fuzziness); 106 105 """ 107 106 … … 115 114 116 115 demo = dict(scale=1, background=0.001, 117 sld=1, s ld_solvent=3,116 sld=1, solvent_sld=3, 118 117 radius=60, 119 118 fuzziness=10, … … 122 121 123 122 oldname = "FuzzySphereModel" 124 oldpars = dict(sld='sldSph', s ld_solvent='sldSolv', radius='radius', fuzziness='fuzziness')123 oldpars = dict(sld='sldSph', solvent_sld='sldSolv', radius='radius', fuzziness='fuzziness') 125 124 126 125
Note: See TracChangeset
for help on using the changeset viewer.