Changeset 8393c74 in sasmodels
- Timestamp:
- Oct 17, 2016 1:24:43 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 9762341
- Parents:
- 1b49bf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/teubner_strey.py
r4962519 r8393c74 69 69 B Jakobs, T Sottmann, R Strey, and I Grillo, *J. Chem. Phys.*, 115 (2001), 580 70 70 """ 71 from __future__ import division 71 72 72 73 import numpy as np … … 89 90 ] 90 91 91 def Iq(q, volfraction , sld, sld_solvent,d,xi):92 def Iq(q, volfraction_a, sld_a, sld_b, d, xi): 92 93 """SAS form""" 93 drho 2 = (sld-sld_solvent)*(sld-sld_solvent)94 drho = sld_a - sld_b 94 95 k = 2.0*pi*xi/d 95 96 a2 = (1.0 + k**2)**2 96 97 c1 = 2.0*xi**2 * (1.0 - k**2) 97 98 c2 = xi**4 98 prefactor = 8.0*pi*volfraction*(1.0-volfraction)*drho2*c2/xi 99 #k2 = (2.0*pi/d)*(2.0*pi/d) 100 #xi2 = 1/(xi*xi) 101 #q2 = q*q 102 #result = prefactor/((xi2+k2)*(xi2+k2)+2.0*(xi2-k2)*q2+q2*q2) 99 prefactor = 8.0*pi * volfraction_a*(1.0 - volfraction_a) * drho**2 * c2/xi 103 100 return 1.0e-4*prefactor / np.polyval([c2, c1, a2], q**2) 104 101
Note: See TracChangeset
for help on using the changeset viewer.