Changeset c036ddb in sasmodels for sasmodels/models/sphere.py
- Timestamp:
- Aug 7, 2018 8:45:45 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:
- 7e923c2
- Parents:
- 7b0abf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/sphere.py
r01c8d9e rc036ddb 67 67 ] 68 68 69 source = ["lib/sas_3j1x_x.c", "lib/sphere_form.c" , "sphere.c"]69 source = ["lib/sas_3j1x_x.c", "lib/sphere_form.c"] 70 70 71 c_code = """ 72 static double form_volume(double radius) 73 { 74 return sphere_volume(radius); 75 } 76 77 static void Fq(double q, double *F1,double *F2, double sld, double solvent_sld, double radius) 78 { 79 const double fq = sas_3j1x_x(q*radius); 80 const double contrast = (sld - solvent_sld); 81 const double form = 1e-2 * contrast * sphere_volume(radius) * fq; 82 *F1 = form; 83 *F2 = form*form; 84 } 85 """ 86 87 # TODO: figure this out by inspection 88 have_Fq = True 71 89 72 90 def ER(radius):
Note: See TracChangeset
for help on using the changeset viewer.