Changeset ee60aa7 in sasmodels for sasmodels/models/vesicle.c
- 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.c
rd277229 ree60aa7 1 // TODO: interface to form_volume/shell_volume not yet settled 2 static double 3 shell_volume(double *total, double radius, double thickness) 4 { 5 //note that for the vesicle model, the volume is ONLY the shell volume 6 *total = M_4PI_3 * cube(radius+thickness); 7 return *total - M_4PI_3*cube(radius); 8 } 9 1 10 static double 2 11 form_volume(double radius, double thickness) 3 12 { 4 13 //note that for the vesicle model, the volume is ONLY the shell volume 5 return M_4PI_3*(cube(radius+thickness) - cube(radius)); 14 double total; 15 return shell_volume(&total, radius, thickness); 6 16 } 7 17 … … 9 19 effective_radius(int mode, double radius, double thickness) 10 20 { 21 // case 1: outer radius 11 22 return radius + thickness; 12 23 }
Note: See TracChangeset
for help on using the changeset viewer.