Changeset 26141cb in sasmodels
- Timestamp:
- Mar 19, 2016 4:47:45 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:
- 3a45c2c
- Parents:
- 43b7eea
- Location:
- sasmodels/models
- Files:
-
- 3 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/barbell.c
r50e1e40 r26141cb 31 31 const double t = Gauss76Z[i]*zm + zb; 32 32 const double radical = 1.0 - t*t; 33 const double bj = J1c(qrst*sqrt(radical));33 const double bj = sas_J1c(qrst*sqrt(radical)); 34 34 const double Fq = cos(m*t + b) * radical * bj; 35 35 total += Gauss76Wt[i] * Fq; … … 73 73 74 74 const double bell_Fq = _bell_kernel(q, h, bell_radius, half_length, sin_alpha, cos_alpha); 75 const double bj = J1c(q*radius*sin_alpha);75 const double bj = sas_J1c(q*radius*sin_alpha); 76 76 const double si = sinc(q*half_length*cos_alpha); 77 77 const double cyl_Fq = M_PI*radius*radius*length*bj*si; … … 108 108 SINCOS(alpha, sin_alpha, cos_alpha); 109 109 const double bell_Fq = _bell_kernel(q, h, bell_radius, half_length, sin_alpha, cos_alpha); 110 const double bj = J1c(q*radius*sin_alpha);110 const double bj = sas_J1c(q*radius*sin_alpha); 111 111 const double si = sinc(q*half_length*cos_alpha); 112 112 const double cyl_Fq = M_PI*radius*radius*length*bj*si; -
sasmodels/models/barbell.py
r2f0c07d r26141cb 111 111 # pylint: enable=bad-whitespace, line-too-long 112 112 113 source = ["lib/ J1c.c", "lib/gauss76.c", "barbell.c"]113 source = ["lib/polevl.c", "lib/sas_J1.c", "lib/gauss76.c", "barbell.c"] 114 114 115 115 # parameters for demo -
sasmodels/models/capped_cylinder.c
r50e1e40 r26141cb 37 37 const double t = Gauss76Z[i]*zm + zb; 38 38 const double radical = 1.0 - t*t; 39 const double bj = J1c(qrst*sqrt(radical));39 const double bj = sas_J1c(qrst*sqrt(radical)); 40 40 const double Fq = cos(m*t + b) * radical * bj; 41 41 total += Gauss76Wt[i] * Fq; … … 94 94 95 95 const double cap_Fq = _cap_kernel(q, h, cap_radius, half_length, sin_alpha, cos_alpha); 96 const double bj = J1c(q*radius*sin_alpha);96 const double bj = sas_J1c(q*radius*sin_alpha); 97 97 const double si = sinc(q*half_length*cos_alpha); 98 98 const double cyl_Fq = M_PI*radius*radius*length*bj*si; … … 129 129 SINCOS(alpha, sin_alpha, cos_alpha); 130 130 const double cap_Fq = _cap_kernel(q, h, cap_radius, half_length, sin_alpha, cos_alpha); 131 const double bj = J1c(q*radius*sin_alpha);131 const double bj = sas_J1c(q*radius*sin_alpha); 132 132 const double si = sinc(q*half_length*cos_alpha); 133 133 const double cyl_Fq = M_PI*radius*radius*length*bj*si; -
sasmodels/models/capped_cylinder.py
r2f0c07d r26141cb 129 129 # pylint: enable=bad-whitespace, line-too-long 130 130 131 source = ["lib/ J1c.c", "lib/gauss76.c", "capped_cylinder.c"]131 source = ["lib/polevl.c", "lib/sas_J1.c", "lib/gauss76.c", "capped_cylinder.c"] 132 132 133 133 demo = dict(scale=1, background=0, -
sasmodels/models/cylinder.c
r50e1e40 r26141cb 29 29 double sn, cn; 30 30 SINCOS(alpha, sn, cn); 31 const double fq = sinc(qh*cn) * J1c(qr*sn);31 const double fq = sinc(qh*cn) * sas_J1c(qr*sn); 32 32 total += Gauss76Wt[i] * fq*fq * sn; 33 33 } … … 57 57 58 58 SINCOS(alpha, sn, cn); 59 const double fq = sinc(q*0.5*length*cn) * J1c(q*radius*sn);59 const double fq = sinc(q*0.5*length*cn) * sas_J1c(q*radius*sn); 60 60 const double s = (sld-solvent_sld) * form_volume(radius, length); 61 61 return 1.0e-4 * square(s * fq); -
sasmodels/models/cylinder.py
r01eece6 r26141cb 119 119 ] 120 120 121 source = ["lib/ J1c.c", "lib/gauss76.c", "cylinder.c"]121 source = ["lib/polevl.c","lib/sas_J1.c", "lib/gauss76.c", "cylinder.c"] 122 122 123 123 def ER(radius, length): -
sasmodels/models/flexible_cylinder.py
r43b7eea r26141cb 84 84 ] 85 85 # pylint: enable=bad-whitespace, line-too-long 86 source = ["lib/polevl.c", "lib/sas_J1c.c", "lib/wrc_cyl.c", "flexible_cylinder.c"]86 source = ["lib/polevl.c", "lib/sas_J1.c", "lib/wrc_cyl.c", "flexible_cylinder.c"] 87 87 88 88 demo = dict(scale=1.0, background=0.0001,
Note: See TracChangeset
for help on using the changeset viewer.