Changeset d277229 in sasmodels for sasmodels/models/elliptical_cylinder.py
- Timestamp:
- Sep 7, 2018 5:29:38 AM (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:
- 3c60146
- Parents:
- 2a12351b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/elliptical_cylinder.py
r71b751d rd277229 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 127 126 128 demo = dict(scale=1, background=0, radius_minor=100, axis_ratio=1.5, length=400.0, … … 128 130 theta_pd=10, phi_pd=2, psi_pd=3) 129 131 130 def ER(radius_minor, axis_ratio, length):131 """132 Equivalent radius133 @param radius_minor: Ellipse minor radius134 @param axis_ratio: Ratio of major radius over minor radius135 @param length: Length of the cylinder136 """137 radius = sqrt(radius_minor * radius_minor * axis_ratio)138 ddd = 0.75 * radius * (2 * radius * length139 + (length + radius) * (length + pi * radius))140 return 0.5 * (ddd) ** (1. / 3.)132 #def ER(radius_minor, axis_ratio, length): 133 # """ 134 # Equivalent radius 135 # @param radius_minor: Ellipse minor radius 136 # @param axis_ratio: Ratio of major radius over minor radius 137 # @param length: Length of the cylinder 138 # """ 139 # radius = sqrt(radius_minor * radius_minor * axis_ratio) 140 # ddd = 0.75 * radius * (2 * radius * length 141 # + (length + radius) * (length + pi * radius)) 142 # return 0.5 * (ddd) ** (1. / 3.) 141 143 142 144 def random():
Note: See TracChangeset
for help on using the changeset viewer.