Changeset 40a87fa in sasmodels for sasmodels/models/hayter_msa.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/hayter_msa.py
rd2bb604 r40a87fa 16 16 there is no provision for entering the ionic strength directly nor for use 17 17 of any multivalent salts, though it should be possible to simulate the effect 18 of this by increasing the salt concentration. The counterions are also assumed to19 be monovalent.18 of this by increasing the salt concentration. The counterions are also 19 assumed to be monovalent. 20 20 21 21 In sasview the effective radius may be calculated from the parameters 22 22 used in the form factor $P(q)$ that this $S(q)$ is combined with. 23 23 24 The computation uses a Taylor series expansion at very small rescaled $qR$, to 25 avoid some serious rounding error issues, this may result in a minor artefact 24 The computation uses a Taylor series expansion at very small rescaled $qR$, to 25 avoid some serious rounding error issues, this may result in a minor artefact 26 26 in the transition region under some circumstances. 27 27 … … 103 103 radius_effective_pd_n=40) 104 104 # 105 # attempt to use same values as old sasview unit test at Q=.001 was 0.0712928, 106 # then add lots new ones assuming values from new model are OK, need some low Q values to test the small Q Taylor expansion 105 # attempt to use same values as old sasview unit test at Q=.001 was 0.0712928, 106 # then add lots new ones assuming values from new model are OK, need some 107 # low Q values to test the small Q Taylor expansion 107 108 tests = [ 108 109 [{'scale': 1.0, … … 115 116 'dielectconst': 78.0, 116 117 'radius_effective_pd': 0}, 117 [0.00001, 0.0010,0.01,0.075], [0.0711646,0.0712928,0.0847006,1.07150]],118 [0.00001, 0.0010, 0.01, 0.075], [0.0711646, 0.0712928, 0.0847006, 1.07150]], 118 119 [{'scale': 1.0, 119 120 'background': 0.0, … … 126 127 'radius_effective_pd': 0.1, 127 128 'radius_effective_pd_n': 40}, 128 [0.00001, 0.0010,0.01,0.075], [0.450272,0.450420,0.465116,1.039625]]129 [0.00001, 0.0010, 0.01, 0.075], [0.450272, 0.450420, 0.465116, 1.039625]] 129 130 ] 130 131 # ADDED by: RKH ON: 16Mar2016 converted from sasview, new Taylor expansion at smallest rescaled Q
Note: See TracChangeset
for help on using the changeset viewer.