Changeset a151caa in sasmodels for sasmodels/models/core_shell_bicelle.py
- Timestamp:
- Jul 28, 2017 10:49:09 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 404ebbd
- Parents:
- 0bdddc2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_bicelle.py
r9802ab3 ra151caa 17 17 .. figure:: img/core_shell_bicelle_parameters.png 18 18 19 Cross section of cylindrical symmetry model used here. Users will have 20 to decide how to distribute "heads" and "tails" between the rim, face 19 Cross section of cylindrical symmetry model used here. Users will have 20 to decide how to distribute "heads" and "tails" between the rim, face 21 21 and core regions in order to estimate appropriate starting parameters. 22 22 … … 27 27 .. math:: 28 28 29 \rho(r) = 30 \begin{cases} 29 \rho(r) = 30 \begin{cases} 31 31 &\rho_c \text{ for } 0 \lt r \lt R; -L \lt z\lt L \\[1.5ex] 32 32 &\rho_f \text{ for } 0 \lt r \lt R; -(L+2t) \lt z\lt -L; … … 47 47 .. math:: 48 48 49 \begin{align} 50 F(Q,\alpha) = &\bigg[ 49 \begin{align} 50 F(Q,\alpha) = &\bigg[ 51 51 (\rho_c - \rho_f) V_c \frac{2J_1(QRsin \alpha)}{QRsin\alpha}\frac{sin(QLcos\alpha/2)}{Q(L/2)cos\alpha} \\ 52 52 &+(\rho_f - \rho_r) V_{c+f} \frac{2J_1(QRsin\alpha)}{QRsin\alpha}\frac{sin(Q(L/2+t_f)cos\alpha)}{Q(L/2+t_f)cos\alpha} \\ 53 53 &+(\rho_r - \rho_s) V_t \frac{2J_1(Q(R+t_r)sin\alpha)}{Q(R+t_r)sin\alpha}\frac{sin(Q(L/2+t_f)cos\alpha)}{Q(L/2+t_f)cos\alpha} 54 54 \bigg] 55 \end{align} 55 \end{align} 56 56 57 57 where $V_t$ is the total volume of the bicelle, $V_c$ the volume of the core, … … 63 63 cylinders is then given by integrating over all possible $\theta$ and $\phi$. 64 64 65 For oriented bicelles the *theta*, and *phi* orientation parameters will appear when fitting 2D data, 65 For oriented bicelles the *theta*, and *phi* orientation parameters will appear when fitting 2D data, 66 66 see the :ref:`cylinder` model for further information. 67 67 Our implementation of the scattering kernel and the 1D scattering intensity … … 96 96 title = "Circular cylinder with a core-shell scattering length density profile.." 97 97 description = """ 98 P(q,alpha)= (scale/Vs)*f(q)^(2) + bkg, where: 98 P(q,alpha)= (scale/Vs)*f(q)^(2) + bkg, where: 99 99 f(q)= Vt(sld_rim - sld_solvent)* sin[qLt.cos(alpha)/2] 100 100 /[qLt.cos(alpha)/2]*J1(qRout.sin(alpha)) … … 147 147 "core_shell_bicelle.c"] 148 148 149 def random(): 150 import numpy as np 151 pars = dict( 152 radius=10**np.random.uniform(1.3, 3), 153 length=10**np.random.uniform(1.3, 4), 154 thick_rim=10**np.random.uniform(0, 1.7), 155 thick_face=10**np.random.uniform(0, 1.7), 156 ) 157 return pars 158 149 159 demo = dict(scale=1, background=0, 150 160 radius=20.0,
Note: See TracChangeset
for help on using the changeset viewer.