Changeset 82592da in sasmodels for sasmodels/models/elliptical_cylinder.c
- Timestamp:
- Nov 6, 2017 1:12:33 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:
- c11d09f
- Parents:
- 17db833
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/elliptical_cylinder.c
rbecded3 r82592da 28 28 //const double arg = radius_minor*sin_val; 29 29 double inner_sum=0; 30 for(int j=0;j< 20;j++) {31 //20 gauss points for the inner integral 32 const double theta = ( Gauss 20Z[j]*(vbj-vaj) + vaj + vbj )/2.0;30 for(int j=0;j<76;j++) { 31 //20 gauss points for the inner integral, increase to 76, RKH 6Nov2017 32 const double theta = ( Gauss76Z[j]*(vbj-vaj) + vaj + vbj )/2.0; 33 33 const double r = sin_val*sqrt(rA - rB*cos(theta)); 34 34 const double be = sas_2J1x_x(q*r); 35 inner_sum += Gauss 20Wt[j] * be * be;35 inner_sum += Gauss76Wt[j] * be * be; 36 36 } 37 37 //now calculate the value of the inner integral … … 61 61 // Compute: r = sqrt((radius_major*cos_nu)^2 + (radius_minor*cos_mu)^2) 62 62 // Given: radius_major = r_ratio * radius_minor 63 const double qr = radius_minor*sqrt(square(r_ratio*q a) + square(qb));63 const double qr = radius_minor*sqrt(square(r_ratio*qb) + square(qa)); 64 64 const double be = sas_2J1x_x(qr); 65 65 const double si = sas_sinx_x(qc*0.5*length);
Note: See TracChangeset
for help on using the changeset viewer.