ictdesigntools.optical.dispersion¶
Chromatic dispersion and polarization mode dispersion along a link of fibre spans.
A link is a sequence of Spans, each a length of one optical.media category, with any
dispersion compensation (a compensating module, or a coherent receiver's electronic
compensation) as a negative compensation_ps_per_nm.
Chromatic dispersion (CD) adds linearly: each span contributes its coefficient times its
length, in ps/nm. A category allows a range of coefficients, so the link's CD is a range too;
chromatic_dispersion() returns it, and check() compares its worst end with a receiver's
tolerance.
PMD adds in quadrature: the differential group delay of independent sections combines as
the square root of the sum of squares, so the link design value is
sqrt(Σ PMDQ_i² · L_i) ps for spans of PMD link design value PMDQ_i (ps/√km) and length
L_i (km).
>>> link = [Span("G.652.D", 40), Span("G.652.D", 40)]
>>> cd = chromatic_dispersion(link, 1550)
>>> round(cd.min_ps_per_nm), round(cd.max_ps_per_nm)
(1064, 1488)
>>> round(pmd_ps(link), 2)
1.79
>>> check(link, 1550, cd_tolerance_ps_per_nm=(-800, 1600), pmd_tolerance_ps=10).passes
True
DispersionError ¶
Bases: ValueError
A span or tolerance that cannot be worked out.
Span
dataclass
¶
length_km of one fibre category, with compensation_ps_per_nm added at its end
(negative to compensate positive dispersion).
Dispersion
dataclass
¶
Check
dataclass
¶
chromatic_dispersion ¶
chromatic_dispersion(
spans, wavelength_nm: float
) -> Dispersion
The link's accumulated CD range at wavelength_nm, from each span's category limits
and its compensation. Raises DispersionError when a category sets no limit there.
Source code in src/ictdesigntools/optical/dispersion.py
pmd_ps ¶
pmd_ps(spans) -> float
The link's PMD design value, ps: the spans' values added in quadrature.
check ¶
check(
spans,
wavelength_nm: float,
cd_tolerance_ps_per_nm=None,
pmd_tolerance_ps: float | None = None,
) -> Check
The link's CD and PMD against a receiver's tolerances. cd_tolerance_ps_per_nm is a
(lowest, highest) pair, or one number for ±that; pmd_tolerance_ps the largest PMD
(mean DGD) the receiver accepts. Either may be None to skip it.