Changeset 841753c in sasmodels for sasmodels/models/pearl_necklace.py
- Timestamp:
- Jan 28, 2016 5:42:34 PM (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:
- d4666ca
- Parents:
- 69ec80f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/pearl_necklace.py
rcf404cb r841753c 1 1 r""" 2 This model provides the form factor for a pearl necklace composed of two 3 elements: *N* pearls (homogeneous spheres of radius *R*) freely jointed by *M* 2 This model provides the form factor for a pearl necklace composed of two 3 elements: *N* pearls (homogeneous spheres of radius *R*) freely jointed by *M* 4 4 rods (like strings - with a total mass *Mw* = *M* \* *m*\ :sub:`r` + *N* \* *m*\ 5 :sub:`s`, and the string segment length (or edge separation) *l* 5 :sub:`s`, and the string segment length (or edge separation) *l* 6 6 (= *A* - 2\ *R*)). *A* is the center-to-center pearl separation distance. 7 7 … … 13 13 ---------- 14 14 15 The output of the scattering intensity function for the PearlNecklaceModel is 15 The output of the scattering intensity function for the PearlNecklaceModel is 16 16 given by (Schweins, 2004) 17 17 … … 37 37 \beta(q) &= \frac{\int_{qR}^{q(A-R)}\frac{sin(t)}{t}dt}{ql} 38 38 39 where the mass *m*\ :sub:`i` is (SLD\ :sub:`i` - SLD\ :sub:`solvent`) \* 39 where the mass *m*\ :sub:`i` is (SLD\ :sub:`i` - SLD\ :sub:`solvent`) \* 40 40 (volume of the *N* pearls/rods). *V* is the total volume of the necklace. 41 41 42 The 2D scattering intensity is the same as $P(q)$ above, regardless of the 42 The 2D scattering intensity is the same as $P(q)$ above, regardless of the 43 43 orientation of the *q* vector. 44 44 … … 54 54 REFERENCE 55 55 56 R Schweins and K Huber, *Particle Scattering Factor of Pearl Necklace Chains*, 56 R Schweins and K Huber, *Particle Scattering Factor of Pearl Necklace Chains*, 57 57 *Macromol. Symp.* 211 (2004) 25-42 2004 58 58 """ … … 79 79 80 80 # ["name", "units", default, [lower, upper], "type","description"], 81 parameters = [["radius", "Angstrom", 80.0, [0, inf], "volume", 81 parameters = [["radius", "Angstrom", 80.0, [0, inf], "volume", 82 82 "Mean radius of the chained spheres"], 83 ["edge_separation", "Angstrom", 350.0, [0, inf], "volume", 83 ["edge_separation", "Angstrom", 350.0, [0, inf], "volume", 84 84 "Mean separation of chained particles"], 85 ["string_thickness", "Angstrom", 2.5, [0, inf], "volume", 85 ["string_thickness", "Angstrom", 2.5, [0, inf], "volume", 86 86 "Thickness of the chain linkage"], 87 ["number_of_pearls", "none", 3, [0, inf], "volume", 87 ["number_of_pearls", "none", 3, [0, inf], "volume", 88 88 "Mean number of pearls in each necklace"], 89 ["sld", "Angstrom^2", 1.0, [-inf, inf], "", 89 ["sld", "Angstrom^2", 1.0, [-inf, inf], "", 90 90 "Scattering length density of the chained spheres"], 91 ["string_sld", "Angstrom^2", 1.0, [-inf, inf], "", 91 ["string_sld", "Angstrom^2", 1.0, [-inf, inf], "", 92 92 "Scattering length density of the chain linkage"], 93 ["solvent_sld", "Angstrom^2", 6.3, [-inf, inf], "", 93 ["solvent_sld", "Angstrom^2", 6.3, [-inf, inf], "", 94 94 "Scattering length density of the solvent"], 95 95 ] 96 96 97 97 source = ["lib/Si.c", "pearl_necklace.c"] … … 110 110 # names and the target sasview model name. 111 111 oldname = 'PearlNecklaceModel' 112 oldpars = dict(scale='scale', background='background',radius='radius',112 oldpars = dict(scale='scale', background='background', radius='radius', 113 113 number_of_pearls='num_pearls', solvent_sld='sld_solv', 114 114 string_thickness='thick_string', sld='sld_pearl',
Note: See TracChangeset
for help on using the changeset viewer.