Changeset a5d0d00 in sasmodels for sasmodels/models/lamellarCaille.py
- Timestamp:
- Feb 27, 2015 1:16:23 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 61ba623
- Parents:
- 529b8b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lamellarCaille.py
rdc02af0 ra5d0d00 1 1 # Note: model title and parameter table are inserted automatically 2 2 r""" 3 This model provides the scattering intensity, *I(q)* = *P(q)* \* *S(q)*, for a lamellar phase where a random 4 distribution in solution are assumed. Here a Caille S(Q) is used for the lamellar stacks. 3 This model provides the scattering intensity, $I(q) = P(q) S(q)$, for a 4 lamellar phase where a random distribution in solution are assumed. 5 Here a Caille $S(Q)$ is used for the lamellar stacks. 5 6 6 The scattering intensity *I(q)*is7 The scattering intensity $I(q)$ is 7 8 8 .. image:: img/lamellarCaille_139.PNG 9 .. math: 10 11 I(q) = 2\pi \frac{P(q)S(q)}{\delta q^2} 9 12 10 13 The form factor is 11 14 12 .. image:: img/lamellarCaille_134.PNG 15 .. math: 16 17 P(q) = \frac{2\Delta\rho^2}{q^2}\left(1-\cos q\delta \right) 13 18 14 19 and the structure factor is 15 20 16 .. image:: img/lamellarCaille_.PNG 21 .. math: 22 23 S(q) = 1 + 2 \sum_1^{N-1}\left(1-\frac{n}{N}\right) 24 \cos(qdn)\exp\left(-\frac{2q^2d^2\alpha(n)}{2}\right) 17 25 18 26 where 19 27 20 .. image:: img/lamellarCaille_.PNG28 .. math: 21 29 22 Here *d* = (repeat) spacing, |delta| = bilayer thickness, the contrast |drho| = SLD(headgroup) - SLD(solvent), 23 K = smectic bending elasticity, B = compression modulus, and N = number of lamellar plates (*n_plates*). 30 \begin{eqnarray} 31 \alpha(n) &=& \frac{\eta_{cp}}{4\pi^2} \left(\ln(\pi n)+\gamma_E\right) \\ 32 \gamma_E &=& 0.5772156649 && \text{Euler's constant} \\ 33 \eta_{cp} &=& \frac{q_o^2k_B T}{8\pi\sqrt{K\overline{B}}} && \text{Caille constant} 34 \end{eqnarray} 24 35 25 NB: **When the Caille parameter is greater than approximately 0.8 to 1.0, the assumptions of the model are incorrect.** 26 And due to a complication of the model function, users are responsible for making sure that all the assumptions are 27 handled accurately (see the original reference below for more details). 36 Here $d$ = (repeat) spacing, $\delta$ = bilayer thickness, 37 the contrast $\Delta\rho$ = SLD(headgroup) - SLD(solvent), 38 $K$ = smectic bending elasticity, $B$ = compression modulus, and 39 $N$ = number of lamellar plates (*n_plates*). 28 40 29 Non-integer numbers of stacks are calculated as a linear combination of results for the next lower and higher values. 41 NB: **When the Caille parameter is greater than approximately 0.8 to 1.0, the 42 assumptions of the model are incorrect.** And due to a complication of the 43 model function, users are responsible for making sure that all the assumptions 44 are handled accurately (see the original reference below for more details). 30 45 31 The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as 46 Non-integer numbers of stacks are calculated as a linear combination of 47 results for the next lower and higher values. 48 49 The 2D scattering intensity is calculated in the same way as 1D, where the 50 $q$ vector is defined as 32 51 33 52 .. math:: 34 53 35 Q = \sqrt{Q_x^2 + Q_y^2}54 q = \sqrt{q_x^2 + q_y^2} 36 55 37 56 The returned value is in units of |cm^-1|, on absolute scale. 38 57 39 ============== ======== ============= 40 Parameter name Units Default value 41 ============== ======== ============= 42 background |cm^-1| 0.0 43 contrast |Ang^-2| 5e-06 44 scale None 1 45 delta |Ang| 30 46 n_plates None 20 47 spacing |Ang| 400 48 caille |Ang^-2| 0.1 49 ============== ======== ============= 50 51 .. image:: img/lamellarPS_142.jpg 58 .. image:: img/lamellarCaille_1d.jpg 52 59 53 60 *Figure. 1D plot using the default values (w/6000 data point).* 54 61 55 Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research56 (Kline, 2006).62 Our model uses the form factor calculations as implemented in a c library 63 provided by the NIST Center for Neutron Research (Kline, 2006). 57 64 58 65 REFERENCE 66 --------- 59 67 60 68 F Nallet, R Laversanne, and D Roux, J. Phys. II France, 3, (1993) 487-502 … … 75 83 scale = scale factor 76 84 """ 85 category = "shape:lamellae" 77 86 78 87 parameters = [ … … 85 94 [ "spacing", "Ang", 400., [0.0,inf], "volume", 86 95 "d-spacing of Caille S(Q)" ], 87 [ "Caille_parameter", " Ang^-2", 0.1, [0.0,0.8], "",96 [ "Caille_parameter", "1/Ang^2", 0.1, [0.0,0.8], "", 88 97 "Caille parameter" ], 89 98 [ "sld", "1e-6/Ang^2", 6.3, [-inf,inf], "",
Note: See TracChangeset
for help on using the changeset viewer.