Changeset 2d81cfe in sasmodels for sasmodels/models/mass_fractal.py
- Timestamp:
- Nov 29, 2017 1:13:23 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/mass_fractal.py
r4553dae r2d81cfe 51 51 D Mildner and P Hall, *J. Phys. D: Appl. Phys.*, 52 52 19 (1986) 1535-1545 Equation(9) 53 54 55 53 """ 56 54 55 import numpy as np 57 56 from numpy import inf 58 57 … … 89 88 90 89 def random(): 91 import numpy as np92 90 radius = 10**np.random.uniform(0.7, 4) 93 91 cutoff_length = 10**np.random.uniform(0.7, 2)*radius 94 92 # TODO: fractal dimension should range from 1 to 6 95 93 fractal_dim_mass = 2*np.random.beta(3, 4) + 1 96 Vf= 10**np.random.uniform(-4, -1)94 #volfrac = 10**np.random.uniform(-4, -1) 97 95 pars = dict( 98 96 #background=0, 99 scale=1, #1e5* Vf/radius**(fractal_dim_mass),97 scale=1, #1e5*volfrac/radius**(fractal_dim_mass), 100 98 radius=radius, 101 99 cutoff_length=cutoff_length,
Note: See TracChangeset
for help on using the changeset viewer.