Changeset 40a87fa in sasmodels for sasmodels/models/hardsphere.py
- Timestamp:
- Aug 8, 2016 11:24:11 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 2472141
- Parents:
- 2d65d51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hardsphere.py
r7f1ee79 r40a87fa 3 3 spherical particles interacting through hard sphere (excluded volume) 4 4 interactions. 5 May be a reasonable approximation for other shapes of particles that 6 freely rotate, and for moderately polydisperse systems. Though strictly 5 May be a reasonable approximation for other shapes of particles that 6 freely rotate, and for moderately polydisperse systems. Though strictly 7 7 the maths needs to be modified (no \Beta(Q) correction yet in sasview). 8 8 … … 13 13 used in the form factor $P(q)$ that this $S(q)$ is combined with. 14 14 15 For numerical stability the computation uses a Taylor series expansion 15 For numerical stability the computation uses a Taylor series expansion 16 16 at very small $qR$, there may be a very minor glitch at the transition point 17 17 in some circumstances. … … 156 156 # VR defaults to 1.0 157 157 158 demo = dict(radius_effective=200, volfraction=0.2, radius_effective_pd=0.1, radius_effective_pd_n=40) 158 demo = dict(radius_effective=200, volfraction=0.2, 159 radius_effective_pd=0.1, radius_effective_pd_n=40) 159 160 # Q=0.001 is in the Taylor series, low Q part, so add Q=0.1, assuming double precision sasview is correct 160 161 tests = [ 161 [ {'scale': 1.0, 'background' : 0.0, 'radius_effective' : 50.0, 'volfraction' : 0.2, 162 'radius_effective_pd' : 0}, [0.001,0.1], [0.209128,0.930587]] 162 [ {'scale': 1.0, 'background' : 0.0, 'radius_effective' : 50.0, 163 'volfraction' : 0.2, 'radius_effective_pd' : 0}, 164 [0.001,0.1], [0.209128,0.930587]], 163 165 ] 164 # ADDED by: RKH ON: 16Mar2016 using equations from FISH as better than orig sasview, see notes above. Added Taylor expansions at small Q, 166 # ADDED by: RKH ON: 16Mar2016 using equations from FISH as better than orig sasview, see notes above. Added Taylor expansions at small Q,
Note: See TracChangeset
for help on using the changeset viewer.