Changeset e44432d in sasmodels for sasmodels/models/vesicle.c
- Timestamp:
- Oct 19, 2018 5:46:26 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:
- be43e39
- Parents:
- 2586ab72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/vesicle.c
ree60aa7 re44432d 1 // TODO: interface to form_volume/shell_volume not yet settled2 1 static double 3 shell_volume(double *total, doubleradius, double thickness)2 shell_volume(double radius, double thickness) 4 3 { 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); 4 return M_4PI_3 * (cube(radius+thickness) - cube(radius)); 8 5 } 9 6 … … 11 8 form_volume(double radius, double thickness) 12 9 { 13 //note that for the vesicle model, the volume is ONLY the shell volume 14 double total; 15 return shell_volume(&total, radius, thickness); 10 return M_4PI_3 * cube(radius+thickness); 16 11 } 12 17 13 18 14 static double
Note: See TracChangeset
for help on using the changeset viewer.