[dc02af0] | 1 | # Note: model title and parameter table are inserted automatically |
---|
| 2 | r""" |
---|
[a5d0d00] | 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. |
---|
[eb69cce] | 5 | Here a Caille $S(q)$ is used for the lamellar stacks. |
---|
| 6 | |
---|
| 7 | Definition |
---|
| 8 | ---------- |
---|
[dc02af0] | 9 | |
---|
[a5d0d00] | 10 | The scattering intensity $I(q)$ is |
---|
[dc02af0] | 11 | |
---|
[eb69cce] | 12 | .. math:: |
---|
[a5d0d00] | 13 | |
---|
| 14 | I(q) = 2\pi \frac{P(q)S(q)}{\delta q^2} |
---|
[dc02af0] | 15 | |
---|
| 16 | The form factor is |
---|
| 17 | |
---|
[eb69cce] | 18 | .. math:: |
---|
[a5d0d00] | 19 | |
---|
| 20 | P(q) = \frac{2\Delta\rho^2}{q^2}\left(1-\cos q\delta \right) |
---|
[dc02af0] | 21 | |
---|
| 22 | and the structure factor is |
---|
| 23 | |
---|
[eb69cce] | 24 | .. math:: |
---|
[a5d0d00] | 25 | |
---|
| 26 | S(q) = 1 + 2 \sum_1^{N-1}\left(1-\frac{n}{N}\right) |
---|
| 27 | \cos(qdn)\exp\left(-\frac{2q^2d^2\alpha(n)}{2}\right) |
---|
[dc02af0] | 28 | |
---|
| 29 | where |
---|
| 30 | |
---|
[eb69cce] | 31 | .. math:: |
---|
[d18f8a8] | 32 | :nowrap: |
---|
[dc02af0] | 33 | |
---|
[d18f8a8] | 34 | \begin{align*} |
---|
[eb69cce] | 35 | \alpha(n) &= \frac{\eta_{cp}}{4\pi^2} \left(\ln(\pi n)+\gamma_E\right) |
---|
[d18f8a8] | 36 | && \\ |
---|
[eb69cce] | 37 | \gamma_E &= 0.5772156649 |
---|
[d18f8a8] | 38 | && \text{Euler's constant} \\ |
---|
[eb69cce] | 39 | \eta_{cp} &= \frac{q_o^2k_B T}{8\pi\sqrt{K\overline{B}}} |
---|
[d18f8a8] | 40 | && \text{Caille constant} |
---|
| 41 | \end{align*} |
---|
[dc02af0] | 42 | |
---|
[a5d0d00] | 43 | Here $d$ = (repeat) spacing, $\delta$ = bilayer thickness, |
---|
| 44 | the contrast $\Delta\rho$ = SLD(headgroup) - SLD(solvent), |
---|
| 45 | $K$ = smectic bending elasticity, $B$ = compression modulus, and |
---|
| 46 | $N$ = number of lamellar plates (*n_plates*). |
---|
[dc02af0] | 47 | |
---|
[a5d0d00] | 48 | NB: **When the Caille parameter is greater than approximately 0.8 to 1.0, the |
---|
| 49 | assumptions of the model are incorrect.** And due to a complication of the |
---|
| 50 | model function, users are responsible for making sure that all the assumptions |
---|
| 51 | are handled accurately (see the original reference below for more details). |
---|
[dc02af0] | 52 | |
---|
[a5d0d00] | 53 | Non-integer numbers of stacks are calculated as a linear combination of |
---|
| 54 | results for the next lower and higher values. |
---|
| 55 | |
---|
| 56 | The 2D scattering intensity is calculated in the same way as 1D, where the |
---|
| 57 | $q$ vector is defined as |
---|
[dc02af0] | 58 | |
---|
| 59 | .. math:: |
---|
| 60 | |
---|
[a5d0d00] | 61 | q = \sqrt{q_x^2 + q_y^2} |
---|
[dc02af0] | 62 | |
---|
[eb69cce] | 63 | .. figure:: img/lamellarCaille_1d.jpg |
---|
[dc02af0] | 64 | |
---|
[eb69cce] | 65 | 1D plot using the default values (w/6000 data point). |
---|
[dc02af0] | 66 | |
---|
[eb69cce] | 67 | References |
---|
| 68 | ---------- |
---|
[dc02af0] | 69 | |
---|
| 70 | F Nallet, R Laversanne, and D Roux, J. Phys. II France, 3, (1993) 487-502 |
---|
| 71 | |
---|
| 72 | also in J. Phys. Chem. B, 105, (2001) 11081-11088 |
---|
| 73 | """ |
---|
[3c56da87] | 74 | from numpy import inf |
---|
[dc02af0] | 75 | |
---|
| 76 | name = "lamellarPS" |
---|
| 77 | title = "Random lamellar sheet with Caille structure factor" |
---|
| 78 | description = """\ |
---|
| 79 | [Random lamellar phase with Caille structure factor] |
---|
| 80 | randomly oriented stacks of infinite sheets |
---|
| 81 | with Caille S(Q), having polydisperse spacing. |
---|
| 82 | sld = sheet scattering length density |
---|
| 83 | sld_solvent = solvent scattering length density |
---|
| 84 | background = incoherent background |
---|
| 85 | scale = scale factor |
---|
| 86 | """ |
---|
[a5d0d00] | 87 | category = "shape:lamellae" |
---|
[dc02af0] | 88 | |
---|
[3e428ec] | 89 | # ["name", "units", default, [lower, upper], "type","description"], |
---|
| 90 | parameters = [["thickness", "Ang", 30.0, [0, inf], "volume", "sheet thickness"], |
---|
| 91 | ["Nlayers", "", 20, [0, inf], "", "Number of layers"], |
---|
| 92 | ["spacing", "Ang", 400., [0.0,inf], "volume", "d-spacing of Caille S(Q)"], |
---|
| 93 | ["Caille_parameter", "1/Ang^2", 0.1, [0.0,0.8], "", "Caille parameter"], |
---|
| 94 | ["sld", "1e-6/Ang^2", 6.3, [-inf,inf], "", |
---|
| 95 | "layer scattering length density"], |
---|
| 96 | ["solvent_sld", "1e-6/Ang^2", 1.0, [-inf,inf], "", |
---|
| 97 | "Solvent scattering length density"], |
---|
| 98 | ] |
---|
| 99 | |
---|
| 100 | source = ["lamellarCaille_kernel.c"] |
---|
[dc02af0] | 101 | |
---|
| 102 | # No volume normalization despite having a volume parameter |
---|
| 103 | # This should perhaps be volume normalized? |
---|
| 104 | form_volume = """ |
---|
| 105 | return 1.0; |
---|
| 106 | """ |
---|
| 107 | |
---|
| 108 | Iqxy = """ |
---|
[bfb195e] | 109 | return Iq(sqrt(qx*qx+qy*qy), IQ_PARAMETERS); |
---|
[dc02af0] | 110 | """ |
---|
| 111 | |
---|
| 112 | # ER defaults to 0.0 |
---|
| 113 | # VR defaults to 1.0 |
---|
| 114 | |
---|
[3e428ec] | 115 | demo = dict(scale=1, background=0, |
---|
| 116 | thickness=67.,Nlayers=3.75,spacing=200., |
---|
| 117 | Caille_parameter=0.268,sld=1.0, solvent_sld=6.34, |
---|
| 118 | thickness_pd= 0.1, thickness_pd_n=100, |
---|
| 119 | spacing_pd= 0.05, spacing_pd_n=40) |
---|
[dc02af0] | 120 | |
---|
| 121 | oldname = 'LamellarPSModel' |
---|
[3e428ec] | 122 | oldpars = dict(thickness='delta', Nlayers='N_plates', Caille_parameter='caille', |
---|
| 123 | sld='sld_bi',solvent_sld='sld_sol') |
---|