Changes in / [0a7eec11:cedad32] in sasmodels
- Files:
-
- 3 added
- 3 deleted
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/genmodel.py
r824465b r89f4163 33 33 'qx_max' : 0.5, 34 34 #'colormap' : 'gist_ncar', 35 'colormap' : 'jet', 35 'colormap' : 'nipy_spectral', 36 #'colormap' : 'jet', 36 37 } 37 38 -
sasmodels/convert.py
r12dbc90 rbad8b12 17 17 'fractal_core_shell', 18 18 'binary_hard_sphere', 19 'raspberry' 19 20 ] 20 21 -
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/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/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 re65a3e7 3 3 Like :ref:`barbell`, this is a sphereocylinder with end caps that have a 4 4 radius larger than that of the cylinder, but with the center of the end cap 5 radius lying within the cylinder. This model simply becomes thea convex5 radius lying within the cylinder. This model simply becomes a convex 6 6 lens when the length of the cylinder $L=0$. See the diagram for the details 7 7 of the geometry and restrictions on parameter values. … … 95 95 end cap radius lies within the cylinder. 96 96 Note: As the length of cylinder -->0, 97 it becomes a Convex Lens.97 it becomes a Convex Lens. 98 98 It must be that radius <(=) cap_radius. 99 99 [Parameters]; … … 104 104 cap_radius: radius of the semi-spherical cap, 105 105 sld: SLD of the capped cylinder, 106 s olvent_sld: SLD of the solvent.106 sld_solvent: SLD of the solvent. 107 107 """ 108 108 category = "shape:cylinder" … … 110 110 # ["name", "units", default, [lower, upper], "type", "description"], 111 111 parameters = [["sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Cylinder scattering length density"], 112 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"],112 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 113 113 ["radius", "Ang", 20, [0, inf], "volume", "Cylinder radius"], 114 114 … … 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, 134 sld=6, s olvent_sld=1,134 sld=6, sld_solvent=1, 135 135 radius=260, cap_radius=290, length=290, 136 136 theta=30, phi=15, … … 142 142 oldname = 'CappedCylinderModel' 143 143 oldpars = dict(sld='sld_capcyl', 144 s olvent_sld='sld_solv',144 sld_solvent='sld_solv', 145 145 length='len_cyl', 146 146 radius='rad_cyl', -
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/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/ellipsoid.py
r0a7eec11 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 re65a3e7 12 12 .. figure:: img/elliptical_cylinder_geometry.png 13 13 14 *a* = *r_minor* and |nu|\ :sub:`n` = $r_ratio$ (i.e., $r_major / r_minor$).14 Elliptical cylinder geometry $a$ = $r_{minor}$ and \nu = $r_{ratio}$ = $r_{major} / r_{minor}$ 15 15 16 16 The function calculated is … … 26 26 F(\mathbf{q},\alpha,\psi)=2\frac{J_1(a)\sin(b)}{ab} 27 27 \\ 28 a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2}28 where a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2} 29 29 \\ 30 30 b=\mathbf{q}\frac{L}{2}\cos(\alpha) … … 74 74 The intensities averaged from 2D over different numbers of bins and angles. 75 75 76 Reference 77 --------- 76 References 77 ---------- 78 78 79 79 L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum, … … 98 98 ["length", "Ang", 400.0, [1, inf], "volume", "Length of the cylinder"], 99 99 ["sld", "1e-6/Ang^2", 4.0, [-inf, inf], "", "Cylinder scattering length density"], 100 ["s olvent_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Solvent scattering length density"],100 ["sld_solvent", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Solvent scattering length density"], 101 101 ["theta", "degrees", 90.0, [-360, 360], "orientation", "In plane angle"], 102 102 ["phi", "degrees", 0, [-360, 360], "orientation", "Out of plane angle"], … … 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, 110 sld=4.0, s olvent_sld=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3)110 sld=4.0, sld_solvent=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3) 111 111 112 112 oldname = 'EllipticalCylinderModel' 113 oldpars = dict(theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', s olvent_sld='sldSolv')113 oldpars = dict(theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', sld_solvent='sldSolv') 114 114 115 115 def ER(r_minor, r_ratio, length): … … 132 132 'sld': 4.0, 133 133 'length':400.0, 134 's olvent_sld':1.0,134 'sld_solvent':1.0, 135 135 'background':0.0 136 136 }, 0.001, 675.504402]] -
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 rce8bed9 30 30 The Kuhn length $(b = 2*l_p)$ is also used to describe the stiffness of a chain. 31 31 32 The returned value is in units of $cm^ -1$, on absolute scale.32 The returned value is in units of $cm^{-1}$, on absolute scale. 33 33 34 In the parameters, the sld Cyl and sldSolv represent the SLD of the chain/cylinder34 In the parameters, the sld and sld\_solvent represent the SLD of the cylinder 35 35 and solvent respectively. 36 36 … … 65 65 title = "Flexible cylinder where the form factor is normalized by the volume" \ 66 66 "of the cylinder." 67 description = """Note : scale and contrast =sld-solvent_sldare both67 description = """Note : scale and contrast = (sld - sld_solvent) are both 68 68 multiplicative factors in the model and are perfectly 69 69 correlated. One or both of these parameters must be held fixed … … 72 72 73 73 category = "shape:cylinder" 74 single = False 74 single = False # double precision only! 75 75 76 76 # pylint: disable=bad-whitespace, line-too-long … … 81 81 ["radius", "Ang", 20.0, [0, inf], "volume", "Radius of the flexible cylinder"], 82 82 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Cylinder scattering length density"], 83 ["s olvent_sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", "Solvent scattering length density"],83 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "", "Solvent scattering length density"], 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_J1.c", "lib/wrc_cyl.c", "flexible_cylinder.c"] 87 87 88 88 demo = dict(scale=1.0, background=0.0001, … … 91 91 radius=20.0, 92 92 sld=1.0, 93 s olvent_sld=6.3)93 sld_solvent=6.3) 94 94 95 95 oldname = 'FlexibleCylinderModel' 96 oldpars = dict(sld='sldCyl', s olvent_sld='sldSolv')96 oldpars = dict(sld='sldCyl', sld_solvent='sldSolv') 97 97 98 98 … … 104 104 # 'radius': 20.0, 105 105 # 'sld': 1.0, 106 # 's olvent_sld': 6.3,106 # 'sld_solvent': 6.3, 107 107 # 'background': 0.0001, 108 108 # }, 0.001, 3509.2187], … … 113 113 'radius': 20.0, 114 114 'sld': 1.0, 115 's olvent_sld': 6.3,115 'sld_solvent': 6.3, 116 116 'background': 0.0001, 117 117 }, 1.0, 0.000595345], … … 120 120 'radius': 2.0, 121 121 'sld': 6.0, 122 's olvent_sld': 12.3,122 'sld_solvent': 12.3, 123 123 'background': 0.001, 124 124 }, 0.1, 1.55228], … … 127 127 'radius': 50.0, 128 128 'sld': 0.1, 129 's olvent_sld': 5.1,129 'sld_solvent': 5.1, 130 130 'background': 0.0, 131 131 }, 1.0, 0.000938456] -
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 rce8bed9 24 24 ----------- 25 25 26 The function calculated i s from the reference given below. From that paper,27 "Method 3 With Excluded Volume" is used.26 The function calculated in a similar way to that for the flexible_cylinder model 27 from the reference given below using the author's "Method 3 With Excluded Volume". 28 28 The model is a parameterization of simulations of a discrete representation of 29 29 the worm-like chain model of Kratky and Porod applied in the pseudo-continuous … … 62 62 maintain this inequality. 63 63 64 The returned value is in units of $cm^ -1$, on absolute scale.64 The returned value is in units of $cm^{-1}$, on absolute scale. 65 65 66 In the parameters, the $sld Cyl$ and $sldSolv$ represent the SLD of the66 In the parameters, the $sld$ and $sld\_solvent$ represent the SLD of the 67 67 chain/cylinder and solvent respectively. The *scale*, and the contrast are both 68 68 multiplicative factors in the model and are perfectly correlated. One or both of … … 103 103 ["kuhn_length", "Ang", 100.0, [0, inf], "volume", "Kuhn length of the flexible cylinder"], 104 104 ["radius", "Ang", 20.0, [0, inf], "volume", "Radius of the flexible cylinder"], 105 ["axis_ratio", "", 1.5, [0, inf], "", "Axis_ratio (major_radius/ radius"],105 ["axis_ratio", "", 1.5, [0, inf], "", "Axis_ratio (major_radius/minor_radius"], 106 106 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Cylinder scattering length density"], 107 ["s olvent_sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", "Solvent scattering length density"],107 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "", "Solvent scattering length density"], 108 108 ] 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, … … 117 117 axis_ratio=1.5, 118 118 sld=1.0, 119 s olvent_sld=6.3)119 sld_solvent=6.3) 120 120 121 121 oldname = 'FlexCylEllipXModel' 122 oldpars = dict(sld='sldCyl', s olvent_sld='sldSolv')122 oldpars = dict(sld='sldCyl', sld_solvent='sldSolv') 123 123 124 124 … … 131 131 # 'axis_ratio': 1.5, 132 132 # 'sld': 1.0, 133 # 's olvent_sld': 6.3,133 # 'sld_solvent': 6.3, 134 134 # 'background': 0.0001, 135 135 # }, 0.001, 3509.2187], … … 141 141 'axis_ratio': 1.5, 142 142 'sld': 1.0, 143 's olvent_sld': 6.3,143 'sld_solvent': 6.3, 144 144 'background': 0.0001, 145 145 }, 1.0, 0.00223819], … … 149 149 'axis_ratio': 0.5, 150 150 'sld': 6.0, 151 's olvent_sld': 12.3,151 'sld_solvent': 12.3, 152 152 'background': 0.001, 153 153 }, 0.1, 0.390281], … … 157 157 'axis_ratio': 4.5, 158 158 'sld': 0.1, 159 's olvent_sld': 5.1,159 'sld_solvent': 5.1, 160 160 'background': 0.0, 161 161 }, 1.0, 0.0016338264790] -
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.