Changeset ee60aa7 in sasmodels for sasmodels/models/elliptical_cylinder.py
- Timestamp:
- Sep 10, 2018 4:16:46 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- d299327
- Parents:
- 3f818b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/elliptical_cylinder.py
r2cc8aa2 ree60aa7 123 123 source = ["lib/polevl.c", "lib/sas_J1.c", "lib/gauss76.c", "elliptical_cylinder.c"] 124 124 have_Fq = True 125 effective_radius_type = ["equivalent sphere","average radius","min radius","max radius", 126 "equivalent circular cross-section","half length","half min dimension","half max dimension","half diagonal"] 125 effective_radius_type = [ 126 "equivalent sphere", "average radius", "min radius", "max radius", 127 "equivalent circular cross-section", 128 "half length", "half min dimension", "half max dimension", "half diagonal", 129 ] 127 130 128 131 demo = dict(scale=1, background=0, radius_minor=100, axis_ratio=1.5, length=400.0, 129 132 sld=4.0, sld_solvent=1.0, theta=10.0, phi=20, psi=30, 130 133 theta_pd=10, phi_pd=2, psi_pd=3) 131 132 #def ER(radius_minor, axis_ratio, length):133 # """134 # Equivalent radius135 # @param radius_minor: Ellipse minor radius136 # @param axis_ratio: Ratio of major radius over minor radius137 # @param length: Length of the cylinder138 # """139 # radius = sqrt(radius_minor * radius_minor * axis_ratio)140 # ddd = 0.75 * radius * (2 * radius * length141 # + (length + radius) * (length + pi * radius))142 # return 0.5 * (ddd) ** (1. / 3.)143 134 144 135 def random():
Note: See TracChangeset
for help on using the changeset viewer.