Changeset dedcf34 in sasmodels
- Timestamp:
- Apr 10, 2017 5:40:38 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:
- 9802ab3
- Parents:
- 3401a7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_bicelle_elliptical.c
r44e8a93 rdedcf34 24 24 double si1,si2,be1,be2; 25 25 // core_shell_bicelle_elliptical, RKH Dec 2016, based on elliptical_cylinder and core_shell_bicelle 26 // tested against limiting cases of cylinder, elliptical_cylinder and core_shell_bicelle26 // tested against limiting cases of cylinder, elliptical_cylinder, stacked_discs, and core_shell_bicelle 27 27 // const double uplim = M_PI_4; 28 28 const double halfheight = 0.5*length; … … 34 34 35 35 const double r_major = r_minor * x_core; 36 const double r A = 0.5*(square(r_major) + square(r_minor));37 const double r B = 0.5*(square(r_major) - square(r_minor));36 const double r2A = 0.5*(square(r_major) + square(r_minor)); 37 const double r2B = 0.5*(square(r_major) - square(r_minor)); 38 38 const double dr1 = (rhoc-rhoh) *M_PI*r_minor*r_major*(2.0*halfheight);; 39 39 const double dr2 = (rhor-rhosolv)*M_PI*(r_minor+thick_rim)*(r_major+thick_rim)*2.0*(halfheight+thick_face); … … 60 60 //const double beta = ( Gauss76Z[j]*(vbj-vaj) + vaj + vbj )/2.0; 61 61 const double beta = ( Gauss76Z[j] +1.0)*M_PI_2; 62 const double rr = sqrt(r A - rB*cos(beta));62 const double rr = sqrt(r2A - r2B*cos(beta)); 63 63 double besarg1 = q*rr*sin_alpha; 64 64 double besarg2 = q*(rr+thick_rim)*sin_alpha;
Note: See TracChangeset
for help on using the changeset viewer.