Changes in / [98f3053:216fa6d] in sasmodels
- Location:
- sasmodels/models
- Files:
-
- 7 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/bcc.c
r9aac25d r7ed702f 40 40 } 41 41 42 double _sphereform(double q, double radius, double sld, double solvent_sld){ 43 const double qr = q*radius; 44 double sn, cn; 45 SINCOS(qr, sn, cn); 46 const double bes = (qr == 0.0 ? 1.0 : 3.0*(sn-qr*cn)/(qr*qr*qr)); 47 const double fq = bes * (sld - solvent_sld)*form_volume(radius); 48 return 1.0e-4*fq*fq; 49 } 42 50 43 51 double form_volume(double radius){ … … 79 87 80 88 answer = (vb-va)/2.0*summ; 81 answer = answer* sphere_form(q,radius,sld,solvent_sld)*latticescale;89 answer = answer*_sphereform(q,radius,sld,solvent_sld)*latticescale; 82 90 83 91 return answer; … … 166 174 167 175 // Use SphereForm directly from libigor 168 answer = sphere_form(q,radius,sld,solvent_sld)*Zq*latticescale;176 answer = _sphereform(q,radius,sld,solvent_sld)*Zq*latticescale; 169 177 170 178 return answer; -
sasmodels/models/bcc.py
r9aac25d r13ed84c 132 132 # pylint: enable=bad-whitespace, line-too-long 133 133 134 source = ["lib/J1.c", "lib/gauss150.c", " lib/sphere_form.c", "bcc.c"]134 source = ["lib/J1.c", "lib/gauss150.c", "bcc.c"] 135 135 136 136 # parameters for demo -
sasmodels/models/fcc.c
r9aac25d reeb8bac 7 7 double _FCC_Integrand(double q, double dnn, double d_factor, double theta, double phi); 8 8 double _FCCeval(double Theta, double Phi, double temp1, double temp3); 9 double _sphereform(double q, double radius, double sld, double solvent_sld); 9 10 10 11 … … 38 39 39 40 return (result); 41 } 42 43 double _sphereform(double q, double radius, double sld, double solvent_sld){ 44 const double qr = q*radius; 45 double sn, cn; 46 SINCOS(qr, sn, cn); 47 const double bes = (qr == 0.0 ? 1.0 : 3.0*(sn-qr*cn)/(qr*qr*qr)); 48 const double fq = bes * (sld - solvent_sld)*form_volume(radius); 49 return 1.0e-4*fq*fq; 40 50 } 41 51 … … 78 88 79 89 answer = (vb-va)/2.0*summ; 80 answer = answer* sphere_form(q,radius,sld,solvent_sld)*latticescale;90 answer = answer*_sphereform(q,radius,sld,solvent_sld)*latticescale; 81 91 82 92 return answer; … … 165 175 166 176 // Use SphereForm directly from libigor 167 answer = sphere_form(q,radius,sld,solvent_sld)*Zq*latticescale;177 answer = _sphereform(q,radius,sld,solvent_sld)*Zq*latticescale; 168 178 169 179 return answer; -
sasmodels/models/fcc.py
r9aac25d r13ed84c 125 125 ] 126 126 127 source = ["lib/J1.c", "lib/gauss150.c", " lib/sphere_form.c", "fcc.c"]127 source = ["lib/J1.c", "lib/gauss150.c", "fcc.c"] 128 128 129 129 # parameters for demo
Note: See TracChangeset
for help on using the changeset viewer.