Changeset 9c461c7 in sasmodels
- Timestamp:
- Jan 21, 2016 2:47:17 AM (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:
- 790bcc4c
- Parents:
- 9eaadb3
- Location:
- sasmodels/models
- Files:
-
- 1 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/ellipsoid.c
r513efc5 r9c461c7 10 10 const double u = q*requatorial*sqrt(1.0 11 11 + sin_alpha*sin_alpha*(ratio*ratio - 1.0)); 12 const double f = J1c(u);12 const double f = sph_j1c(u); 13 13 14 14 return f*f; -
sasmodels/models/ellipsoid.py
r513efc5 r9c461c7 152 152 ] 153 153 154 source = ["lib/J1.c", "lib/ J1c.c", "lib/gauss76.c", "ellipsoid.c"]154 source = ["lib/J1.c", "lib/sph_j1c.c", "lib/gauss76.c", "ellipsoid.c"] 155 155 156 156 def ER(rpolar, requatorial): -
sasmodels/models/mass_fractal.c
r5c1d341 r9c461c7 17 17 double cutoff_length) 18 18 { 19 20 //calculate P(q) for the spherical subunits; not normalized 21 //double pq = pow((3.0*(sin(q*radius) - q*radius*cos(q*radius))/pow((q*radius),3)),2); 22 double pq = J1c(q*radius); 23 24 //pq = 1.0; 19 //calculate P(q) 20 double pq = sph_j1c(q*radius); 21 pq = pq*pq; 25 22 26 23 //calculate S(q) … … 30 27 sq /= pow((1.0 + (q*cutoff_length)*(q*cutoff_length)),(mmo/2.0)); 31 28 sq /= q; 32 33 //sq = 1.0;34 29 35 30 //combine and return -
sasmodels/models/mass_fractal.py
r9eaadb3 r9c461c7 80 80 81 81 # ["name", "units", default, [lower, upper], "type","description"], 82 parameters = [["radius", "Ang", 10.0, [0.0, inf], "", 83 "Particle radius"], 84 ["mass_dim", "", 1.9, [1.0, 6.0], "", 85 "Mass fractal dimension"], 86 ["cutoff_length", "Ang", 100.0, [0.0, inf], "", 87 "Cut-off length"], 82 parameters = [["radius", "Ang", 10.0, [0.0, inf], "", "Particle radius"], 83 ["mass_dim", "", 1.9, [1.0, 6.0], "", "Mass fractal dimension"], 84 ["cutoff_length", "Ang", 100.0, [0.0, inf], "", "Cut-off length"], 88 85 ] 89 86 90 87 91 source = ["lib/ J1c.c", "lib/lanczos_gamma.c", "mass_fractal.c"]88 source = ["lib/sph_j1c.c", "lib/lanczos_gamma.c", "mass_fractal.c"] 92 89 93 90 demo = dict(scale=1, background=0, … … 104 101 'mass_dim': 3.3, 105 102 'cutoff_length': 1.0, 106 }, 0. 001, 2.68342996226],103 }, 0.5, 1.29016774904], 107 104 108 105 [{'radius': 1.0, … … 116 113 'cutoff_length': 1.0, 117 114 'scale': 10.0, 118 }, 0.051, 11.62 58202095],115 }, 0.051, 11.6227966145], 119 116 ] -
sasmodels/models/mass_surface_fractal.py
r7ed702f r9c461c7 91 91 92 92 93 source = [" lib/J1c.c", "mass_surface_fractal.c"]93 source = ["mass_surface_fractal.c"] 94 94 95 95 demo = dict(scale=1, background=0, -
sasmodels/models/sphere.py
r513efc5 r9c461c7 78 78 ] 79 79 80 source = ["lib/ J1c.c"]80 source = ["lib/sph_j1c.c"] 81 81 82 82 # No volume normalization despite having a volume parameter … … 88 88 Iq = """ 89 89 const double qr = q*radius; 90 const double bes = J1c(qr);90 const double bes = sph_j1c(qr); 91 91 const double fq = bes * (sld - solvent_sld) * form_volume(radius); 92 92 return 1.0e-4*fq*fq; -
sasmodels/models/surface_fractal.c
r5c1d341 r9c461c7 21 21 //pq = pow((3.0*(sin(q*radius) - q*radius*cos(q*radius))/pow((q*radius),3)),2); 22 22 23 pq = J1c(q*radius);23 pq = sph_j1c(q*radius); 24 24 pq = pq*pq; 25 25 -
sasmodels/models/surface_fractal.py
r5c1d341 r9c461c7 90 90 91 91 92 source = ["lib/ J1c.c", "lib/lanczos_gamma.c", "surface_fractal.c"]92 source = ["lib/sph_j1c.c", "lib/lanczos_gamma.c", "surface_fractal.c"] 93 93 94 94 demo = dict(scale=1, background=0, -
sasmodels/models/triaxial_ellipsoid.c
r7ed702f r9c461c7 36 36 const double y = 0.5*(Gauss76Z[j] + 1.0); 37 37 const double t = q*sqrt(acosx2 + bsinx2*(1.0-y*y) + c2*y*y); 38 const double fq = J1c(t);38 const double fq = sph_j1c(t); 39 39 inner += Gauss76Wt[j] * fq * fq ; 40 40 } -
sasmodels/models/triaxial_ellipsoid.py
r513efc5 r9c461c7 117 117 ] 118 118 119 source = ["lib/J1.c", "lib/ J1c.c", "lib/gauss76.c", "triaxial_ellipsoid.c"]119 source = ["lib/J1.c", "lib/sph_j1c.c", "lib/gauss76.c", "triaxial_ellipsoid.c"] 120 120 121 121 def ER(req_minor, req_major, rpolar):
Note: See TracChangeset
for help on using the changeset viewer.