Changeset b3f2a24 in sasmodels
- Timestamp:
- Oct 6, 2016 6:49:29 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:
- 9272cbd, 0444c02
- Parents:
- adc753d
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/teubner_strey.py
rcaddb14 rb3f2a24 19 19 .. math:: 20 20 21 a_2 &= \biggl[1+\bigl(\frac{2\pi\xi}{d}\bigr)^2\biggr] \\21 a_2 &= \biggl[1+\bigl(\frac{2\pi\xi}{d}\bigr)^2\biggr]^2\\ 22 22 c_1 &= -2\xi^2\bigl(\frac{2\pi\xi}{d}\bigr)^2+2\xi^2\\ 23 23 c_2 &= \xi^4 … … 92 92 """SAS form""" 93 93 drho2 = (sld-sld_solvent)*(sld-sld_solvent) 94 a2 = power(1.0+power(2.0*pi*xi/d,2.0),2.0) 95 c1 = -2.0*xi*xi*power(2.0*pi*xi/d,2.0)+2*xi*xi 94 k = 2.0*pi*xi/d 95 a2 = power(1.0+power(k,2.0),2.0) 96 c1 = -2.0*xi*xi*power(k,2.0)+2*xi*xi 96 97 c2 = power(xi,4.0) 97 98 prefactor = 8.0*pi*volfraction*(1.0-volfraction)*drho2*c2/xi -
sasmodels/models/unified_power_Rg.py
reb574d7 rb3f2a24 95 95 exp_now = exp(-(q*rg[i])**2/3.) 96 96 pow_now = (erf(q*rg[i]/sqrt(6.))**3/q)**power[i] 97 exp_next = exp(-(q*rg[i+1])**2/3.) if i < ilevel-1 else 1. 97 if i < ilevel-1: 98 exp_next = exp(-(q*rg[i+1])**2/3.) 99 else: 100 exp_next = 1 98 101 result += G[i]*exp_now + B[i]*exp_next*pow_now 102 99 103 result[q == 0] = np.sum(G[:ilevel]) 100 104 return result
Note: See TracChangeset
for help on using the changeset viewer.