Changeset ad90df9 in sasmodels for sasmodels/models/sc_crystal.c
- Timestamp:
- Mar 1, 2016 8:23:21 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- e6f1410, 7d4b2ae
- Parents:
- 50e1e40
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/sc_crystal.c
r9aac25d rad90df9 20 20 double form_volume(double radius) 21 21 { 22 return 1.333333333333333*M_PI*radius*radius*radius;22 return sphere_volume(radius); 23 23 } 24 24 … … 95 95 96 96 //Volume fraction calculated from lattice symmetry and sphere radius 97 const double latticeScale = (4.0/3.0)*M_PI*(radius*radius*radius)/pow(dnn,3);98 99 //answer *= sphere_form_paracrystal(q, radius,contrast)*latticeScale; 97 // NB: 4/3 pi r^3 / dnn^3 = 4/3 pi(r/dnn)^3 98 const double latticeScale = sphere_volume(radius/dnn); 99 100 100 answer *= sphere_form(q, radius, sphere_sld, solvent_sld)*latticeScale; 101 101 … … 180 180 181 181 //consider scales 182 const double latticeScale = (4.0/3.0)*M_PI*(radius*radius*radius)/pow(dnn,3.0);182 const double latticeScale = sphere_volume(radius/dnn); 183 183 answer *= latticeScale; 184 184
Note: See TracChangeset
for help on using the changeset viewer.