Changeset 2d81cfe in sasmodels for sasmodels/models/stacked_disks.py
- Timestamp:
- Nov 29, 2017 11:13:23 AM (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/stacked_disks.py
r110f69c r2d81cfe 10 10 distribution. As such the normalization of this "composite" form factor is 11 11 relative to the individual disk volume, not the volume of the stack of disks. 12 This model is appropriate for example for non non exfoliated clay particles such13 as Laponite.12 This model is appropriate for example for non non exfoliated clay particles 13 such as Laponite. 14 14 15 15 .. figure:: img/stacked_disks_geometry.png … … 32 32 \Delta \rho_i = \rho_i - \rho_\text{solvent} 33 33 34 and $N$ is the number of individual (single) discs per unit volume, $\alpha$ is35 the angle between the axis of the disc and $q$, and $V_t$ and $V_c$ are the34 and $N$ is the number of individual (single) discs per unit volume, $\alpha$ 35 is the angle between the axis of the disc and $q$, and $V_t$ and $V_c$ are the 36 36 total volume and the core volume of a single disc, respectively, and 37 37 … … 110 110 """ 111 111 112 import numpy as np 112 113 from numpy import inf, sin, cos, pi 113 114 … … 146 147 147 148 def random(): 148 import numpy as np149 149 radius = 10**np.random.uniform(1, 4.7) 150 150 total_stack = 10**np.random.uniform(1, 4.7) … … 212 212 'scale': 0.01, 213 213 'background': 0.001, 214 # }, 0.001, 5065.12793824], n_stacking=1 not 5 ? slight change in value here 11jan2017, check other cpu types 215 # }, 0.001, 5075.11570493], 214 # n_stacking=1 not 5 ? slight change in value here 11jan2017, 215 # check other cpu types 216 #}, 0.001, 5065.12793824], 217 #}, 0.001, 5075.11570493], 216 218 }, 0.001, 25325.635693], 217 219 [{'thick_core': 10.0, … … 240 242 'scale': 0.01, 241 243 'background': 0.001, 242 # }, 0.164, 0.0127673597265], n_stacking=1 not 5 ? slight change in value here 11jan2017, check other cpu types 243 # }, 0.164, 0.01480812968], 244 # n_stacking=1 not 5 ? slight change in value here 11jan2017, 245 # check other cpu types 246 #}, 0.164, 0.0127673597265], 247 #}, 0.164, 0.01480812968], 244 248 }, 0.164, 0.0598367986509], 245 249 … … 256 260 'scale': 0.01, 257 261 'background': 0.001, 258 # second test here was at q=90, changed it to q=5, note I(q) is then just value of flat background 262 # second test here was at q=90, changed it to q=5, 263 # note I(q) is then just value of flat background 259 264 }, [0.001, 5.0], [5075.12, 0.001]], 260 265 … … 272 277 'background': 0.001, 273 278 }, ([0.4, 0.5]), [0.00105074, 0.00121761]], 274 # [{'thick_core': 10.0, 275 # 'thick_layer': 15.0, 276 # 'radius': 3000.0, 277 # 'n_stacking': 1.0, 278 # 'sigma_d': 0.0, 279 # 'sld_core': 4.0, 280 # 'sld_layer': -0.4, 281 # 'sld_solvent': 5.0, 282 # 'theta': 90.0, 283 # 'phi': 20.0, 284 # 'scale': 0.01, 285 # 'background': 0.001, 286 # 2017-05-18 PAK temporarily suppress output of qx,qy test; j1 is not accurate for large qr 287 # }, (qx, qy), 0.0341738733124], 288 # }, (qx, qy), None], 279 #[{'thick_core': 10.0, 280 # 'thick_layer': 15.0, 281 # 'radius': 3000.0, 282 # 'n_stacking': 1.0, 283 # 'sigma_d': 0.0, 284 # 'sld_core': 4.0, 285 # 'sld_layer': -0.4, 286 # 'sld_solvent': 5.0, 287 # 'theta': 90.0, 288 # 'phi': 20.0, 289 # 'scale': 0.01, 290 # 'background': 0.001, 291 # 2017-05-18 PAK temporarily suppress output of qx,qy test; j1 is 292 # not accurate for large qr 293 # }, (qx, qy), 0.0341738733124], 294 # }, (qx, qy), None], 289 295 290 296 [{'thick_core': 10.0,
Note: See TracChangeset
for help on using the changeset viewer.