Changeset 6d5601c in sasmodels
- Timestamp:
- Oct 25, 2018 5:03:37 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:
- 304c775
- Parents:
- 149eb53
- Location:
- sasmodels/models
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/barbell.c
ree60aa7 r6d5601c 66 66 { 67 67 const double vol_barbell = form_volume(radius_bell,radius,length); 68 return cbrt( 0.75*vol_barbell/M_PI);68 return cbrt(vol_barbell/M_4PI_3); 69 69 } 70 70 -
sasmodels/models/capped_cylinder.c
ree60aa7 r6d5601c 88 88 { 89 89 const double vol_cappedcyl = form_volume(radius,radius_cap,length); 90 return cbrt( 0.75*vol_cappedcyl/M_PI);90 return cbrt(vol_cappedcyl/M_4PI_3); 91 91 } 92 92 -
sasmodels/models/core_shell_bicelle.c
ree60aa7 r6d5601c 40 40 { 41 41 const double volume_bicelle = form_volume(radius,thick_rim,thick_face,length); 42 return cbrt( 0.75*volume_bicelle/M_PI);42 return cbrt(volume_bicelle/M_4PI_3); 43 43 } 44 44 -
sasmodels/models/core_shell_bicelle_elliptical.c
ree60aa7 r6d5601c 14 14 { 15 15 const double volume_bicelle = form_volume(r_minor, x_core, thick_rim,thick_face,length); 16 return cbrt( 0.75*volume_bicelle/M_PI);16 return cbrt(volume_bicelle/M_4PI_3); 17 17 } 18 18 -
sasmodels/models/core_shell_bicelle_elliptical_belt_rough.c
rd299327 r6d5601c 15 15 { 16 16 const double volume_bicelle = form_volume(r_minor, x_core, thick_rim,thick_face,length); 17 return cbrt( 0.75*volume_bicelle/M_PI);17 return cbrt(volume_bicelle/M_4PI_3); 18 18 } 19 19 -
sasmodels/models/core_shell_cylinder.c
ree60aa7 r6d5601c 17 17 { 18 18 const double volume_outer_cyl = form_volume(radius,thickness,length); 19 return cbrt( 0.75*volume_outer_cyl/M_PI);19 return cbrt(volume_outer_cyl/M_4PI_3); 20 20 } 21 21 -
sasmodels/models/core_shell_ellipsoid.c
ree60aa7 r6d5601c 42 42 { 43 43 const double volume_ellipsoid = form_volume(radius_equat_core, x_core, thick_shell, x_polar_shell); 44 return cbrt( 0.75*volume_ellipsoid/M_PI);44 return cbrt(volume_ellipsoid/M_4PI_3); 45 45 } 46 46 -
sasmodels/models/cylinder.c
ree60aa7 r6d5601c 16 16 radius_from_volume(double radius, double length) 17 17 { 18 return cbrt( 0.75*radius*radius*length);18 return cbrt(M_PI*radius*radius*length/M_4PI_3); 19 19 } 20 20 -
sasmodels/models/elliptical_cylinder.c
ree60aa7 r6d5601c 9 9 { 10 10 const double volume_ellcyl = form_volume(radius_minor,r_ratio,length); 11 return cbrt( 0.75*volume_ellcyl/M_PI);11 return cbrt(volume_ellcyl/M_4PI_3); 12 12 } 13 13 -
sasmodels/models/hollow_cylinder.c
re44432d r6d5601c 17 17 { 18 18 const double volume_outer_cyl = M_PI*square(radius + thickness)*length; 19 return cbrt( 0.75*volume_outer_cyl/M_PI);19 return cbrt(volume_outer_cyl/M_4PI_3); 20 20 } 21 21 -
sasmodels/models/hollow_rectangular_prism.c
re44432d r6d5601c 27 27 switch (mode) { 28 28 case 1: // equivalent sphere 29 return cbrt( 0.75*cube(length_a)*b2a_ratio*c2a_ratio/M_PI);29 return cbrt(cube(length_a)*b2a_ratio*c2a_ratio/M_4PI_3); 30 30 case 2: // half length_a 31 31 return 0.5 * length_a; -
sasmodels/models/hollow_rectangular_prism_thin_walls.c
re44432d r6d5601c 22 22 switch (mode) { 23 23 case 1: // equivalent sphere 24 return cbrt( 0.75*cube(length_a)*b2a_ratio*c2a_ratio/M_PI);24 return cbrt(cube(length_a)*b2a_ratio*c2a_ratio/M_4PI_3); 25 25 case 2: // half length_a 26 26 return 0.5 * length_a; -
sasmodels/models/parallelepiped.c
ree60aa7 r6d5601c 10 10 switch (mode) { 11 11 case 1: // equivalent sphere 12 return cbrt( 0.75*length_a*length_b*length_c/M_PI);12 return cbrt(length_a*length_b*length_c/M_4PI_3); 13 13 case 2: // half length_a 14 14 return 0.5 * length_a; -
sasmodels/models/pringle.c
ree60aa7 r6d5601c 109 109 switch (mode) { 110 110 case 1: // equivalent sphere 111 return cbrt( 0.75*radius*radius*thickness);111 return cbrt(M_PI*radius*radius*thickness/M_4PI_3); 112 112 case 2: // radius 113 113 return radius; -
sasmodels/models/rectangular_prism.c
ree60aa7 r6d5601c 10 10 switch (mode) { 11 11 case 1: // equivalent sphere 12 return cbrt( 0.75*cube(length_a)*b2a_ratio*c2a_ratio/M_PI);12 return cbrt(cube(length_a)*b2a_ratio*c2a_ratio/M_4PI_3); 13 13 case 2: // half length_a 14 14 return 0.5 * length_a;
Note: See TracChangeset
for help on using the changeset viewer.