Changeset 98ce141 in sasmodels for sasmodels/models/stacked_disks.c
- Timestamp:
- Nov 27, 2016 4:25:24 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 07300ea
- Parents:
- 797a8e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/stacked_disks.c
r3ac4e1b r98ce141 71 71 // loop for the structure factor S(q) 72 72 double qd_cos_alpha = q*d*cos_alpha; 73 //d*cos_alpha is the projection of d onto q (in other words the component 74 //of d that is parallel to q. 73 75 double debye_arg = -0.5*square(qd_cos_alpha*sigma_dnn); 74 76 double sq=0.0; … … 79 81 sq = 1.0 + 2.0*sq/n_stacking; 80 82 81 return pq * sq; 83 return pq * sq * n_stacking; 84 // volume normalization should be per disk not per stack but form_volume 85 // is per stack so correct here for now. Could change form_volume but 86 // if one ever wants to use P*S we need the ER based on the total volume 82 87 } 83 88
Note: See TracChangeset
for help on using the changeset viewer.