[80768fc] | 1 | r""" |
---|
[f224873] | 2 | Calculates the scattering from a randomly distributed, two-phase system based on |
---|
| 3 | the Debye-Anderson-Brumberger (DAB) model for such systems. The two-phase system |
---|
| 4 | is characterized by a single length scale, the correlation length, which is a |
---|
| 5 | measure of the average spacing between regions of phase 1 and phase 2. **The |
---|
| 6 | model also assumes smooth interfaces between the phases** and hence exhibits |
---|
[eb69cce] | 7 | Porod behavior $(I \sim q^{-4})$ at large $q$, $(qL \gg 1)$. |
---|
[80768fc] | 8 | |
---|
| 9 | The DAB model is ostensibly a development of the earlier Debye-Bueche model. |
---|
| 10 | |
---|
[eb69cce] | 11 | Definition |
---|
| 12 | ---------- |
---|
| 13 | |
---|
| 14 | .. math:: |
---|
[80768fc] | 15 | |
---|
[eb69cce] | 16 | I(q) = \text{scale}\cdot\frac{L^3}{(1 + (q\cdot L)^2)^2} + \text{background} |
---|
[80768fc] | 17 | |
---|
| 18 | where scale is |
---|
| 19 | |
---|
[eb69cce] | 20 | .. math:: \text{scale} = 8 \pi \phi (1-\phi) \Delta\rho^2 |
---|
[80768fc] | 21 | |
---|
[eb69cce] | 22 | and the parameter $L$ is the correlation length. |
---|
[f224873] | 23 | |
---|
[eb69cce] | 24 | For 2D data the scattering intensity is calculated in the same way as 1D, |
---|
| 25 | where the $q$ vector is defined as |
---|
[f224873] | 26 | |
---|
| 27 | .. math:: q = \sqrt{q_x^2 + q_y^2} |
---|
| 28 | |
---|
| 29 | |
---|
[eb69cce] | 30 | References |
---|
| 31 | ---------- |
---|
[80768fc] | 32 | |
---|
[f224873] | 33 | P Debye, H R Anderson, H Brumberger, *Scattering by an Inhomogeneous Solid. II. |
---|
| 34 | The Correlation Function and its Application*, *J. Appl. Phys.*, 28(6) (1957) 679 |
---|
[80768fc] | 35 | |
---|
[f224873] | 36 | P Debye, A M Bueche, *Scattering by an Inhomogeneous Solid*, *J. Appl. Phys.*, |
---|
| 37 | 20 (1949) 518 |
---|
[80768fc] | 38 | |
---|
| 39 | *2013/09/09 - Description reviewed by King, S and Parker, P.* |
---|
| 40 | |
---|
| 41 | """ |
---|
| 42 | |
---|
| 43 | from numpy import inf |
---|
| 44 | |
---|
| 45 | name = "dab" |
---|
| 46 | title = "DAB (Debye Anderson Brumberger) Model" |
---|
| 47 | description = """\ |
---|
| 48 | |
---|
[f224873] | 49 | F(q)= scale * L^3/(1 + (q*L)^2)^2 |
---|
[80768fc] | 50 | |
---|
| 51 | L: the correlation length |
---|
| 52 | |
---|
| 53 | """ |
---|
[a5d0d00] | 54 | category = "shape-independent" |
---|
[80768fc] | 55 | |
---|
[3e428ec] | 56 | # ["name", "units", default, [lower, upper], "type", "description"], |
---|
| 57 | parameters = [["length", "Ang", 50.0, [0, inf], "", "correlation length"], |
---|
| 58 | ] |
---|
[80768fc] | 59 | |
---|
| 60 | Iq = """ |
---|
| 61 | double numerator = pow(length, 3); |
---|
| 62 | double denominator = pow(1 + pow(q*length,2), 2); |
---|
| 63 | |
---|
| 64 | return numerator / denominator ; |
---|
| 65 | """ |
---|
| 66 | |
---|
| 67 | Iqxy = """ |
---|
| 68 | // never called since no orientation or magnetic parameters. |
---|
| 69 | //return -1.0; |
---|
| 70 | return Iq(sqrt(qx*qx + qy*qy), length); |
---|
| 71 | """ |
---|
| 72 | |
---|
| 73 | # ER defaults to 1.0 |
---|
| 74 | |
---|
| 75 | # VR defaults to 1.0 |
---|
| 76 | |
---|
[3e428ec] | 77 | demo = dict(scale=1, background=0, length=50) |
---|