Changes in sasmodels/models/hollow_rectangular_prism.py [71b751d:d277229] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hollow_rectangular_prism.py
r71b751d rd277229 143 143 source = ["lib/gauss76.c", "hollow_rectangular_prism.c"] 144 144 have_Fq = True 145 146 def ER(length_a, b2a_ratio, c2a_ratio, thickness): 147 """ 148 Return equivalent radius (ER) 149 thickness parameter not used 150 """ 151 b_side = length_a * b2a_ratio 152 c_side = length_a * c2a_ratio 153 154 # surface average radius (rough approximation) 155 surf_rad = sqrt(length_a * b_side / pi) 156 157 ddd = 0.75 * surf_rad * (2 * surf_rad * c_side + (c_side + surf_rad) * (c_side + pi * surf_rad)) 158 return 0.5 * (ddd) ** (1. / 3.) 145 effective_radius_type = ["equivalent sphere","half length_a", "half length_b", "half length_c", 146 "equivalent outer circular cross-section","half ab diagonal","half diagonal"] 147 148 #def ER(length_a, b2a_ratio, c2a_ratio, thickness): 149 # """ 150 # Return equivalent radius (ER) 151 # thickness parameter not used 152 # """ 153 # b_side = length_a * b2a_ratio 154 # c_side = length_a * c2a_ratio 155 # 156 # # surface average radius (rough approximation) 157 # surf_rad = sqrt(length_a * b_side / pi) 158 # 159 # ddd = 0.75 * surf_rad * (2 * surf_rad * c_side + (c_side + surf_rad) * (c_side + pi * surf_rad)) 160 # return 0.5 * (ddd) ** (1. / 3.) 159 161 160 162 def VR(length_a, b2a_ratio, c2a_ratio, thickness):
Note: See TracChangeset
for help on using the changeset viewer.