# Changeset bccb40f in sasmodels

Ignore:
Timestamp:
Apr 6, 2017 10:48:48 AM (16 months ago)
Branches:
master, ESS_GUI, beta_approx, costrafo411, cuda-test, doc_update, ticket-1084, ticket-1102-pinhole, ticket-1105_mass_surface_fractal, ticket-1112, ticket-608-user-defined-weights
Children:
142a8e2
Parents:
650c6d2
Message:

Fix profile function to plot what the documentation says about the SLD when A = 0

File:
1 edited

### Legend:

Unmodified
 rc3ccaec r""" This model provides the form factor, $P(q)$, for a multi-shell sphere where the scattering length density (SLD) of the each shell is described by an the scattering length density (SLD) of each shell is described by an exponential, linear, or constant function. The form factor is normalized by the volume of the sphere where the SLD is not identical to the SLD of the For $A = 0$, the exponential function has no dependence on the radius (so that $\rho_\text{out}$ is ignored this case) and becomes flat. We set the constant $\rho_\text{out}$ is ignored in this case) and becomes flat. We set the constant to $\rho_\text{in}$ for convenience, and thus the form factor contributed by the shells is # flat shell z.append(z_current + thickness[k]) rho.append(sld_out[k]) rho.append(sld_in[k]) else: # exponential shell z.append(z_current+z_shell) rho.append(slope*exp(A[k]*z_shell/thickness[k]) + const) # add in the solvent z.append(z[-1])