Changeset ee60aa7 in sasmodels for sasmodels/models/vesicle.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/vesicle.py
r2cc8aa2 ree60aa7 102 102 effective_radius_type = ["outer radius"] 103 103 104 #def ER(radius, thickness):105 # '''106 # returns the effective radius used in the S*P calculation107 #108 # :param radius: core radius109 # :param thickness: shell thickness110 # '''111 # return radius + thickness112 113 def VR(radius, thickness):114 '''115 returns the volumes of the shell and of the whole sphere including the116 core plus shell - is used to normalize when including polydispersity.117 118 :param radius: core radius119 :param thickness: shell thickness120 :return whole: volume of core and shell121 :return whole-core: volume of the shell122 '''123 124 whole = 4./3. * pi * (radius + thickness)**3125 core = 4./3. * pi * radius**3126 return whole, whole - core127 128 104 def random(): 129 105 total_radius = 10**np.random.uniform(1.3, 5)
Note: See TracChangeset
for help on using the changeset viewer.