Changeset 76e5041 in sasmodels
- Timestamp:
- Mar 21, 2016 7:07:41 AM (9 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
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/parallelepiped.py
r6ef4293 r76e5041 151 151 ---------- 152 152 153 None. 153 P Mittelbach and G Porod, *Acta Physica Austriaca*, 14 (1961) 185-211 154 155 R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 154 156 """ 155 157 … … 160 162 title = "Rectangular parallelepiped with uniform scattering length density." 161 163 description = """ 162 I(q)= scale*V*(sld - s olvent_sld)^2*P(q,alpha)+background164 I(q)= scale*V*(sld - sld_solvent)^2*P(q,alpha)+background 163 165 P(q,alpha) = integral from 0 to 1 of ... 164 166 phi(mu*sqrt(1-sigma^2),a) * S(mu*c*sigma/2)^2 * dsigma … … 177 179 parameters = [["sld", "1e-6/Ang^2", 4, [-inf, inf], "", 178 180 "Parallelepiped scattering length density"], 179 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "",181 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 180 182 "Solvent scattering length density"], 181 183 ["a_side", "Ang", 35, [0, inf], "volume", … … 210 212 # parameters for demo 211 213 demo = dict(scale=1, background=0, 212 sld=6.3e-6, s olvent_sld=1.0e-6,214 sld=6.3e-6, sld_solvent=1.0e-6, 213 215 a_side=35, b_side=75, c_side=400, 214 216 theta=45, phi=30, psi=15, … … 225 227 oldpars = dict(theta='parallel_theta', phi='parallel_phi', psi='parallel_psi', 226 228 a_side='short_a', b_side='short_b', c_side='long_c', 227 sld='sldPipe', s olvent_sld='sldSolv')229 sld='sldPipe', sld_solvent='sldSolv') 228 230 229 231 -
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.