SasView / sasmodels

Package for calculation of small angle scattering models using OpenCL.
BSD 3-Clause "New" or "Revised" License
15 stars 27 forks source link

sld profile for core_shell_sphere #583

Open pkienzle opened 11 months ago

pkienzle commented 11 months ago

The core-shell sphere model does not have a profile function.

Something like:

def profile(radius, thickness, sld_core, sld_shell, sld_solvent):
    z = [0, radius, radius, radius+thickness, radius+thickness, (radius+thickness)*1.25]
    rho = [sld_core, sld_core, sld_shell, sld_shell, sld_solvent, sld_solvent]
    return np.asarray(z), np.asarray(rho)