Changeset dcdf29d in sasmodels for sasmodels/models/barbell.py
- Timestamp:
- Feb 2, 2016 5:51:27 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:
- 7f47777, 8007311
- Parents:
- 577912b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/barbell.py
reb69cce rdcdf29d 100 100 title = "Cylinder with spherical end caps" 101 101 description = """ 102 Calculates the scattering from a barbell-shaped cylinder. That is a sphereocylinder with spherical end caps that have a radius larger than that of the cylinder and the center of the end cap 103 radius lies outside of the cylinder. 104 Note: As the length of cylinder(bar) -->0,it becomes a dumbbell. And when rad_bar = rad_bell, it is a spherocylinder. 105 It must be that rad_bar <(=) rad_bell. 102 Calculates the scattering from a barbell-shaped cylinder. 103 That is a sphereocylinder with spherical end caps that have a radius larger 104 than that of the cylinder and the center of the end cap radius lies outside 105 of the cylinder. 106 Note: As the length of cylinder(bar) -->0,it becomes a dumbbell. And when 107 rad_bar = rad_bell, it is a spherocylinder. 108 It must be that rad_bar <(=) rad_bell. 106 109 """ 107 110 category = "shape:cylinder" 108 111 # pylint: disable=bad-whitespace, line-too-long 109 112 # ["name", "units", default, [lower, upper], "type","description"], 110 parameters = [["sld", "4e-6/Ang^2", 4, [-inf, inf], "","Barbell scattering length density"],111 ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "","Solvent scattering length density"],112 ["bell_radius", "Ang", 40, [0, inf], "volume","Spherical bell radius"],113 ["radius", "Ang", 20, [0, inf], "volume","Cylindrical bar radius"],114 ["length", "Ang", 400, [0, inf], "volume","Cylinder bar length"],115 ["theta", "degrees",60, [-inf, inf], "orientation", "In plane angle"],116 ["phi", "degrees",60, [-inf, inf], "orientation", "Out of plane angle"],113 parameters = [["sld", "4e-6/Ang^2", 4, [-inf, inf], "", "Barbell scattering length density"], 114 ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 115 ["bell_radius", "Ang", 40, [0, inf], "volume", "Spherical bell radius"], 116 ["radius", "Ang", 20, [0, inf], "volume", "Cylindrical bar radius"], 117 ["length", "Ang", 400, [0, inf], "volume", "Cylinder bar length"], 118 ["theta", "degrees", 60, [-inf, inf], "orientation", "In plane angle"], 119 ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"], 117 120 ] 121 # pylint: enable=bad-whitespace, line-too-long 118 122 119 123 source = ["lib/J1.c", "lib/gauss76.c", "barbell.c"]
Note: See TracChangeset
for help on using the changeset viewer.