Changeset bccb40f in sasmodels
 Timestamp:
 Apr 6, 2017 10:48:48 AM (12 months ago)
 Branches:
 master, costrafo411, cudatest, doc_update, pytest, ticket1052, ticket896
 Children:
 142a8e2
 Parents:
 650c6d2
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/models/onion.py
rc3ccaec rbccb40f 1 1 r""" 2 2 This model provides the form factor, $P(q)$, for a multishell sphere where 3 the scattering length density (SLD) of theeach shell is described by an3 the scattering length density (SLD) of 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 this case) and becomes flat. We set the constant144 $\rho_\text{out}$ is ignored in 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_ out[k])348 rho.append(sld_in[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.