Changeset 43b7eea in sasmodels
- Timestamp:
- Mar 19, 2016 4:34:39 PM (9 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:
- 26141cb
- Parents:
- 81d3a0c
- Location:
- sasmodels/models
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/bcc.py
r2f0c07d r43b7eea 124 124 # pylint: enable=bad-whitespace, line-too-long 125 125 126 source = ["lib/sph_j1c.c", "lib/ J1.c", "lib/gauss150.c", "lib/sphere_form.c", "bcc.c"]126 source = ["lib/sph_j1c.c", "lib/gauss150.c", "lib/sphere_form.c", "bcc.c"] 127 127 128 128 # parameters for demo -
sasmodels/models/core_shell_bicelle.c
rcf85329 r43b7eea 56 56 double sinarg2 = qq*(length+facthick)*cn; 57 57 58 be1 = J1c(besarg1);59 be2 = J1c(besarg2);58 be1 = sas_J1c(besarg1); 59 be2 = sas_J1c(besarg2); 60 60 si1 = sinc(sinarg1); 61 61 si2 = sinc(sinarg2); -
sasmodels/models/core_shell_bicelle.py
r2f0c07d r43b7eea 87 87 # pylint: enable=bad-whitespace, line-too-long 88 88 89 source = ["lib/Si.c", "lib/J1.c", "lib/J1c.c", "lib/gauss76.c", "core_shell_bicelle.c"]89 source = ["lib/Si.c","lib/polevl.c", "lib/sas_J1.c", "lib/gauss76.c", "core_shell_bicelle.c"] 90 90 91 91 demo = dict(scale=1, background=0, -
sasmodels/models/core_shell_cylinder.c
rf4878dc r43b7eea 11 11 double _cyl(double twovd, double besarg, double siarg) 12 12 { 13 const double bj = (besarg == 0.0 ? 0.5 : J1(besarg)/besarg);13 const double bj = (besarg == 0.0 ? 0.5 : 0.5*sas_J1c(besarg)); 14 14 const double si = (siarg == 0.0 ? 1.0 : sin(siarg)/siarg); 15 15 return twovd*si*bj; -
sasmodels/models/core_shell_cylinder.py
r01eece6 r43b7eea 130 130 ] 131 131 132 source = ["lib/ J1.c", "lib/gauss76.c", "core_shell_cylinder.c"]132 source = ["lib/polevl.c","lib/sas_J1.c", "lib/gauss76.c", "core_shell_cylinder.c"] 133 133 134 134 def ER(radius, thickness, length): -
sasmodels/models/core_shell_parallelepiped.py
raa2edb2 r43b7eea 141 141 ] 142 142 143 source = ["lib/ J1.c", "lib/gauss76.c", "core_shell_parallelepiped.c"]143 source = ["lib/gauss76.c", "core_shell_parallelepiped.c"] 144 144 145 145 -
sasmodels/models/ellipsoid.py
raa2edb2 r43b7eea 132 132 ] 133 133 134 source = ["lib/ J1.c", "lib/sph_j1c.c", "lib/gauss76.c", "ellipsoid.c"]134 source = ["lib/sph_j1c.c", "lib/gauss76.c", "ellipsoid.c"] 135 135 136 136 def ER(rpolar, requatorial): -
sasmodels/models/elliptical_cylinder.c
ra8b3cdb r43b7eea 22 22 retval = 1.0; 23 23 }else{ 24 retval = 2.0*NR_BessJ1(arg)/arg; 24 //retval = 2.0*NR_BessJ1(arg)/arg; 25 retval = sas_J1c(arg); 25 26 } 26 27 return retval*retval ; … … 155 156 Be = 0.5; 156 157 }else{ 157 Be = NR_BessJ1(qr)/qr; 158 //Be = NR_BessJ1(qr)/qr; 159 Be = 0.5*sas_J1c(qr); 158 160 } 159 161 -
sasmodels/models/elliptical_cylinder.py
raa2edb2 r43b7eea 105 105 # pylint: enable=bad-whitespace, line-too-long 106 106 107 source = ["lib/ nr_bess_j1.c", "lib/gauss76.c", "lib/gauss20.c", "elliptical_cylinder.c"]107 source = ["lib/polevl.c","lib/sas_J1.c", "lib/gauss76.c", "lib/gauss20.c", "elliptical_cylinder.c"] 108 108 109 109 demo = dict(scale=1, background=0, r_minor=100, r_ratio=1.5, length=400.0, -
sasmodels/models/fcc.py
r2f0c07d r43b7eea 116 116 # pylint: enable=bad-whitespace, line-too-long 117 117 118 source = ["lib/sph_j1c.c", "lib/ J1.c", "lib/gauss150.c", "lib/sphere_form.c", "fcc.c"]118 source = ["lib/sph_j1c.c", "lib/gauss150.c", "lib/sphere_form.c", "fcc.c"] 119 119 120 120 # parameters for demo -
sasmodels/models/flexible_cylinder.c
re7678b2 r43b7eea 25 25 const double qr = q*radius; 26 26 //const double crossSect = (2.0*J1(qr)/qr)*(2.0*J1(qr)/qr); 27 const double crossSect = J1c(qr);27 const double crossSect = sas_J1c(qr); 28 28 double flex = Sk_WR(q,length,kuhn_length); 29 29 flex *= crossSect*crossSect; -
sasmodels/models/flexible_cylinder.py
raa2edb2 r43b7eea 84 84 ] 85 85 # pylint: enable=bad-whitespace, line-too-long 86 source = ["lib/ J1.c", "lib/J1c.c", "lib/wrc_cyl.c", "flexible_cylinder.c"]86 source = ["lib/polevl.c","lib/sas_J1c.c", "lib/wrc_cyl.c", "flexible_cylinder.c"] 87 87 88 88 demo = dict(scale=1.0, background=0.0001, -
sasmodels/models/flexible_cylinder_ex.c
re7678b2 r43b7eea 24 24 SINCOS(zi, sn, cn); 25 25 double arg = q*sqrt(a*a*sn*sn+b*b*cn*cn); 26 double yyy = pow((double) J1c(arg),2);26 double yyy = pow((double)sas_J1c(arg),2); 27 27 yyy *= Gauss76Wt[i]; 28 28 summ += yyy; -
sasmodels/models/flexible_cylinder_ex.py
raa2edb2 r43b7eea 109 109 # pylint: enable=bad-whitespace, line-too-long 110 110 111 source = ["lib/ J1.c", "lib/J1c.c", "lib/gauss76.c", "lib/wrc_cyl.c", "flexible_cylinder_ex.c"]111 source = ["lib/polevl.c","lib/sas_J1.c", "lib/gauss76.c", "lib/wrc_cyl.c", "flexible_cylinder_ex.c"] 112 112 113 113 demo = dict(scale=1.0, background=0.0001, -
sasmodels/models/hollow_cylinder.c
r0420af7 r43b7eea 24 24 lam1 = 1.0; 25 25 }else{ 26 lam1 = 2.0*J1(arg1)/arg1;26 lam1 = sas_J1c(arg1); 27 27 } 28 28 if (arg2 == 0.0){ 29 29 lam2 = 1.0; 30 30 }else{ 31 lam2 = 2.0*J1(arg2)/arg2;31 lam2 = sas_J1c(arg2); 32 32 } 33 33 //Todo: Need to check psi behavior as gamma goes to 1. -
sasmodels/models/hollow_cylinder.py
r01eece6 r43b7eea 79 79 # pylint: enable=bad-whitespace, line-too-long 80 80 81 source = ["lib/ J1.c", "lib/gauss76.c", "hollow_cylinder.c"]81 source = ["lib/polevl.c","lib/sas_J1.c", "lib/gauss76.c", "hollow_cylinder.c"] 82 82 83 83 # pylint: disable=W0613 -
sasmodels/models/hollow_rectangular_prism.py
raa2edb2 r43b7eea 115 115 ] 116 116 117 source = [ "lib/J1.c","lib/gauss76.c", "hollow_rectangular_prism.c"]117 source = [ "lib/gauss76.c", "hollow_rectangular_prism.c"] 118 118 119 119 def ER(a_side, b2a_ratio, c2a_ratio, thickness): -
sasmodels/models/hollow_rectangular_prism_infinitely_thin_walls.py
raa2edb2 r43b7eea 99 99 ] 100 100 101 source = ["lib/ J1.c", "lib/gauss76.c", "hollow_rectangular_prism_infinitely_thin_walls.c"]101 source = ["lib/gauss76.c", "hollow_rectangular_prism_infinitely_thin_walls.c"] 102 102 103 103 def ER(a_side, b2a_ratio, c2a_ratio): -
sasmodels/models/parallelepiped.py
raa2edb2 r43b7eea 193 193 ] 194 194 195 source = ["lib/ J1.c", "lib/gauss76.c", "parallelepiped.c"]195 source = ["lib/gauss76.c", "parallelepiped.c"] 196 196 197 197 def ER(a_side, b_side, c_side): -
sasmodels/models/rectangular_prism.py
raa2edb2 r43b7eea 107 107 ] 108 108 109 source = ["lib/ J1.c", "lib/gauss76.c", "rectangular_prism.c"]109 source = ["lib/gauss76.c", "rectangular_prism.c"] 110 110 111 111 def ER(a_side, b2a_ratio, c2a_ratio): -
sasmodels/models/stacked_disks.c
rd507c3a r43b7eea 52 52 const double sinarg2 = qq*(halfheight+layer_thick)*cos(zi); 53 53 54 const double be1 = J1(besarg1)/besarg1;55 const double be2 = J1(besarg2)/besarg2;54 const double be1 = sas_J1c(besarg1); 55 const double be2 = sas_J1c(besarg2); 56 56 const double si1 = sin(sinarg1)/sinarg1; 57 57 const double si2 = sin(sinarg2)/sinarg2; … … 62 62 const double totald=2.0*(layer_thick+halfheight); 63 63 64 const double t1 = 2.0*area*(2.0*halfheight)*dr1*(si1)*(be1);65 const double t2 = 2.0*area*dr2*(totald*si2-2.0*halfheight*si1)*(be2);64 const double t1 = area*(2.0*halfheight)*dr1*(si1)*(be1); 65 const double t2 = area*dr2*(totald*si2-2.0*halfheight*si1)*(be2); 66 66 67 67 -
sasmodels/models/stacked_disks.py
r5111921 r43b7eea 133 133 # pylint: enable=bad-whitespace, line-too-long 134 134 135 source = ["lib/ gauss76.c", "lib/J1.c", "stacked_disks.c"]135 source = ["lib/polevl.c", "lib/sas_J1.c", "lib/gauss76.c", "stacked_disks.c"] 136 136 137 137 demo = dict(background=0.001, -
sasmodels/models/triaxial_ellipsoid.py
raa2edb2 r43b7eea 104 104 ] 105 105 106 source = ["lib/ J1.c", "lib/sph_j1c.c", "lib/gauss76.c", "triaxial_ellipsoid.c"]106 source = ["lib/sph_j1c.c", "lib/gauss76.c", "triaxial_ellipsoid.c"] 107 107 108 108 def ER(req_minor, req_major, rpolar):
Note: See TracChangeset
for help on using the changeset viewer.