Changeset 3d8283b in sasmodels
- Timestamp:
- Mar 21, 2016 5:57:51 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:
- 3a45c2c, 02a0920
- Parents:
- 76e5041
- Location:
- sasmodels/models
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hollow_rectangular_prism.py
r43b7eea r3d8283b 88 88 title = "Hollow rectangular parallelepiped with uniform scattering length density." 89 89 description = """ 90 I(q)= scale*V*(sld - s olvent_sld)^2*P(q,theta,phi)+background90 I(q)= scale*V*(sld - sld_solvent)^2*P(q,theta,phi)+background 91 91 P(q,theta,phi) = (2/pi/V^2) * double integral from 0 to pi/2 of ... 92 92 (AP1-AP2)^2(q)*sin(theta)*dtheta*dphi … … 103 103 parameters = [["sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", 104 104 "Parallelepiped scattering length density"], 105 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "",105 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 106 106 "Solvent scattering length density"], 107 107 ["a_side", "Ang", 35, [0, inf], "volume", … … 148 148 # parameters for demo 149 149 demo = dict(scale=1, background=0, 150 sld=6.3e-6, s olvent_sld=1.0e-6,150 sld=6.3e-6, sld_solvent=1.0e-6, 151 151 a_side=35, b2a_ratio=1, c2a_ratio=1, thickness=1, 152 152 a_side_pd=0.1, a_side_pd_n=10, … … 158 158 oldname = 'RectangularHollowPrismModel' 159 159 oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio', 160 thickness='thickness', sld='sldPipe', s olvent_sld='sldSolv')160 thickness='thickness', sld='sldPipe', sld_solvent='sldSolv') 161 161 162 162 tests = [[{}, 0.2, 0.76687283098], -
sasmodels/models/hollow_rectangular_prism_thin_walls.py
r43b7eea r3d8283b 77 77 from numpy import pi, inf, sqrt 78 78 79 name = "hollow_rectangular_prism_ infinitely_thin_walls"80 title = "Hollow rectangular parallelepiped with infinitelythin walls."79 name = "hollow_rectangular_prism_thin_walls" 80 title = "Hollow rectangular parallelepiped with thin walls." 81 81 description = """ 82 I(q)= scale*V*(sld - s olvent_sld)^2*P(q)+background82 I(q)= scale*V*(sld - sld_solvent)^2*P(q)+background 83 83 with P(q) being the form factor corresponding to a hollow rectangular 84 84 parallelepiped with infinitely thin walls. … … 89 89 parameters = [["sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", 90 90 "Parallelepiped scattering length density"], 91 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "",91 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 92 92 "Solvent scattering length density"], 93 93 ["a_side", "Ang", 35, [0, inf], "volume", … … 99 99 ] 100 100 101 source = ["lib/gauss76.c", "hollow_rectangular_prism_ infinitely_thin_walls.c"]101 source = ["lib/gauss76.c", "hollow_rectangular_prism_thin_walls.c"] 102 102 103 103 def ER(a_side, b2a_ratio, c2a_ratio): … … 127 127 # parameters for demo 128 128 demo = dict(scale=1, background=0, 129 sld=6.3e-6, s olvent_sld=1.0e-6,129 sld=6.3e-6, sld_solvent=1.0e-6, 130 130 a_side=35, b2a_ratio=1, c2a_ratio=1, 131 131 a_side_pd=0.1, a_side_pd_n=10, … … 137 137 oldname = 'RectangularHollowPrismInfThinWallsModel' 138 138 oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio', 139 sld='sldPipe', s olvent_sld='sldSolv')139 sld='sldPipe', sld_solvent='sldSolv') 140 140 141 141 tests = [[{}, 0.2, 0.837719188592],
Note: See TracChangeset
for help on using the changeset viewer.