Changeset 9c461c7 in sasmodels for sasmodels/models/mass_fractal.c
- Timestamp:
- Jan 21, 2016 2:47:17 AM (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:
- 790bcc4c
- Parents:
- 9eaadb3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/mass_fractal.c
r5c1d341 r9c461c7 17 17 double cutoff_length) 18 18 { 19 20 //calculate P(q) for the spherical subunits; not normalized 21 //double pq = pow((3.0*(sin(q*radius) - q*radius*cos(q*radius))/pow((q*radius),3)),2); 22 double pq = J1c(q*radius); 23 24 //pq = 1.0; 19 //calculate P(q) 20 double pq = sph_j1c(q*radius); 21 pq = pq*pq; 25 22 26 23 //calculate S(q) … … 30 27 sq /= pow((1.0 + (q*cutoff_length)*(q*cutoff_length)),(mmo/2.0)); 31 28 sq /= q; 32 33 //sq = 1.0;34 29 35 30 //combine and return
Note: See TracChangeset
for help on using the changeset viewer.