Changeset 999c87f in sasmodels
- Timestamp:
- Oct 24, 2016 6:42:26 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:
- 0890871
- Parents:
- aea515c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/convert.py
raea515c r999c87f 208 208 d = 2*math.pi*xi/k 209 209 210 # solve quadratic phi (1-phi) = scale/(1e-4 8 pi drho^2 xi^3)210 # solve quadratic phi (1-phi) = xi/(1e-4 8 pi drho^2 c2) 211 211 # favour volume fraction in [0, 0.5] 212 c = xi /(p_c2*1e-4*8.0*math.pi*drho**2)212 c = xi / (1e-4 * 8.0 * math.pi * drho**2 * p_c2) 213 213 phi = 0.5 - math.sqrt(0.25 - c) 214 214
Note: See TracChangeset
for help on using the changeset viewer.