source: sasmodels/sasmodels/models/star_polymer.py @ ec45c4f

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since ec45c4f was ec45c4f, checked in by Paul Kienzle <pkienzle@…>, 8 years ago

remove oldname/oldpars from new models

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[55b283e8]1r"""
[6b4f7f6]2The Benoit model for a simple star polymer, with Gaussian coils arms from
3a common point.
[55b283e8]4
5Definition
6----------
7
8For a star with $f$ arms the scattering intensity $I(q)$ is calculated as
9
10.. math::
11
12    I(q) = \frac{2}{fv^2}\left[ v-1+exp(-v)+\frac{f-1}{2}
13           \left[ 1-exp(-v)\right]^2\right]
14
15where
16
17.. math::
18
19    v=\frac{u^2f}{(3f-2)}
20
21and
22
23.. math::
24
25    u = \left\langle R_{g}^2\right\rangle q^2
26
[6b4f7f6]27contains the square of the ensemble average radius-of-gyration of an arm.  Note that
28when there is only one arm, $f$ = 1, the Debye Gaussian coil equation is recovered.
29Star polymers in solutions tend to have strong interparticle and osmotic effects, so
30the Benoit equation may not work well. At small q the Guinier term and hence I(q=0)
31is the same as for $f$ arms of radius of gyration $R_g$, as described for the :ref:`mono_gauss_coil <mono-gauss-coil>`.
[55b283e8]32
33
[6b4f7f6]34References
35----------
[55b283e8]36
37H Benoit *J. Polymer Science*, 11, 596-599 (1953)
38
39
40"""
41
42from numpy import inf
43
44name = "star_polymer"
45title = "Star polymer model with Gaussian statistics"
46description = """
[6b4f7f6]47        Benoit 'Star polymer with Gaussian statistics'
[55b283e8]48        with
49        P(q) = 2/{fv^2} * (v - (1-exp(-v)) + {f-1}/2 * (1-exp(-v))^2)
50        where
51        - v = u^2f/(3f-2)
52        - u = <R_g^2>q^2, where <R_g^2> is the ensemble average radius of
[6b4f7f6]53        gyration squared of an arm
[55b283e8]54        - f is the number of arms on the star
55        """
56category = "shape-independent"
[13ed84c]57single = False
[168052c]58# pylint: disable=bad-whitespace, line-too-long
[55b283e8]59#             ["name", "units", default, [lower, upper], "type","description"],
[6b4f7f6]60parameters = [["rg_squared", "Ang^2", 100.0, [0.0, inf], "", "Ensemble radius of gyration SQUARED of an arm"],
[55b283e8]61              ["arms",    "",      3,   [1.0, 6.0], "", "Number of arms in the model"],
[168052c]62             ]
63# pylint: enable=bad-whitespace, line-too-long
[55b283e8]64
65source = ["star_polymer.c"]
66
67demo = dict(scale=1, background=0,
[6b4f7f6]68            rg_squared=100.0,
[55b283e8]69            arms=3.0)
70
[6b4f7f6]71tests = [[{'rg_squared': 2.0,
[55b283e8]72           'arms':    3.3,
[6dd90c1]73          }, 0.5, 0.851646091108],
[55b283e8]74
[6b4f7f6]75         [{'rg_squared':    1.0,
[55b283e8]76           'arms':       2.0,
77           'background': 1.8,
[168052c]78          }, 1.0, 2.53575888234],
79        ]
[6b4f7f6]80# 23Mar2016  RKH edited docs, would this better use rg not rg^2 ? Numerical noise at extremely small q.rg
Note: See TracBrowser for help on using the repository browser.