Changeset eb69cce in sasmodels for sasmodels/models/broad_peak.py
- Timestamp:
- Nov 30, 2015 9:18:41 PM (8 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:
- d18f8a8
- Parents:
- d138d43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/broad_peak.py
rd138d43 reb69cce 10 10 spherical morphologies, or for bicontinuous structures). 11 11 12 The returned value is scaled to units of |cm^-1|, absolute scale.13 14 12 Definition 15 13 ---------- 16 14 17 The scattering intensity *I(q)*is calculated as15 The scattering intensity $I(q)$ is calculated as 18 16 19 .. math: 17 .. math:: 20 18 21 I(q) = \frac{A}{ Q^n} + \frac{C}{1 + (Q\xi}^m} + B19 I(q) = \frac{A}{q^n} + \frac{C}{1 + (q\xi)^m} + B 22 20 23 Here the peak position is related to the d-spacing as *Q0* = 2|pi| / *d0*.21 Here the peak position is related to the d-spacing as $q_o = 2\pi / d_o$. 24 22 25 For 2D data : The 2Dscattering intensity is calculated in the same way as 1D,26 where the *q*vector is defined as23 For 2D data the scattering intensity is calculated in the same way as 1D, 24 where the $q$ vector is defined as 27 25 28 .. math: 26 .. math:: 29 27 30 28 q = \sqrt{q_x^2 + q_y^2} … … 35 33 1D plot using the default values (w/200 data point). 36 34 37 R EFERENCE38 --------- 35 References 36 ---------- 39 37 40 38 None. … … 75 73 / (1.0 + (abs(q - peak_pos) * lorentz_length) ** lorentz_exp)) 76 74 return inten 77 Iq.vectorized = True # Iq accepts an array of Qvalues75 Iq.vectorized = True # Iq accepts an array of q values 78 76 79 77 def Iqxy(qx, qy, *args): 80 78 return Iq(sqrt(qx ** 2 + qy ** 2), *args) 81 Iqxy.vectorized = True # Iqxy accepts an array of Qx, Qy values79 Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 82 80 83 81
Note: See TracChangeset
for help on using the changeset viewer.