# Changeset 2662828 in sasmodels

Ignore:
Timestamp:
Apr 11, 2017 9:43:45 AM (8 months ago)
Branches:
master, boltzmann, costrafo411, generic_integration_loop, ticket-1043, ticket-786
Children:
9dcb21d
Parents:
bf8c271 (diff), 1cd24b4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into ticket-741

Files:
3 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])