Changeset f4cf580 in sasmodels for sasmodels/models/capped_cylinder.py
- Timestamp:
- Sep 2, 2014 11:15:40 AM (10 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:
- 87985ca
- Parents:
- 5d4777d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/capped_cylinder.py
r5d4777d rf4cf580 1 1 r""" 2 2 Calculates the scattering from a cylinder with spherical section end-caps. 3 This model simply becomes the `convex_lens`_when the length of the cylinder3 This model simply becomes the a convex lens when the length of the cylinder 4 4 $L=0$, that is, a sphereocylinder with end caps that have a radius larger 5 5 than that of the cylinder and the center of the end cap radius lies within … … 128 128 [ "radius", "Ang", 20, [0, inf], "volume", 129 129 "Cylinder radius" ], 130 # TODO: use an expression for cap radius with fixed bounds. 131 # The current form requires cap radius R bigger than cylinder radius r. 132 # Could instead use R/r in [1,inf], r/R in [0,1], or the angle between 133 # cylinder and cap in [0,90]. The problem is similar for the barbell 134 # model. Propose r/R in [0,1] in both cases, with the model specifying 135 # cylinder radius in the capped cylinder model and sphere radius in the 136 # barbell model. This leads to the natural value of zero for no cap 137 # in the capped cylinder, and zero for no bar in the barbell model. In 138 # both models, one would be a pill. 130 139 [ "cap_radius", "Ang", 20, [0, inf], "volume", 131 140 "Cap radius" ],
Note: See TracChangeset
for help on using the changeset viewer.