Changeset 76e5041 in sasmodels for sasmodels/models/rectangular_prism.py
- Timestamp:
- Mar 21, 2016 5:07:41 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:
- 3d8283b
- Parents:
- 8e0d974
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/rectangular_prism.py
r43b7eea r76e5041 9 9 The only difference is that the way the relevant 10 10 parameters are defined here (*a*, *b/a*, *c/a* instead of *a*, *b*, *c*) 11 allows to usepolydispersity with this model while keeping the shape of11 which allows use of polydispersity with this model while keeping the shape of 12 12 the prism (e.g. setting *b/a* = 1 and *c/a* = 1 and applying polydispersity 13 13 to *a* will generate a distribution of cubes of different sizes). … … 86 86 title = "Rectangular parallelepiped with uniform scattering length density." 87 87 description = """ 88 I(q)= scale*V*(sld - s olvent_sld)^2*P(q,theta,phi)+background88 I(q)= scale*V*(sld - sld_solvent)^2*P(q,theta,phi)+background 89 89 P(q,theta,phi) = (2/pi) * double integral from 0 to pi/2 of ... 90 90 AP^2(q)*sin(theta)*dtheta*dphi … … 97 97 parameters = [["sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", 98 98 "Parallelepiped scattering length density"], 99 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "",99 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 100 100 "Solvent scattering length density"], 101 101 ["a_side", "Ang", 35, [0, inf], "volume", … … 125 125 # parameters for demo 126 126 demo = dict(scale=1, background=0, 127 sld=6.3e-6, s olvent_sld=1.0e-6,127 sld=6.3e-6, sld_solvent=1.0e-6, 128 128 a_side=35, b2a_ratio=1, c2a_ratio=1, 129 129 a_side_pd=0.1, a_side_pd_n=10, … … 135 135 oldname = 'RectangularPrismModel' 136 136 oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio', 137 sld='sldPipe', s olvent_sld='sldSolv')137 sld='sldPipe', sld_solvent='sldSolv') 138 138 139 139 tests = [[{}, 0.2, 0.375248406825],
Note: See TracChangeset
for help on using the changeset viewer.