Changes in / [2662828:bf8c271] in sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
example/oriented_usans.py
r1cd24b4 rea75043 19 19 scale=0.08, background=0, 20 20 sld=.291, sld_solvent=7.105, 21 r adius_polar=1800, radius_polar_pd=0.222296, radius_polar_pd_n=0,22 r adius_equatorial=2600, radius_equatorial_pd=0.28, radius_equatorial_pd_n=0,21 r_polar=1800, r_polar_pd=0.222296, r_polar_pd_n=0, 22 r_equatorial=2600, r_equatorial_pd=0.28, r_equatorial_pd_n=0, 23 23 theta=60, theta_pd=0, theta_pd_n=0, 24 24 phi=60, phi_pd=0, phi_pd_n=0, … … 26 26 27 27 # SET THE FITTING PARAMETERS 28 model.r adius_polar.range(1000, 10000)29 model.r adius_equatorial.range(1000, 10000)28 model.r_polar.range(1000, 10000) 29 model.r_equatorial.range(1000, 10000) 30 30 model.theta.range(0, 360) 31 31 model.phi.range(0, 360) -
sasmodels/models/onion.py
rbccb40f r925ad6e 1 1 r""" 2 2 This model provides the form factor, $P(q)$, for a multi-shell sphere where 3 the scattering length density (SLD) of each shell is described by an3 the scattering length density (SLD) of the each shell is described by an 4 4 exponential, linear, or constant function. The form factor is normalized by 5 5 the volume of the sphere where the SLD is not identical to the SLD of the … … 142 142 143 143 For $A = 0$, the exponential function has no dependence on the radius (so that 144 $\rho_\text{out}$ is ignored inthis case) and becomes flat. We set the constant144 $\rho_\text{out}$ is ignored this case) and becomes flat. We set the constant 145 145 to $\rho_\text{in}$ for convenience, and thus the form factor contributed by 146 146 the shells is … … 346 346 # flat shell 347 347 z.append(z_current + thickness[k]) 348 rho.append(sld_ in[k])348 rho.append(sld_out[k]) 349 349 else: 350 350 # exponential shell … … 357 357 z.append(z_current+z_shell) 358 358 rho.append(slope*exp(A[k]*z_shell/thickness[k]) + const) 359 359 360 360 # add in the solvent 361 361 z.append(z[-1])
Note: See TracChangeset
for help on using the changeset viewer.