Changeset 592343f in sasmodels
- Timestamp:
- Jan 11, 2017 8:36:37 AM (8 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:
- 4b541ac
- Parents:
- 925ad6e
- Location:
- sasmodels/models
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/barbell.c
r1e7b0db0 r592343f 33 33 const double t = Gauss76Z[i]*zm + zb; 34 34 const double radical = 1.0 - t*t; 35 const double bj = sas_ J1c(qrst*sqrt(radical));35 const double bj = sas_2J1x_x(qrst*sqrt(radical)); 36 36 const double Fq = cos(m*t + b) * radical * bj; 37 37 total += Gauss76Wt[i] * Fq; … … 49 49 { 50 50 const double bell_fq = _bell_kernel(q, h, radius_bell, half_length, sin_alpha, cos_alpha); 51 const double bj = sas_ J1c(q*radius*sin_alpha);51 const double bj = sas_2J1x_x(q*radius*sin_alpha); 52 52 const double si = sas_sinx_x(q*half_length*cos_alpha); 53 53 const double cyl_fq = 2.0*M_PI*radius*radius*half_length*bj*si; -
sasmodels/models/capped_cylinder.c
r1e7b0db0 r592343f 39 39 const double t = Gauss76Z[i]*zm + zb; 40 40 const double radical = 1.0 - t*t; 41 const double bj = sas_ J1c(qrst*sqrt(radical));41 const double bj = sas_2J1x_x(qrst*sqrt(radical)); 42 42 const double Fq = cos(m*t + b) * radical * bj; 43 43 total += Gauss76Wt[i] * Fq; … … 54 54 { 55 55 const double cap_Fq = _cap_kernel(q, h, radius_cap, half_length, sin_alpha, cos_alpha); 56 const double bj = sas_ J1c(q*radius*sin_alpha);56 const double bj = sas_2J1x_x(q*radius*sin_alpha); 57 57 const double si = sas_sinx_x(q*half_length*cos_alpha); 58 58 const double cyl_Fq = 2.0*M_PI*radius*radius*half_length*bj*si; -
sasmodels/models/core_shell_bicelle.c
r1e7b0db0 r592343f 55 55 double sinarg2 = qq*(length+facthick)*cos_alpha; 56 56 57 be1 = sas_ J1c(besarg1);58 be2 = sas_ J1c(besarg2);57 be1 = sas_2J1x_x(besarg1); 58 be2 = sas_2J1x_x(besarg2); 59 59 si1 = sas_sinx_x(sinarg1); 60 60 si2 = sas_sinx_x(sinarg2); -
sasmodels/models/core_shell_bicelle_elliptical.c
r1e7b0db0 r592343f 85 85 double besarg1 = qq*rr*sin_alpha; 86 86 double besarg2 = qq*(rr+radthick)*sin_alpha; 87 be1 = sas_ J1c(besarg1);88 be2 = sas_ J1c(besarg2);87 be1 = sas_2J1x_x(besarg1); 88 be2 = sas_2J1x_x(besarg2); 89 89 inner_sum += Gauss76Wt[j] *square(dr1*si1*be1 + 90 90 dr2*si2*be2 + … … 129 129 // ASSUME the sin_alpha is included in the separate integration over orientation of rod angle 130 130 const double r = rad*sqrt(square(x_core*cos_nu) + cos_mu*cos_mu); 131 const double be1 = sas_ J1c(qq*r);132 const double be2 = sas_ J1c( qq*(r + radthick ) );131 const double be1 = sas_2J1x_x( qq*r ); 132 const double be2 = sas_2J1x_x( qq*(r + radthick ) ); 133 133 const double si1 = sas_sinx_x( qq*halfheight*cos_val ); 134 134 const double si2 = sas_sinx_x( qq*(halfheight + facthick)*cos_val ); -
sasmodels/models/core_shell_cylinder.c
r1e7b0db0 r592343f 11 11 double _cyl(double vd, double besarg, double siarg) 12 12 { 13 return vd * sas_sinx_x(siarg) * sas_ J1c(besarg);13 return vd * sas_sinx_x(siarg) * sas_2J1x_x(besarg); 14 14 } 15 15 -
sasmodels/models/cylinder.c
r1e7b0db0 r592343f 18 18 const double qr = q*radius; 19 19 const double qh = q*0.5*length; 20 return sas_ J1c(qr*sn) * sas_sinx_x(qh*cn);20 return sas_2J1x_x(qr*sn) * sas_sinx_x(qh*cn); 21 21 } 22 22 -
sasmodels/models/elliptical_cylinder.c
r1e7b0db0 r592343f 39 39 const double theta = ( Gauss20Z[j]*(vbj-vaj) + vaj + vbj )/2.0; 40 40 const double r = sin_val*sqrt(rA - rB*cos(theta)); 41 const double be = sas_ J1c(q*r);41 const double be = sas_2J1x_x(q*r); 42 42 inner_sum += Gauss20Wt[j] * be * be; 43 43 } … … 73 73 // Given: radius_major = r_ratio * radius_minor 74 74 const double r = radius_minor*sqrt(square(r_ratio*cos_nu) + cos_mu*cos_mu); 75 const double be = sas_ J1c(q*r);75 const double be = sas_2J1x_x(q*r); 76 76 const double si = sas_sinx_x(q*0.5*length*cos_val); 77 77 const double Aq = be * si; -
sasmodels/models/flexible_cylinder.c
r4937980 r592343f 14 14 { 15 15 const double contrast = sld - solvent_sld; 16 const double cross_section = sas_ J1c(q*radius);16 const double cross_section = sas_2J1x_x(q*radius); 17 17 const double volume = M_PI*radius*radius*length; 18 18 const double flex = Sk_WR(q, length, kuhn_length); -
sasmodels/models/flexible_cylinder_elliptical.c
r92ce163 r592343f 22 22 SINCOS(zi, sn, cn); 23 23 const double arg = q*sqrt(a*a*sn*sn + b*b*cn*cn); 24 const double yyy = sas_ J1c(arg);24 const double yyy = sas_2J1x_x(arg); 25 25 sum += Gauss76Wt[i] * yyy * yyy; 26 26 } -
sasmodels/models/hollow_cylinder.c
r1e7b0db0 r592343f 20 20 { 21 21 const double qs = q*sin_val; 22 const double lam1 = sas_ J1c((radius+thickness)*qs);23 const double lam2 = sas_ J1c(radius*qs);22 const double lam1 = sas_2J1x_x((radius+thickness)*qs); 23 const double lam2 = sas_2J1x_x(radius*qs); 24 24 const double gamma_sq = square(radius/(radius+thickness)); 25 //Note: lim_{thickness -> 0} psi = J0(radius*qs)26 //Note: lim_{radius -> 0} psi = sas_ J1c(thickness*qs)25 //Note: lim_{thickness -> 0} psi = sas_J0(radius*qs) 26 //Note: lim_{radius -> 0} psi = sas_2J1x_x(thickness*qs) 27 27 const double psi = (lam1 - gamma_sq*lam2)/(1.0 - gamma_sq); //SRK 10/19/00 28 28 const double t2 = sas_sinx_x(0.5*q*length*cos_val); -
sasmodels/models/stacked_disks.c
r1e7b0db0 r592343f 53 53 const double sinarg2 = q*(halfheight+thick_layer)*cos_alpha; 54 54 55 const double be1 = sas_ J1c(besarg1);55 const double be1 = sas_2J1x_x(besarg1); 56 56 //const double be2 = sas_J1c(besarg2); 57 57 const double be2 = be1;
Note: See TracChangeset
for help on using the changeset viewer.