source: sasmodels/sasmodels/models/micelle_spherical_core.py @ 0d0aee1

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 0d0aee1 was 0d0aee1, checked in by piotr, 8 years ago

Added micelle_spherical_shell

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[0d0aee1]1r"""
2
3This model provides the form factor, $P(q)$, for a micelle with a spherical
4core and Gaussian polymer chains attached to the surface.
5
6Definition
7----------
8
9The 1D scattering intensity for this model is calculated according to
10the equations given by Pedersen (Pedersen, 2000).
11
12Validation
13----------
14
15This model has not yet been validated. Feb2015
16
17
18Reference
19---------
20
21J Pedersen, *J. Appl. Cryst.*, 33 (2000) 637-640
22
23"""
24
25from numpy import inf
26
27name = "micelle_spherical_core"
28title = "Micelle Spherical Core model"
29description = """
30    This model provides the form factor, $P(q)$, for a micelle with
31    a spherical core and Gaussian polymer chains attached to the surface.
32    """
33category = "shape-independent"
34
35# pylint: disable=bad-whitespace, line-too-long
36#   ["name", "units", default, [lower, upper], "type","description"],
37parameters = [
38    ["ndensity",      "1e15/cm^3",  8.94, [0.0, inf], "", "Number density of micelles"],
39    ["v_core",        "Ang^3",  62624.0,  [0.0, inf], "", "Core volume"],
40    ["v_corona",      "Ang^3",  61940.0,  [0.0, inf], "", "Corona volume"],
41    ["solvent_sld",   "1e-6/Ang^2", 6.4,  [0.0, inf], "", "Solvent scattering length density"],
42    ["core_sld",      "1e-6/Ang^2", 0.34, [0.0, inf], "", "Core scattering length density"],
43    ["corona_sld",    "1e-6/Ang^2", 0.8,  [0.0, inf], "", "Corona scattering length density"],
44    ["radius_core",   "Ang",       45.0,  [0.0, inf], "", "Radius of core"],
45    ["radius_gyr",    "Ang",       20.0,  [0.0, inf], "", "Radius of gyration of chains in corona"],
46    ["d_penetration", "",           1.0,  [-inf, inf], "", "Factor to mimic non-penetration of Gaussian chains"],
47    ["n_aggreg",      "",           6.0,  [-inf, inf], "", "Aggregation number of the micelle"],
48    ]
49# pylint: enable=bad-whitespace, line-too-long
50
51source = ["lib/sph_j1c.c", "micelle_spherical_core.c"]
52
53demo = dict(scale=1, background=0,
54            ndensity=8.94,
55            v_core=62624.0,
56            v_corona=61940.0,
57            solvent_sld=6.4,
58            core_sld=0.34,
59            corona_sld=0.8,
60            radius_core=45.0,
61            radius_gyr=20.0,
62            d_penetration=1.0,
63            n_aggreg=6.0)
64
65
66oldname = 'MicelleSphCoreModel'
67oldpars = dict(solvent_sld='rho_solv',
68               core_sld='rho_core',
69               corona_sld='rho_corona')
70
71tests = [
72    [{}, 0.01, 15.3532],
73    ]
Note: See TracBrowser for help on using the repository browser.