Changeset e44432d in sasmodels for sasmodels/models/hollow_rectangular_prism_thin_walls.c
- Timestamp:
- Oct 19, 2018 3:46:26 PM (5 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/hollow_rectangular_prism_thin_walls.c
ree60aa7 re44432d 1 // TODO: interface to form_volume/shell_volume not yet settled2 1 static double 3 shell_volume(double *total, doublelength_a, double b2a_ratio, double c2a_ratio)2 shell_volume(double length_a, double b2a_ratio, double c2a_ratio) 4 3 { 5 double length_b = length_a * b2a_ratio; 6 double length_c = length_a * c2a_ratio; 7 double vol_shell = 2.0 * (length_a*length_b + length_a*length_c + length_b*length_c); 8 *total = length_a * length_b * length_c; 9 return vol_shell; 4 const double length_b = length_a * b2a_ratio; 5 const double length_c = length_a * c2a_ratio; 6 const double shell_volume = 2.0 * (length_a*length_b + length_a*length_c + length_b*length_c); 7 return shell_volume; 10 8 } 11 9 … … 13 11 form_volume(double length_a, double b2a_ratio, double c2a_ratio) 14 12 { 15 double total; 16 return shell_volume(&total, length_a, b2a_ratio, c2a_ratio); 13 const double length_b = length_a * b2a_ratio; 14 const double length_c = length_a * c2a_ratio; 15 const double form_volume = length_a * length_b * length_c; 16 return form_volume; 17 17 } 18 19 18 20 19 static double
Note: See TracChangeset
for help on using the changeset viewer.