Analysis Modes¶
The heterodyne package implements a 14-parameter two-component correlation model with 2 additional per-angle scaling parameters. This section defines each parameter, its physical role, and contrasts the heterodyne analysis mode with the simpler homodyne alternatives.
Heterodyne Model Parameters¶
The 14 physics parameters are organized into five groups:
Reference Transport¶
Transport rate for the static reference component: \(J_r(t) = D_{0,r}\, t^{\alpha_r} + D_{\mathrm{offset},r}\)
Parameter |
Unit |
Default |
Description |
|---|---|---|---|
|
\(\text{\AA}^2/\text{s}^\alpha\) |
\(10^4\) |
Reference diffusion prefactor |
|
— |
0.0 |
Reference transport exponent |
|
\(\text{\AA}^2/\text{s}\) |
0.0 |
Reference transport rate offset |
Sample Transport¶
Transport rate for the moving sample component: \(J_s(t) = D_{0,s}\, t^{\alpha_s} + D_{\mathrm{offset},s}\)
Parameter |
Unit |
Default |
Description |
|---|---|---|---|
|
\(\text{\AA}^2/\text{s}^\alpha\) |
\(10^4\) |
Sample diffusion prefactor |
|
— |
0.0 |
Sample transport exponent |
|
\(\text{\AA}^2/\text{s}\) |
0.0 |
Sample transport rate offset |
Velocity¶
Velocity rate for the sample component: \(v(t) = v_0\, t^\beta + v_\mathrm{offset}\)
Parameter |
Unit |
Default |
Description |
|---|---|---|---|
|
\(\text{\AA}/\text{s}^\beta\) |
\(10^3\) |
Velocity prefactor |
|
— |
0.0 |
Velocity exponent (0 = constant velocity) |
|
\(\text{\AA/s}\) |
0.0 |
Velocity offset (negative allowed for reversal) |
Sample Fraction¶
Time-dependent sample fraction:
Parameter |
Unit |
Default |
Description |
|---|---|---|---|
|
— |
0.5 |
Fraction amplitude |
|
\(\text{s}^{-1}\) |
0.0 |
Exponential rate (0 = constant fraction) |
|
s |
0.0 |
Time shift |
|
— |
0.0 |
Baseline offset |
When \(f_1 = 0\), the fraction is constant: \(f_s = \operatorname{clip}(f_0 + f_3, 0, 1)\).
Flow Angle¶
Parameter |
Unit |
Default |
Description |
|---|---|---|---|
|
degrees |
0.0 |
Flow angle offset relative to \(q\)-vector |
The total flow angle is \(\varphi = \varphi_\mathrm{detector} + \varphi_0\), where \(\varphi_\mathrm{detector}\) is the known detector geometry and \(\varphi_0\) is a fitted correction.
Per-Angle Scaling Parameters¶
Two scaling parameters are fit independently for each detector angle:
Parameter |
Unit |
Default |
Description |
|---|---|---|---|
|
— |
0.5 |
Optical contrast \(\beta\) (speckle contrast) |
|
— |
1.0 |
Baseline offset |
The full model is:
Rate Functions¶
The two rate functions entering the correlation model are:
Transport rate (per component):
This is evaluated by compute_transport_rate and floored at zero to
ensure non-negative transport.
Velocity rate:
This is evaluated by compute_velocity_rate and is not floored,
because the velocity integral enters a cosine and is naturally bounded.
The velocity enters the phase factor as:
Both integrals are always evaluated numerically via trapezoid_cumsum.
No analytical antiderivatives are used.
Comparison with Homodyne Modes¶
Mode |
Parameters |
Description |
|---|---|---|
Homodyne static |
3 |
Single component: \(g_2 = 1 + \beta \exp(-2q^2 \int J\, dt)\). Parameters: \(D_0\), \(\alpha\), \(D_\mathrm{offset}\). |
Homodyne laminar flow |
7 |
Single component with shear: adds a \(\mathrm{sinc}^2\) shear broadening term and 4 flow parameters. |
Heterodyne |
14 + 2/angle |
Two components (reference + sample) with relative velocity. The cross-correlation oscillation encodes velocity information that is invisible in homodyne detection. |
The fundamental advantage of heterodyne analysis is access to the phase of the field correlation through interference with a reference. Homodyne detection measures only \(|c_1|^2\), losing all velocity phase information. The cost is a larger parameter space (14 vs. 3–7) and the requirement that a coherent reference scattering component be present in the measurement geometry.