Changeset 2d81cfe in sasmodels for sasmodels/models/polymer_micelle.py
- Timestamp:
- Nov 29, 2017 1:13:23 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/polymer_micelle.py
rca04add r2d81cfe 13 13 the equations given by Pedersen (Pedersen, 2000), summarised briefly here. 14 14 15 The micelle core is imagined as $N\_aggreg$ polymer heads, each of volume $v\_core$, 16 which then defines a micelle core of $radius\_core$, which is a separate parameter 17 even though it could be directly determined. 18 The Gaussian random coil tails, of gyration radius $rg$, are imagined uniformly 19 distributed around the spherical core, centred at a distance $radius\_core + d\_penetration.rg$ 20 from the micelle centre, where $d\_penetration$ is of order unity. 21 A volume $v\_corona$ is defined for each coil. 22 The model in detail seems to separately parametrise the terms for the shape of I(Q) and the 23 relative intensity of each term, so use with caution and check parameters for consistency. 24 The spherical core is monodisperse, so it's intensity and the cross terms may have sharp 25 oscillations (use q resolution smearing if needs be to help remove them). 15 The micelle core is imagined as $N$ = *n_aggreg* polymer heads, each of volume 16 $V_\text{core}$, which then defines a micelle core of radius $r$ = *r_core*, 17 which is a separate parameter even though it could be directly determined. 18 The Gaussian random coil tails, of gyration radius $R_g$, are imagined 19 uniformly distributed around the spherical core, centred at a distance 20 $r + d \cdot R_g$ from the micelle centre, where $d$ = *d_penetration* is 21 of order unity. A volume $V_\text{corona}$ is defined for each coil. The 22 model in detail seems to separately parametrise the terms for the shape 23 of $I(Q)$ and the relative intensity of each term, so use with caution 24 and check parameters for consistency. The spherical core is monodisperse, 25 so it's intensity and the cross terms may have sharp oscillations (use $q$ 26 resolution smearing if needs be to help remove them). 26 27 27 28 .. math:: 28 P(q) = N^2\beta^2_s\Phi(qR)^2+N\beta^2_cP_c(q)+2N^2\beta_s\beta_cS_{sc}s_c(q)+N(N-1)\beta_c^2S_{cc}(q) \\ 29 \beta_s = v\_core(sld\_core - sld\_solvent) \\ 30 \beta_c = v\_corona(sld\_corona - sld\_solvent) 29 P(q) &= N^2\beta^2_s\Phi(qr)^2 + N\beta^2_cP_c(q) 30 + 2N^2\beta_s\beta_cS_{sc}s_c(q) + N(N-1)\beta_c^2S_{cc}(q) \\ 31 \beta_s &= V_\text{core}(\rho_\text{core} - \rho_\text{solvent}) \\ 32 \beta_c &= V_\text{corona}(\rho_\text{corona} - \rho_\text{solvent}) 31 33 32 where $N = n\_aggreg$, and for the spherical core of radius $R$ 34 where $\rho_\text{core}$, $\rho_\text{corona}$ and $\rho_\text{solvent}$ are 35 the scattering length densities *sld_core*, *sld_corona* and *sld_solvent*. 36 For the spherical core of radius $r$ 33 37 34 38 .. math:: 35 \Phi(q R)= \frac{\sin(qr) - qr\cos(qr)}{(qr)^3}39 \Phi(qr)= \frac{\sin(qr) - qr\cos(qr)}{(qr)^3} 36 40 37 41 whilst for the Gaussian coils … … 42 46 Z &= (q R_g)^2 43 47 44 The sphere to coil ( core to corona) and coil to coil (corona to corona) cross terms are45 approximated by:48 The sphere to coil (core to corona) and coil to coil (corona to corona) cross 49 terms are approximated by: 46 50 47 51 .. math:: 48 52 49 S_{sc}(q)=\Phi(qR)\psi(Z)\frac{sin(q(R+d.R_g))}{q(R+d.R_g)} \\ 50 S_{cc}(q)=\psi(Z)^2\left[\frac{sin(q(R+d.R_g))}{q(R+d.R_g)} \right ]^2 \\ 51 \psi(Z)=\frac{[1-exp^{-Z}]}{Z} 53 S_{sc}(q) &= \Phi(qr)\psi(Z) 54 \frac{\sin(q(r+d \cdot R_g))}{q(r+d \cdot R_g)} \\ 55 S_{cc}(q) &= \psi(Z)^2 56 \left[\frac{\sin(q(r+d \cdot R_g))}{q(r+d \cdot R_g)} \right]^2 \\ 57 \psi(Z) &= \frac{[1-\exp^{-Z}]}{Z} 52 58 53 59 Validation 54 60 ---------- 55 61 56 $P(q)$ above is multiplied by $ndensity$, and a units conversion of 10^{-13}, so $scale$57 is likely 1.0 if the scattering data is in absolute units. This model has not yet been 58 independently validated.62 $P(q)$ above is multiplied by *ndensity*, and a units conversion of $10^{-13}$, 63 so *scale* is likely 1.0 if the scattering data is in absolute units. This 64 model has not yet been independently validated. 59 65 60 66 … … 63 69 64 70 J Pedersen, *J. Appl. Cryst.*, 33 (2000) 637-640 65 66 71 """ 67 72 73 import numpy as np 68 74 from numpy import inf, pi 69 75 … … 102 108 103 109 def random(): 104 import numpy as np105 110 radius_core = 10**np.random.uniform(1, 3) 106 111 rg = radius_core * 10**np.random.uniform(-2, -0.3)
Note: See TracChangeset
for help on using the changeset viewer.