From 7b2278ddbd532aa95570cb65d53f9526db5e36af Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Thu, 12 Nov 2026 15:18:28 +0000 Subject: [PATCH 1/6] =?UTF-8?q?Add=20BBO's=20ordinary=20and=20extraordinar?= =?UTF-8?q?y=20Sellmeier=20formulas=20(Tamo=C5=A1auskas=202018)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eq. (1) of Tamošauskas et al., Opt. Mater. Express 8, 1410 (2018), both rays over 188 nm-5.2 um, as the recommended models of BBO. They reproduce the type I SHG angle of 800 nm (29.21 against the 29.2 degree cut); Eimerl's 1987 indices lie 7-9e-4 above both rays (TC-1095). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WM2AxMiUXc12ViRwSf2cyL --- REGISTER.md | 33 ++++++++++ changelog.d/bbo-tamosauskas.added.md | 1 + docs/crystals.md | 16 ++++- src/optmat/data/catalogue_index.json | 1 + src/optmat/data/solid/defaults.toml | 5 ++ src/optmat/data/sources/tamosauskas_2018.toml | 63 +++++++++++++++++++ tests/solid/test_crystals.py | 28 ++++++++- 7 files changed, 145 insertions(+), 2 deletions(-) create mode 100644 changelog.d/bbo-tamosauskas.added.md create mode 100644 src/optmat/data/sources/tamosauskas_2018.toml diff --git a/REGISTER.md b/REGISTER.md index cf44e07e..abcf3418 100644 --- a/REGISTER.md +++ b/REGISTER.md @@ -29593,3 +29593,36 @@ tabulate (the table model clamps outside its range, so only in-range points coun against 0.623 at 1.5e14) and about equal from 2.3e14. With up to 11 % in the intensity (a factor of about 1.7 in the rate) it supports the default's xenon, not RMT's. - **Status:** verified (2026-10-17). + +## TC-1095 tamosauskas_2018: BBO's ordinary and extraordinary Sellmeier formulas (2026-11-12) + +- **Where:** `data/sources/tamosauskas_2018.toml` (`sellmeier_o`, `sellmeier_e`), + `data/solid/defaults.toml` (`[BBO]`), `docs/crystals.md`, + `tests/solid/test_crystals.py`. +- **Transcribed:** Eq. (1), p. 1414: three-term Sellmeier formulas of n_o and n_e, λ in + µm, C_i in µm², over 0.188-5.2 µm. Read from the rendered page and checked + digit by digit against the PDF's text layer (the library had not yet processed the + paper, so its tables and quote check were not available). +- **Medium and temperature:** neither is stated. The dataset combines indices derived + from phase-matching angles (which fix index differences, not absolute values) with + literature indices. The formulas are recorded as printed: absolute indices at vacuum + wavelengths. Read relative to air, they would rise by about 4.5e-4. +- **Checked:** + - Type I SHG of 800 nm phase-matches at θ = 29.21° inside the crystal, against the + 29.2° cut of the paper's type I crystal, whose orientation was calibrated on that + interaction (p. 1413). The paper states its calculated phase-matching angles within + 0.2° of the measured ones over 0.8-1.74 µm and within 0.4° up to 5.2 µm (p. 1416). + - n_o = n_e at 4.62 µm (stated p. 1415; the formulas give it). + - Against Eimerl et al. 1987 (`eimerl1987optical`, Table I, minimum deviation, + 404.66-1014.0 nm, 13 lines; the table image checked): Tamošauskas lies below on + both rays, by 8.3e-4 on average (at most 9.2e-4) for n_o and 7.4e-4 (at most + 8.6e-4) for n_e. Most of the offset is common to the two rays: the birefringence + n_o - n_e agrees within 2.6e-4. It is not the air correction alone (about 4.5e-4). The paper + states agreement within 4e-5 with the indices Nikogosyan tabulates (ref. [4], + 0.25365-2.3253 µm), which are not in the library. +- **Decision:** the recommended model of BBO, both axes, for nonlinear optics, where + the phase matching (index differences and dispersion) matters more than the absolute + index; it is the only BBO formula optmat curates and covers 188 nm-5.2 µm. +- **Open:** the 7-9e-4 offset from Eimerl's directly measured indices; Nikogosyan's + tabulation and Zhang et al. (2000) would settle it, and neither is in the library. +- **Status:** open. diff --git a/changelog.d/bbo-tamosauskas.added.md b/changelog.d/bbo-tamosauskas.added.md new file mode 100644 index 00000000..59f80119 --- /dev/null +++ b/changelog.d/bbo-tamosauskas.added.md @@ -0,0 +1 @@ +BBO's ordinary and extraordinary indices: Tamošauskas et al.'s 2018 Sellmeier formulas over 188 nm-5.2 µm (`tamosauskas_2018/sellmeier_o`, `_e`), now the recommended models, `default_model("BBO", "o")` and `default_model("BBO", "e")` (TC-1095). See [the crystals page](docs/crystals.md). diff --git a/docs/crystals.md b/docs/crystals.md index 5a7b198a..2509264d 100644 --- a/docs/crystals.md +++ b/docs/crystals.md @@ -1,7 +1,7 @@ # The window crystals CaF2, MgF2, BaF2 and sapphire (`Al2O3`) are the window and substrate crystals of -ultrafast optics, and N-BK7 its commonest glass. Each recommended model is the Sellmeier +ultrafast optics, N-BK7 its commonest glass, and BBO its commonest nonlinear crystal. Each recommended model is the Sellmeier formula of its source, made absolute (TC-545, TC-546, TC-651). This page explains the reference-medium corrections, source agreement and temperature limits. Read {doc}`solid` for the common interface and {doc}`/quickstart` for a first calculation. @@ -29,6 +29,8 @@ models("CaF2") # every model of CaF2, by name | Al2O3 | o | `weber_2003/sellmeier_o` | 220-5001 | 20 °C | room air (inferred) | 1.77475 | 1.75616 | | Al2O3 | e | `weber_2003/sellmeier_e` | 220-5001 | 20 °C | room air (inferred) | 1.76655 | 1.74828 | | N-BK7 | | `schott_2023/sellmeier` | 313-2326 | 20 °C, catalogue | air, 1013.3 hPa | 1.52184 | 1.50791 | +| BBO | o | `tamosauskas_2018/sellmeier_o` | 188-5200 | not stated | not stated (read as absolute) | 1.67727 | 1.65559 | +| BBO | e | `tamosauskas_2018/sellmeier_e` | 188-5200 | not stated | not stated (read as absolute) | 1.55692 | 1.54270 | **Relative to a gas, made absolute.** A prism refractometer measures the index relative @@ -80,5 +82,17 @@ CaF2 near room temperature, dn/dT is about −1.1e-5 per K: 4 K moves n by 4e-5, than the formulas' uncertainty. `daimon_2002/sellmeier_25C` gives CaF2 at 25 °C, and Daimon's measured dn/dT is `daimon_2002/dndt`. +**BBO, a nonlinear crystal.** β-barium borate's two rays are Tamošauskas et al.'s +2018 Sellmeier formulas (TC-1095), fitted over its whole transparency range, +188 nm-5.2 µm, to directly measured indices and to indices derived from type I and +type II phase-matching angles. They reproduce the type I SHG angle of 800 nm (29.21° +against the 29.2° cut calibrated on it). The paper states neither the temperature nor +the medium; the formulas are read as absolute indices at vacuum wavelengths. Eimerl et +al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 above both rays, while the +birefringence agrees within 2.6e-4: use these formulas for phase matching and +dispersion, and treat the absolute index as uncertain at the 1e-3 level. Only the +principal indices are curated; the extraordinary index at an angle θ to the optic +axis follows from 1/n(θ)² = cos²θ/n_o² + sin²θ/n_e². + **Not yet recommended:** CaF2 beyond 2.33 µm. Use `malitson_1963/sellmeier` (to 9.7 µm); Daimon's infrared term is weakly determined. diff --git a/src/optmat/data/catalogue_index.json b/src/optmat/data/catalogue_index.json index 6963dea7..81de6c5d 100644 --- a/src/optmat/data/catalogue_index.json +++ b/src/optmat/data/catalogue_index.json @@ -647,6 +647,7 @@ "talebpour_1999": {"size": 8566, "datasets": [["N2", "ionization_model_parameter"], ["O2", "ionization_model_parameter"]], "formulas": []}, "tammer_1990": {"size": 17900, "datasets": [["H2", "molar_kerr_constant"], ["D2", "molar_kerr_constant"], ["H2", "kerr_virial_coefficient"], ["H2", "hyperpolarizability"], ["D2", "hyperpolarizability"]], "formulas": ["H2"]}, "tammer_1992": {"size": 22170, "datasets": [["H2", "molar_kerr_constant"], ["H2", "kerr_virial_coefficient"], ["H2", "hyperpolarizability"], ["He", "hyperpolarizability"], ["He", "molar_kerr_constant"], ["He", "kerr_constant"], ["H2", "hyperpolarizability_ratio"]], "formulas": []}, +"tamosauskas_2018": {"size": 4792, "datasets": [], "formulas": ["BBO"]}, "tan_1998": {"size": 2568, "datasets": [], "formulas": []}, "tan_2003": {"size": 8923, "datasets": [["SiO2", "band_gap"]], "formulas": []}, "tanaka_1953": {"size": 4103, "datasets": [["O3", "absorption_cross_section"]], "formulas": []}, diff --git a/src/optmat/data/solid/defaults.toml b/src/optmat/data/solid/defaults.toml index 3be86381..7f4db9fe 100644 --- a/src/optmat/data/solid/defaults.toml +++ b/src/optmat/data/solid/defaults.toml @@ -52,3 +52,8 @@ reason = "Shiles et al.'s self-consistent analysis of bulk aluminium (Weaver et [Si] model = "fit/Si" reason = "Franta et al.'s universal dispersion model of float-zone silicon (newAD2's c-Si parameter file, franta_2017/udm_c_si) refitted at 20 C (TC-1088): to Frey, Leviton & Madison's absolute CHARMS indices (1.2-5.5 um, +-1e-4, taken from 295 K with their own dn/dT), to Schinke et al.'s absorption coefficient (250-1200 nm) and, outside those ranges, to Franta et al.'s temperature-dependent model at 20 C (the 31-250 nm ultraviolet and the infrared lattice bands). The published parameter file is 0.015 high in n in the near infrared and 2.6 times high in k at 633 nm. The refit is analytic, causal and passive from 31 nm to 143 um; its k beyond 1.2 um (alpha < 0.1 cm-1) is an upper bound, not the band-to-band absorption, and it describes 20 C only." + +# Nonlinear crystals (TC-1095). +[BBO] +model = { o = "tamosauskas_2018/sellmeier_o", e = "tamosauskas_2018/sellmeier_e" } +reason = "Tamosauskas et al.'s Sellmeier formulas of both rays, 0.188-5.2 um, fitted to directly measured indices (0.25-2.33 um, as Nikogosyan tabulates them, within 4e-5) and to indices derived from type I and type II phase-matching angles out to 5.2 um. They reproduce the type I SHG angle of 800 nm (29.21 against the 29.2 degree cut calibrated on it), which is what nonlinear optics needs of BBO. The paper states neither temperature nor medium: read as absolute at vacuum wavelengths. Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 above both rays (TC-1095). The only formula of BBO that optmat curates." diff --git a/src/optmat/data/sources/tamosauskas_2018.toml b/src/optmat/data/sources/tamosauskas_2018.toml new file mode 100644 index 00000000..a543d980 --- /dev/null +++ b/src/optmat/data/sources/tamosauskas_2018.toml @@ -0,0 +1,63 @@ +citation = "G. Tamošauskas, G. Beresnevičius, D. Gadonas and A. Dubietis, \"Transmittance and phase matching of BBO crystal in the 3-5 um range and its application for the characterization of mid-infrared laser pulses\", Opt. Mater. Express 8, 1410 (2018)" +doi = "10.1364/ome.8.001410" +library = "Tamosauskas_2018_TransmittancePhaseMatching" +identity = "VALIDATED" +kind = "fit" +technique = """A Sellmeier fit to a constructed index dataset (Sec. 3, p. 1414): ordinary \ +indices derived from measured type I and extraordinary indices from measured type II \ +sum-frequency phase-matching angles (800 nm mixed with 1.14-2.41 um from an OPA, from \ +Light Conversion's database of more than 600 tuning curves, and with 2.8-5.2 um DFG \ +pulses measured in this work in 200 um crystals cut at theta = 29.2 and 30 degrees); \ +the directly measured indices of 0.25365-2.3253 um tabulated by Nikogosyan (ref. [4]); \ +values down to 204.8 nm from Kato's fitting rule (ref. [26]); and values down to 188 nm \ +from Light Conversion's ultraviolet sum-frequency tuning curves. Three idealised \ +oscillators, one placed a priori in the mid-infrared and two in the ultraviolet.""" +notes = """Journal pages 1410-1418 are pdf pages 1-9. Identity checked against the first page. \ +The coefficients of Eq. (1) (p. 1414) were read from the rendered page and checked against \ +the PDF's text layer (2026-11-12). + +WHAT IS HERE. No tabulated indices: Eq. (1) only, with Figs. 2-3 comparing it with the \ +formulas of Eimerl et al. (ref. [1]), Nikogosyan (ref. [4]) and Zhang et al. (ref. [24]). \ +'The refined dispersion curves fit the directly measured ordinary and extraordinary \ +refractive index values in the 0.25365 - 2.3253 um range, as tabulated in [4], with a \ +remarkable accuracy better than 4 x 10^-5' (pp. 1414-1415). 'The evaluated differences \ +between the calculated and measured phase matching angles do not exceed 0.2 degrees in \ +the 0.8 - 1.74 um range and 0.4 degrees for the rest of the wavelengths up to 5.2 um for \ +both types of phase matching' (p. 1416). n_o = n_e at 4.62 um (p. 1415), confirmed \ +between crossed polarizers (Fig. 4). + +AIR OR VACUUM. Not stated, for the wavelength or the index; the dataset mixes \ +phase-matching angles (which depend on index differences only) and literature indices. \ +Recorded as vacuum wavelengths and an absolute index, as printed (TC-1095). + +TEMPERATURE. Not stated (room temperature, by the measurements described).""" + +[[formulas]] +id = "sellmeier_o" +form = "n2_sellmeier" +terms = { B = ["0.90291", "0.83155", "0.76536"], C = ["0.003926", "0.018786", "60.01"] } +range_nm = [188.0, 5200.0] +material = "BBO" +parameters = { axis = "o" } +equation = "Eq. (1), p. 1414, first line (n_o)" +printed = "n_o^2(lambda) = 1 + 0.90291 lambda^2/(lambda^2 - 0.003926) + 0.83155 lambda^2/(lambda^2 - 0.018786) + 0.76536 lambda^2/(lambda^2 - 60.01)" +variable = "lambda: wavelength in um (the medium is not stated)" +range = "0.188-5.2 um, 'the full transparency range' (p. 1414)" +coefficients = { B1 = "0.90291", B2 = "0.83155", B3 = "0.76536", C1 = "0.003926", C2 = "0.018786", C3 = "60.01" } +check = "With the extraordinary formula, type I SHG of 800 nm phase-matches at theta = 29.21 degrees inside the crystal (1/n_o(800 nm)^2 = cos^2(theta)/n_o(400 nm)^2 + sin^2(theta)/n_e(400 nm)^2), against the paper's type I crystal cut of 29.2 degrees, calibrated on that very interaction (p. 1413). n_o = n_e at 4.62 um (printed p. 1415). Against Eimerl et al.'s directly measured n_o (eimerl1987optical, Table I, 404.66-1014.0 nm, minimum deviation): 8.3e-4 lower on average, at most 9.2e-4. Checked 2026-11-12 (TC-1095)." +notes = "Ordinary ray. The C_i are printed in um^2 (the squared pole wavelengths). Fitted, with the extraordinary formula, to the dataset described in the technique." + +[[formulas]] +id = "sellmeier_e" +form = "n2_sellmeier" +terms = { B = ["1.151075", "0.21803", "0.656"], C = ["0.007142", "0.02259", "263"] } +range_nm = [188.0, 5200.0] +material = "BBO" +parameters = { axis = "e" } +equation = "Eq. (1), p. 1414, second line (n_e)" +printed = "n_e^2(lambda) = 1 + 1.151075 lambda^2/(lambda^2 - 0.007142) + 0.21803 lambda^2/(lambda^2 - 0.02259) + 0.656 lambda^2/(lambda^2 - 263)" +variable = "lambda: wavelength in um (the medium is not stated)" +range = "0.188-5.2 um, 'the full transparency range' (p. 1414)" +coefficients = { B1 = "1.151075", B2 = "0.21803", B3 = "0.656", C1 = "0.007142", C2 = "0.02259", C3 = "263" } +check = "See sellmeier_o for the phase-matching check. Against Eimerl et al.'s directly measured n_e (Table I, 404.66-1014.0 nm): 7.4e-4 lower on average, at most 8.6e-4. Checked 2026-11-12 (TC-1095)." +notes = "Principal extraordinary index (light polarised along the optic axis). BBO is negative uniaxial (n_e < n_o) below 4.62 um." diff --git a/tests/solid/test_crystals.py b/tests/solid/test_crystals.py index 7e520b05..afa96595 100644 --- a/tests/solid/test_crystals.py +++ b/tests/solid/test_crystals.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: MIT -"""The window crystals' recommended models (TC-545, TC-546).""" +"""The crystals' recommended models (TC-545, TC-546, TC-1095).""" import dataclasses import json @@ -108,3 +108,29 @@ def test_solprop_uses_the_coefficients_as_absolute_indices(): ours = np.real(chosen.refractive_index(wavelength[inside])) difference = ours - np.asarray(entry["n"])[inside] assert low < difference.min() and difference.max() < high, key + + +def _bbo_index(axis, wavelength): + return float(np.real(default_model("BBO", axis).refractive_index(wavelength))) + + +def test_bbo_reproduces_the_type_one_shg_angle_of_800_nm(): + # Tamosauskas et al. calibrated their type I crystal's 29.2 degree cut on SHG of + # 800 nm (p. 1413) and state their angles within 0.2 degrees of the measured ones + # over 0.8-1.74 um (p. 1416); that is the tolerance (TC-1095). + n_fundamental = _bbo_index("o", 800e-9) + n_o, n_e = _bbo_index("o", 400e-9), _bbo_index("e", 400e-9) + sin2 = (n_fundamental**-2 - n_o**-2) / (n_e**-2 - n_o**-2) + theta = np.degrees(np.arcsin(np.sqrt(sin2))) + assert theta == pytest.approx(29.2, abs=0.2) + + +def test_bbo_loses_its_birefringence_at_4_62_um(): + # n_o = n_e at 4.62 um, as printed (p. 1415): negative uniaxial below, positive above. + assert _bbo_index("o", 4.60e-6) > _bbo_index("e", 4.60e-6) + assert _bbo_index("o", 4.64e-6) < _bbo_index("e", 4.64e-6) + + +def test_bbo_needs_its_axis(): + with pytest.raises(OptmatError, match="give the axis"): + default_model("BBO") From 249b8f4753b2cdb217fc3713d8ea11623f82a90b Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Thu, 12 Nov 2026 15:18:49 +0000 Subject: [PATCH 2/6] Wrap a long comment in the BBO tests Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WM2AxMiUXc12ViRwSf2cyL --- tests/solid/test_crystals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/solid/test_crystals.py b/tests/solid/test_crystals.py index afa96595..1988f183 100644 --- a/tests/solid/test_crystals.py +++ b/tests/solid/test_crystals.py @@ -126,7 +126,8 @@ def test_bbo_reproduces_the_type_one_shg_angle_of_800_nm(): def test_bbo_loses_its_birefringence_at_4_62_um(): - # n_o = n_e at 4.62 um, as printed (p. 1415): negative uniaxial below, positive above. + # n_o = n_e at 4.62 um, as printed (p. 1415): negative uniaxial below it, + # positive above. assert _bbo_index("o", 4.60e-6) > _bbo_index("e", 4.60e-6) assert _bbo_index("o", 4.64e-6) < _bbo_index("e", 4.64e-6) From f91c7c1cc4cc10aa9d7a630c641f64a8e6ebaed2 Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Thu, 12 Nov 2026 15:46:43 +0000 Subject: [PATCH 3/6] Record BBO's golden values and the new counts The golden snapshot gains only the two BBO models (regenerating the whole file locally also rewrote unrelated Raman records within tolerance, which are left as they were). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WM2AxMiUXc12ViRwSf2cyL --- README.md | 2 +- docs/introduction/overview.md | 4 +- src/optmat/data/sources/tamosauskas_2018.toml | 2 +- tests/data/golden_models.json | 148 ++++++++++++++++++ 4 files changed, 152 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b40d0183..bd6d0116 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ simulations. ## What is there now -- **762 source records:** 8481 datasets and 197,804 values, 259 errata and 780 +- **763 source records:** 8481 datasets and 197,804 values, 259 errata and 782 published formulas. - **15 gases:** He, Ne, Ar, Kr, Xe, H2, D2, N2, O2, CO, CO2, CH4, SF6, N2O and O3. - **A fitted model of the refractive index for every gas:** diff --git a/docs/introduction/overview.md b/docs/introduction/overview.md index dd9ea6b6..b21943e5 100644 --- a/docs/introduction/overview.md +++ b/docs/introduction/overview.md @@ -99,8 +99,8 @@ against measured gains ({doc}`/raman`). ## Available data and models -- **The curated records:** 762 source records: 8481 datasets and 197,804 values, 259 - errata and 780 published formulas. +- **The curated records:** 763 source records: 8481 datasets and 197,804 values, 259 + errata and 782 published formulas. - **15 gases:** He, Ne, Ar, Kr, Xe, H2, D2, N2, O2, CO, CO2, CH4, SF6, N2O and O3. - A fitted refractive-index model for every gas: - helium and argon at the accuracy of ab initio theory; diff --git a/src/optmat/data/sources/tamosauskas_2018.toml b/src/optmat/data/sources/tamosauskas_2018.toml index a543d980..c0d2fef0 100644 --- a/src/optmat/data/sources/tamosauskas_2018.toml +++ b/src/optmat/data/sources/tamosauskas_2018.toml @@ -1,4 +1,4 @@ -citation = "G. Tamošauskas, G. Beresnevičius, D. Gadonas and A. Dubietis, \"Transmittance and phase matching of BBO crystal in the 3-5 um range and its application for the characterization of mid-infrared laser pulses\", Opt. Mater. Express 8, 1410 (2018)" +citation = "G. Tamošauskas, G. Beresnevičius, D. Gadonas and A. Dubietis, \"Transmittance and phase matching of BBO crystal in the 3-5 um range and its application for the characterization of mid-infrared laser pulses\", Opt. Mater. Express 8, 1410 (2018)" # codespell:ignore mater doi = "10.1364/ome.8.001410" library = "Tamosauskas_2018_TransmittancePhaseMatching" identity = "VALIDATED" diff --git a/tests/data/golden_models.json b/tests/data/golden_models.json index dd29bc9d..7b924baf 100644 --- a/tests/data/golden_models.json +++ b/tests/data/golden_models.json @@ -11098,6 +11098,154 @@ ], "digest": "dd36763a4f60dd645114b5ad49f7a50ba2f31e58f7253e7cc20e85adaa756925" }, + { + "id": "solid/tamosauskas_2018/sellmeier_e", + "class": "optmat.solid.models.formulas.FormulaModel", + "quantity": "permittivity", + "arguments": { + "wavelength": [ + 1.88188e-07, + 4.3135630763777316e-07, + 9.88736073176255e-07, + 2.2663376078898767e-06, + 5.1948e-06 + ] + }, + "values": [ + [ + 3.0438379143200764, + 0.0 + ], + [ + 2.444714888355098, + 0.0 + ], + [ + 2.3802860548833578, + 0.0 + ], + [ + 2.3586043485775434, + 0.0 + ], + [ + 2.2945850676229904, + 0.0 + ] + ], + "digest": "377b64602fea5cfb89f6b7d699b1a81fb481a96d393c29ecc13c21d3c87944a9" + }, + { + "id": "solid/tamosauskas_2018/sellmeier_e", + "class": "optmat.solid.models.formulas.FormulaModel", + "quantity": "dpermittivity_domega", + "arguments": { + "wavelength": [ + 1.88188e-07, + 4.3135630763777316e-07, + 9.88736073176255e-07, + 2.2663376078898767e-06, + 5.1948e-06 + ] + }, + "values": [ + [ + 2.8469975911323984e-16, + 0.0 + ], + [ + 3.780162897875628e-17, + 0.0 + ], + [ + 1.7079913214801465e-17, + 0.0 + ], + [ + 3.825890183237481e-17, + 0.0 + ], + [ + 4.637095669714362e-16, + 0.0 + ] + ], + "digest": "377b64602fea5cfb89f6b7d699b1a81fb481a96d393c29ecc13c21d3c87944a9" + }, + { + "id": "solid/tamosauskas_2018/sellmeier_o", + "class": "optmat.solid.models.formulas.FormulaModel", + "quantity": "permittivity", + "arguments": { + "wavelength": [ + 1.88188e-07, + 4.3135630763777316e-07, + 9.88736073176255e-07, + 2.2663376078898767e-06, + 5.1948e-06 + ] + }, + "values": [ + [ + 3.7860110755091743, + 0.0 + ], + [ + 2.844925441428387, + 0.0 + ], + [ + 2.7417185584682535, + 0.0 + ], + [ + 2.666564063563688, + 0.0 + ], + [ + 2.1097488019176076, + 0.0 + ] + ], + "digest": "bbe2416f5b030d56d8cba36852c0d206662e7ea2ea98f906510982b0f351a0ef" + }, + { + "id": "solid/tamosauskas_2018/sellmeier_o", + "class": "optmat.solid.models.formulas.FormulaModel", + "quantity": "dpermittivity_domega", + "arguments": { + "wavelength": [ + 1.88188e-07, + 4.3135630763777316e-07, + 9.88736073176255e-07, + 2.2663376078898767e-06, + 5.1948e-06 + ] + }, + "values": [ + [ + 4.251584547854332e-16, + 0.0 + ], + [ + 5.777232790999188e-17, + 0.0 + ], + [ + 3.4802872197337675e-17, + 0.0 + ], + [ + 1.975585129642919e-16, + 0.0 + ], + [ + 6.2724355455300576e-15, + 0.0 + ] + ], + "digest": "bbe2416f5b030d56d8cba36852c0d206662e7ea2ea98f906510982b0f351a0ef" + }, { "id": "solid/weber_2003/sellmeier_e", "class": "optmat.solid.models.formulas.FormulaModel", From 88a4a0f8e5340b8ded2206e88524e661fd172518 Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Thu, 12 Nov 2026 17:05:02 +0000 Subject: [PATCH 4/6] Read BBO's formulas relative to room air; correct the attributions Address review of TC-1095: - read the formulas, like the prism indices they are anchored to, as relative to room air at standard-air wavelengths (20 C assumed) and make them absolute, as for the NBS papers (maintainer's decision); - ref. [4] is Chen et al. 2012, not Nikogosyan; - the 29.2 degree cut is the paper's nominal cut, consistent with the computed angle, not an independent check; - compare with Eimerl like for like, both relative to air; - register entry decided, with the stated uncertainty and the open offset; no OEP (maintainer's decision); - BBO on the front pages; golden records of BBO only refreshed; index rebuilt. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WM2AxMiUXc12ViRwSf2cyL --- README.md | 8 +- REGISTER.md | 56 +++++++----- docs/crystals.md | 25 +++--- docs/introduction/overview.md | 5 +- docs/quickstart.md | 2 +- src/optmat/data/catalogue_index.json | 2 +- src/optmat/data/solid/defaults.toml | 2 +- src/optmat/data/sources/tamosauskas_2018.toml | 82 ++++++++++------- tests/data/golden_models.json | 88 +++++++++---------- tests/solid/test_crystals.py | 7 +- 10 files changed, 156 insertions(+), 121 deletions(-) diff --git a/README.md b/README.md index bd6d0116..6d3e8208 100644 --- a/README.md +++ b/README.md @@ -143,10 +143,10 @@ simulations. - **Crystalline silicon:** its complex index from 31 nm to 143 µm at 20 °C, Franta et al.'s universal dispersion model refitted to the absolute refractometry (to 1.4e-4 from 1.2 to 5.5 µm) and the measured absorption edge. -- **The window crystals and N-BK7:** CaF2, MgF2 and sapphire (both rays), BaF2 and - SCHOTT's N-BK7, each its source's Sellmeier formula made absolute (the prism and - catalogue indices are relative to air or nitrogen, which the formulas in common use - ignore: about 4e-4 in n). +- **The window crystals, N-BK7 and BBO:** CaF2, MgF2 and sapphire (both rays), BaF2, + SCHOTT's N-BK7 and the nonlinear crystal BBO (both rays), each its source's + Sellmeier formula made absolute (the prism and catalogue indices are relative to air + or nitrogen, which the formulas in common use ignore: about 4e-4 in n). - **The metals:** silver, gold and copper from the soft x-ray range (3-4 nm) to 12.4 µm (copper to 56 µm), aluminium from 0.8 nm to 200 µm, as curated tables joined by range. diff --git a/REGISTER.md b/REGISTER.md index abcf3418..12bdf23f 100644 --- a/REGISTER.md +++ b/REGISTER.md @@ -29597,32 +29597,40 @@ tabulate (the table model clamps outside its range, so only in-range points coun ## TC-1095 tamosauskas_2018: BBO's ordinary and extraordinary Sellmeier formulas (2026-11-12) - **Where:** `data/sources/tamosauskas_2018.toml` (`sellmeier_o`, `sellmeier_e`), - `data/solid/defaults.toml` (`[BBO]`), `docs/crystals.md`, + `data/solid/defaults.toml` (`[BBO]`), `docs/crystals.md`, the front pages, `tests/solid/test_crystals.py`. - **Transcribed:** Eq. (1), p. 1414: three-term Sellmeier formulas of n_o and n_e, λ in - µm, C_i in µm², over 0.188-5.2 µm. Read from the rendered page and checked - digit by digit against the PDF's text layer (the library had not yet processed the - paper, so its tables and quote check were not available). -- **Medium and temperature:** neither is stated. The dataset combines indices derived - from phase-matching angles (which fix index differences, not absolute values) with - literature indices. The formulas are recorded as printed: absolute indices at vacuum - wavelengths. Read relative to air, they would rise by about 4.5e-4. + µm, C_i in µm², over 0.188-5.2 µm. Read from the rendered page and checked digit by + digit against the PDF's text layer (the library holds the paper but had not yet + extracted its text). +- **Uncertainty (stated):** the formulas fit the directly measured indices tabulated by + Chen et al. (ref. [4], *Nonlinear Optical Borate Crystals*, 2012; 0.25365-2.3253 µm) + 'with a remarkable accuracy better than 4 x 10^-5' (pp. 1414-1415), and give + phase-matching angles within 0.2° of the measured ones over 0.8-1.74 µm and 0.4° + beyond, to 5.2 µm (p. 1416); no confidence level is stated. +- **Doubt:** neither the medium nor the temperature is stated. The anchor indices are + prism indices at mercury lines (the range's end points are Hg air wavelengths), which + are relative to room air at air wavelengths. As for the NBS prism papers (TC-546), the + formulas are read as relative to room air at standard-air wavelengths, at an assumed + 20 °C, and made absolute with Edlén's air. Read as absolute at vacuum wavelengths, n + would be about 4.5e-4 lower. The maintainer chose the air reading (2026-11-12). - **Checked:** - - Type I SHG of 800 nm phase-matches at θ = 29.21° inside the crystal, against the - 29.2° cut of the paper's type I crystal, whose orientation was calibrated on that - interaction (p. 1413). The paper states its calculated phase-matching angles within - 0.2° of the measured ones over 0.8-1.74 µm and within 0.4° up to 5.2 µm (p. 1416). - - n_o = n_e at 4.62 µm (stated p. 1415; the formulas give it). + - Type I SHG of 800 nm (vacuum) phase-matches at θ = 29.23° (29.21° with the + absolute reading), consistent with the nominal 29.2° cut of the paper's type I + crystal for 800 nm SHG (p. 1413). Not an independent check: the paper used computed + SHG angles as references to calibrate the crystals' orientation. + - n_o = n_e at 4.62 µm (stated p. 1415; the formulas give 4.624 µm). - Against Eimerl et al. 1987 (`eimerl1987optical`, Table I, minimum deviation, - 404.66-1014.0 nm, 13 lines; the table image checked): Tamošauskas lies below on - both rays, by 8.3e-4 on average (at most 9.2e-4) for n_o and 7.4e-4 (at most - 8.6e-4) for n_e. Most of the offset is common to the two rays: the birefringence - n_o - n_e agrees within 2.6e-4. It is not the air correction alone (about 4.5e-4). The paper - states agreement within 4e-5 with the indices Nikogosyan tabulates (ref. [4], - 0.25365-2.3253 µm), which are not in the library. + 404.66-1014.0 nm, 13 lines, read as air wavelengths and indices relative to air; + the table image checked), compared like for like with the formulas as printed: they + lie below on both rays, by 8.3e-4 on average (at most 9.2e-4) for n_o and 7.4e-4 + (at most 8.6e-4) for n_e. Most of the offset is common to the rays: the + birefringence agrees within 2.6e-4. The air correction does not enter this + comparison; under the absolute reading the gap would be about 1.3e-3. - **Decision:** the recommended model of BBO, both axes, for nonlinear optics, where - the phase matching (index differences and dispersion) matters more than the absolute - index; it is the only BBO formula optmat curates and covers 188 nm-5.2 µm. -- **Open:** the 7-9e-4 offset from Eimerl's directly measured indices; Nikogosyan's - tabulation and Zhang et al. (2000) would settle it, and neither is in the library. -- **Status:** open. + index differences and dispersion matter more than the absolute index. A first + default for a registered material, added by the recipe; the maintainer judged that it + needs no OEP (2026-11-12). +- **Status:** decided (2026-11-12). Open: the 7-9e-4 offset from Eimerl's indices; + Chen et al.'s tabulation and Zhang et al. (2000) would settle it, and neither is in + the library. diff --git a/docs/crystals.md b/docs/crystals.md index 2509264d..ad42c4e8 100644 --- a/docs/crystals.md +++ b/docs/crystals.md @@ -1,8 +1,9 @@ # The window crystals CaF2, MgF2, BaF2 and sapphire (`Al2O3`) are the window and substrate crystals of -ultrafast optics, N-BK7 its commonest glass, and BBO its commonest nonlinear crystal. Each recommended model is the Sellmeier -formula of its source, made absolute (TC-545, TC-546, TC-651). This page explains the +ultrafast optics, N-BK7 its commonest glass, and BBO its commonest nonlinear crystal. +Each recommended model is the Sellmeier formula of its source, made absolute (TC-545, +TC-546, TC-651, TC-1095). This page explains the reference-medium corrections, source agreement and temperature limits. Read {doc}`solid` for the common interface and {doc}`/quickstart` for a first calculation. @@ -29,8 +30,8 @@ models("CaF2") # every model of CaF2, by name | Al2O3 | o | `weber_2003/sellmeier_o` | 220-5001 | 20 °C | room air (inferred) | 1.77475 | 1.75616 | | Al2O3 | e | `weber_2003/sellmeier_e` | 220-5001 | 20 °C | room air (inferred) | 1.76655 | 1.74828 | | N-BK7 | | `schott_2023/sellmeier` | 313-2326 | 20 °C, catalogue | air, 1013.3 hPa | 1.52184 | 1.50791 | -| BBO | o | `tamosauskas_2018/sellmeier_o` | 188-5200 | not stated | not stated (read as absolute) | 1.67727 | 1.65559 | -| BBO | e | `tamosauskas_2018/sellmeier_e` | 188-5200 | not stated | not stated (read as absolute) | 1.55692 | 1.54270 | +| BBO | o | `tamosauskas_2018/sellmeier_o` | 188-5201 | not stated (20 °C assumed) | room air (inferred) | 1.67774 | 1.65604 | +| BBO | e | `tamosauskas_2018/sellmeier_e` | 188-5201 | not stated (20 °C assumed) | room air (inferred) | 1.55735 | 1.54312 | **Relative to a gas, made absolute.** A prism refractometer measures the index relative @@ -84,13 +85,15 @@ Daimon's measured dn/dT is `daimon_2002/dndt`. **BBO, a nonlinear crystal.** β-barium borate's two rays are Tamošauskas et al.'s 2018 Sellmeier formulas (TC-1095), fitted over its whole transparency range, -188 nm-5.2 µm, to directly measured indices and to indices derived from type I and -type II phase-matching angles. They reproduce the type I SHG angle of 800 nm (29.21° -against the 29.2° cut calibrated on it). The paper states neither the temperature nor -the medium; the formulas are read as absolute indices at vacuum wavelengths. Eimerl et -al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 above both rays, while the -birefringence agrees within 2.6e-4: use these formulas for phase matching and -dispersion, and treat the absolute index as uncertain at the 1e-3 level. Only the +188 nm-5.2 µm, to directly measured prism indices and to indices derived from type I +and type II phase-matching angles. They give the type I SHG angle of 800 nm as 29.23°, +consistent with the paper's nominal 29.2° cut. The paper states neither the medium nor +the temperature; like the prism indices it is anchored to, the formulas are read as +relative to room air at standard-air wavelengths (at an assumed 20 °C) and made +absolute. Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 +above both rays, compared like for like, while the birefringence agrees within 2.6e-4: +use these formulas for phase matching and dispersion, and treat the absolute index as +uncertain at the 1e-3 level. Only the principal indices are curated; the extraordinary index at an angle θ to the optic axis follows from 1/n(θ)² = cos²θ/n_o² + sin²θ/n_e². diff --git a/docs/introduction/overview.md b/docs/introduction/overview.md index b21943e5..b9779597 100644 --- a/docs/introduction/overview.md +++ b/docs/introduction/overview.md @@ -137,8 +137,9 @@ against measured gains ({doc}`/raman`). - **Crystalline silicon** ({doc}`/silicon`): its complex index from 31 nm to 143 µm at 20 °C, Franta et al.'s universal dispersion model refitted to the absolute refractometry and the measured absorption edge. -- **The window crystals and N-BK7** ({doc}`/crystals`): CaF2, MgF2, BaF2, sapphire and - SCHOTT's N-BK7, each its source's Sellmeier formula made absolute. +- **The window crystals, N-BK7 and BBO** ({doc}`/crystals`): CaF2, MgF2, BaF2, + sapphire, SCHOTT's N-BK7 and the nonlinear crystal BBO, each its source's Sellmeier + formula made absolute. - **The metals** ({doc}`/metals`): silver, gold and copper from 3-4 nm to 12.4 µm (copper to 56 µm), aluminium from 0.8 nm to 200 µm, as curated tables joined by range. diff --git a/docs/quickstart.md b/docs/quickstart.md index c45a9179..9cfb8256 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -147,7 +147,7 @@ The pages {doc}`ionisation`, {doc}`ionisation_rates` and ## Solids -Fused silica, the window crystals, N-BK7 and the metals have recommended models. A +Fused silica, the window crystals, N-BK7, BBO and the metals have recommended models. A solid's index is at its reference temperature, and needs no state: ```python diff --git a/src/optmat/data/catalogue_index.json b/src/optmat/data/catalogue_index.json index 81de6c5d..9a53e70e 100644 --- a/src/optmat/data/catalogue_index.json +++ b/src/optmat/data/catalogue_index.json @@ -647,7 +647,7 @@ "talebpour_1999": {"size": 8566, "datasets": [["N2", "ionization_model_parameter"], ["O2", "ionization_model_parameter"]], "formulas": []}, "tammer_1990": {"size": 17900, "datasets": [["H2", "molar_kerr_constant"], ["D2", "molar_kerr_constant"], ["H2", "kerr_virial_coefficient"], ["H2", "hyperpolarizability"], ["D2", "hyperpolarizability"]], "formulas": ["H2"]}, "tammer_1992": {"size": 22170, "datasets": [["H2", "molar_kerr_constant"], ["H2", "kerr_virial_coefficient"], ["H2", "hyperpolarizability"], ["He", "hyperpolarizability"], ["He", "molar_kerr_constant"], ["He", "kerr_constant"], ["H2", "hyperpolarizability_ratio"]], "formulas": []}, -"tamosauskas_2018": {"size": 4792, "datasets": [], "formulas": ["BBO"]}, +"tamosauskas_2018": {"size": 6788, "datasets": [], "formulas": ["BBO"]}, "tan_1998": {"size": 2568, "datasets": [], "formulas": []}, "tan_2003": {"size": 8923, "datasets": [["SiO2", "band_gap"]], "formulas": []}, "tanaka_1953": {"size": 4103, "datasets": [["O3", "absorption_cross_section"]], "formulas": []}, diff --git a/src/optmat/data/solid/defaults.toml b/src/optmat/data/solid/defaults.toml index 7f4db9fe..126fdee8 100644 --- a/src/optmat/data/solid/defaults.toml +++ b/src/optmat/data/solid/defaults.toml @@ -56,4 +56,4 @@ reason = "Franta et al.'s universal dispersion model of float-zone silicon (newA # Nonlinear crystals (TC-1095). [BBO] model = { o = "tamosauskas_2018/sellmeier_o", e = "tamosauskas_2018/sellmeier_e" } -reason = "Tamosauskas et al.'s Sellmeier formulas of both rays, 0.188-5.2 um, fitted to directly measured indices (0.25-2.33 um, as Nikogosyan tabulates them, within 4e-5) and to indices derived from type I and type II phase-matching angles out to 5.2 um. They reproduce the type I SHG angle of 800 nm (29.21 against the 29.2 degree cut calibrated on it), which is what nonlinear optics needs of BBO. The paper states neither temperature nor medium: read as absolute at vacuum wavelengths. Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 above both rays (TC-1095). The only formula of BBO that optmat curates." +reason = "Tamosauskas et al.'s Sellmeier formulas of both rays, 0.188-5.2 um, fitted to directly measured prism indices (0.25-2.33 um, as Chen et al. tabulate them, within 4e-5) and to indices derived from type I and type II phase-matching angles out to 5.2 um, the only BBO formula optmat curates. They give the type I SHG angle of 800 nm as 29.23 degrees, consistent with the paper's nominal 29.2 degree cut. The paper states neither medium nor temperature: read, as the prism indices it is anchored to, as relative to room air at standard-air wavelengths, taken as 20 C, and made absolute with Edlen's air (TC-1095). Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 above both rays, while the birefringence agrees within 2.6e-4: the absolute index is uncertain at the 1e-3 level, index differences much less." diff --git a/src/optmat/data/sources/tamosauskas_2018.toml b/src/optmat/data/sources/tamosauskas_2018.toml index c0d2fef0..51f4893c 100644 --- a/src/optmat/data/sources/tamosauskas_2018.toml +++ b/src/optmat/data/sources/tamosauskas_2018.toml @@ -5,59 +5,81 @@ identity = "VALIDATED" kind = "fit" technique = """A Sellmeier fit to a constructed index dataset (Sec. 3, p. 1414): ordinary \ indices derived from measured type I and extraordinary indices from measured type II \ -sum-frequency phase-matching angles (800 nm mixed with 1.14-2.41 um from an OPA, from \ -Light Conversion's database of more than 600 tuning curves, and with 2.8-5.2 um DFG \ -pulses measured in this work in 200 um crystals cut at theta = 29.2 and 30 degrees); \ -the directly measured indices of 0.25365-2.3253 um tabulated by Nikogosyan (ref. [4]); \ -values down to 204.8 nm from Kato's fitting rule (ref. [26]); and values down to 188 nm \ -from Light Conversion's ultraviolet sum-frequency tuning curves. Three idealised \ -oscillators, one placed a priori in the mid-infrared and two in the ultraviolet.""" -notes = """Journal pages 1410-1418 are pdf pages 1-9. Identity checked against the first page. \ -The coefficients of Eq. (1) (p. 1414) were read from the rendered page and checked against \ -the PDF's text layer (2026-11-12). +sum-frequency phase-matching angles (800 nm mixed with an OPA's output, 1.142-2.412 um \ +for type I and 1.140-1.571 um for type II, from Light Conversion's database of more than \ +600 tuning curves; and with 2.8-5.2 um DFG pulses measured in this work in 200 um \ +crystals cut at theta = 29.2 and 30 degrees, p. 1413); the directly measured indices of \ +0.25365-2.3253 um tabulated by Chen et al. (ref. [4], Nonlinear Optical Borate \ +Crystals, Wiley, 2012); values down to 204.8 nm from Kato's fitting rule (ref. [26]); and \ +values down to 188 nm from Light Conversion's ultraviolet sum-frequency tuning curves. \ +Three idealised oscillators, one placed a priori in the mid-infrared and two in the \ +ultraviolet. A phase-matching angle fixes a combination of indices, not one index, so \ +the indices derived from the angles are not independent absolute measurements.""" +notes = """Journal pages 1410-1418 are pdf pages 1-9. Identity checked against the first page; \ +the library holds the paper (registry-confirmed DOI) but had not yet extracted its text \ +when this record was made. The coefficients of Eq. (1) (p. 1414) were read from the \ +rendered page and checked digit by digit against the PDF's text layer (2026-11-12). WHAT IS HERE. No tabulated indices: Eq. (1) only, with Figs. 2-3 comparing it with the \ -formulas of Eimerl et al. (ref. [1]), Nikogosyan (ref. [4]) and Zhang et al. (ref. [24]). \ -'The refined dispersion curves fit the directly measured ordinary and extraordinary \ -refractive index values in the 0.25365 - 2.3253 um range, as tabulated in [4], with a \ -remarkable accuracy better than 4 x 10^-5' (pp. 1414-1415). 'The evaluated differences \ -between the calculated and measured phase matching angles do not exceed 0.2 degrees in \ -the 0.8 - 1.74 um range and 0.4 degrees for the rest of the wavelengths up to 5.2 um for \ -both types of phase matching' (p. 1416). n_o = n_e at 4.62 um (p. 1415), confirmed \ -between crossed polarizers (Fig. 4). +formulas of Eimerl et al. (ref. [1]), Chen et al. (ref. [4]) and Zhang et al. (ref. \ +[24]). '... the refined dispersion curves fit the directly measured ordinary and \ +extraordinary refractive index values in the 0.25365 - 2.3253 um range, as tabulated in \ +[4], with a remarkable accuracy better than 4 x 10^-5' (pp. 1414-1415). 'The evaluated \ +differences between the calculated and measured phase matching angles do not exceed 0.2 \ +degrees in the 0.8 - 1.74 um range and 0.4 degrees for the rest of the wavelengths up to \ +5.2 um for both types of phase matching' (p. 1416). n_o = n_e at 4.62 um (p. 1415), \ +confirmed between crossed polarizers (Fig. 4). -AIR OR VACUUM. Not stated, for the wavelength or the index; the dataset mixes \ -phase-matching angles (which depend on index differences only) and literature indices. \ -Recorded as vacuum wavelengths and an absolute index, as printed (TC-1095). +AIR OR VACUUM. Not stated, for the wavelength or the index. The formula's anchor, which \ +it fits to 4e-5, is the directly measured prism indices of 0.25365-2.3253 um tabulated by \ +Chen et al.; both end points are mercury lines at their air wavelengths, and such indices \ +are relative to the room air. As for the NBS prism papers (TC-546), the formula is read \ +as relative to room air at standard-air wavelengths and made absolute with Edlen's air \ +(TC-1095). This is an inference from the anchor data, not a statement of the paper; read \ +as absolute at vacuum wavelengths the index would be about 4.5e-4 lower. -TEMPERATURE. Not stated (room temperature, by the measurements described).""" +TEMPERATURE. Not stated; the measurements described are at room temperature, taken as \ +20 C (an assumption, recorded as such; dn/dT of BBO is of order 1e-5 per K, so a few \ +kelvin move n by a few 1e-5).""" [[formulas]] id = "sellmeier_o" form = "n2_sellmeier" terms = { B = ["0.90291", "0.83155", "0.76536"], C = ["0.003926", "0.018786", "60.01"] } -range_nm = [188.0, 5200.0] +# Standard-air wavelengths and an index relative to room air at 20 C: inferred from +# the anchor data (prism indices at mercury lines), not stated (see notes, TC-1095). +wavelength_medium = "standard_air" +index_medium = "air" +air_temperature_k = 293.15 +# The vacuum wavelengths of 0.188-5.2 um in standard air. +range_nm = [188.06, 5201.42] material = "BBO" -parameters = { axis = "o" } +parameters = { axis = "o", temperature_k = 293.15 } equation = "Eq. (1), p. 1414, first line (n_o)" printed = "n_o^2(lambda) = 1 + 0.90291 lambda^2/(lambda^2 - 0.003926) + 0.83155 lambda^2/(lambda^2 - 0.018786) + 0.76536 lambda^2/(lambda^2 - 60.01)" -variable = "lambda: wavelength in um (the medium is not stated)" +variable = "lambda: wavelength in um (the medium is not stated; read as standard air, see the source notes)" range = "0.188-5.2 um, 'the full transparency range' (p. 1414)" coefficients = { B1 = "0.90291", B2 = "0.83155", B3 = "0.76536", C1 = "0.003926", C2 = "0.018786", C3 = "60.01" } -check = "With the extraordinary formula, type I SHG of 800 nm phase-matches at theta = 29.21 degrees inside the crystal (1/n_o(800 nm)^2 = cos^2(theta)/n_o(400 nm)^2 + sin^2(theta)/n_e(400 nm)^2), against the paper's type I crystal cut of 29.2 degrees, calibrated on that very interaction (p. 1413). n_o = n_e at 4.62 um (printed p. 1415). Against Eimerl et al.'s directly measured n_o (eimerl1987optical, Table I, 404.66-1014.0 nm, minimum deviation): 8.3e-4 lower on average, at most 9.2e-4. Checked 2026-11-12 (TC-1095)." +check = "With the extraordinary formula, made absolute, type I SHG of 800 nm (vacuum) phase-matches at theta = 29.23 degrees inside the crystal (29.21 with the formulas read as absolute at vacuum wavelengths), consistent with the paper's nominal 29.2 degree type I cut for 800 nm SHG (p. 1413); not an independent check, since that reference angle was itself presumably computed from earlier dispersion equations. n_o = n_e at 4.62 um (printed p. 1415). Against Eimerl et al.'s directly measured n_o (eimerl1987optical, Table I, 404.66-1014.0 nm, minimum deviation, at air wavelengths and relative to air), compared like for like with this formula as printed: 8.3e-4 lower on average, at most 9.2e-4. Checked 2026-11-12 (TC-1095)." notes = "Ordinary ray. The C_i are printed in um^2 (the squared pole wavelengths). Fitted, with the extraordinary formula, to the dataset described in the technique." [[formulas]] id = "sellmeier_e" form = "n2_sellmeier" terms = { B = ["1.151075", "0.21803", "0.656"], C = ["0.007142", "0.02259", "263"] } -range_nm = [188.0, 5200.0] +# Standard-air wavelengths and an index relative to room air at 20 C: inferred from +# the anchor data (prism indices at mercury lines), not stated (see notes, TC-1095). +wavelength_medium = "standard_air" +index_medium = "air" +air_temperature_k = 293.15 +# The vacuum wavelengths of 0.188-5.2 um in standard air. +range_nm = [188.06, 5201.42] material = "BBO" -parameters = { axis = "e" } +parameters = { axis = "e", temperature_k = 293.15 } equation = "Eq. (1), p. 1414, second line (n_e)" printed = "n_e^2(lambda) = 1 + 1.151075 lambda^2/(lambda^2 - 0.007142) + 0.21803 lambda^2/(lambda^2 - 0.02259) + 0.656 lambda^2/(lambda^2 - 263)" -variable = "lambda: wavelength in um (the medium is not stated)" +variable = "lambda: wavelength in um (the medium is not stated; read as standard air, see the source notes)" range = "0.188-5.2 um, 'the full transparency range' (p. 1414)" coefficients = { B1 = "1.151075", B2 = "0.21803", B3 = "0.656", C1 = "0.007142", C2 = "0.02259", C3 = "263" } -check = "See sellmeier_o for the phase-matching check. Against Eimerl et al.'s directly measured n_e (Table I, 404.66-1014.0 nm): 7.4e-4 lower on average, at most 8.6e-4. Checked 2026-11-12 (TC-1095)." +check = "See sellmeier_o for the phase-matching check. Against Eimerl et al.'s directly measured n_e (Table I, 404.66-1014.0 nm, air wavelengths, relative to air), like for like: 7.4e-4 lower on average, at most 8.6e-4; the birefringence n_o - n_e agrees within 2.6e-4. Checked 2026-11-12 (TC-1095)." notes = "Principal extraordinary index (light polarised along the optic axis). BBO is negative uniaxial (n_e < n_o) below 4.62 um." diff --git a/tests/data/golden_models.json b/tests/data/golden_models.json index 7b924baf..17565131 100644 --- a/tests/data/golden_models.json +++ b/tests/data/golden_models.json @@ -11104,36 +11104,36 @@ "quantity": "permittivity", "arguments": { "wavelength": [ - 1.88188e-07, - 4.3135630763777316e-07, - 9.88736073176255e-07, - 2.2663376078898767e-06, - 5.1948e-06 + 1.8824805999999999e-07, + 4.3148900609528856e-07, + 9.890288504492447e-07, + 2.266982595623623e-06, + 5.19621858e-06 ] }, "values": [ [ - 3.0438379143200764, + 3.0458860688785587, 0.0 ], [ - 2.444714888355098, + 2.4460623385707243, 0.0 ], [ - 2.3802860548833578, + 2.3815684917901425, 0.0 ], [ - 2.3586043485775434, + 2.3598695036060358, 0.0 ], [ - 2.2945850676229904, + 2.2958150863388727, 0.0 ] ], - "digest": "377b64602fea5cfb89f6b7d699b1a81fb481a96d393c29ecc13c21d3c87944a9" + "digest": "8c84cf48e92a3a9466b0574f54271ba712aa18a22d7d84a226ca74820c2bc984" }, { "id": "solid/tamosauskas_2018/sellmeier_e", @@ -11141,36 +11141,36 @@ "quantity": "dpermittivity_domega", "arguments": { "wavelength": [ - 1.88188e-07, - 4.3135630763777316e-07, - 9.88736073176255e-07, - 2.2663376078898767e-06, - 5.1948e-06 + 1.8824805999999999e-07, + 4.3148900609528856e-07, + 9.890288504492447e-07, + 2.266982595623623e-06, + 5.19621858e-06 ] }, "values": [ [ - 2.8469975911323984e-16, + 2.851971556782245e-16, 0.0 ], [ - 3.780162897875628e-17, + 3.785256605030182e-17, 0.0 ], [ - 1.7079913214801465e-17, + 1.710152345609717e-17, 0.0 ], [ - 3.825890183237481e-17, + 3.8294314795205104e-17, 0.0 ], [ - 4.637095669714362e-16, + 4.640867730071834e-16, 0.0 ] ], - "digest": "377b64602fea5cfb89f6b7d699b1a81fb481a96d393c29ecc13c21d3c87944a9" + "digest": "8c84cf48e92a3a9466b0574f54271ba712aa18a22d7d84a226ca74820c2bc984" }, { "id": "solid/tamosauskas_2018/sellmeier_o", @@ -11178,36 +11178,36 @@ "quantity": "permittivity", "arguments": { "wavelength": [ - 1.88188e-07, - 4.3135630763777316e-07, - 9.88736073176255e-07, - 2.2663376078898767e-06, - 5.1948e-06 + 1.8824805999999999e-07, + 4.3148900609528856e-07, + 9.890288504492447e-07, + 2.266982595623623e-06, + 5.19621858e-06 ] }, "values": [ [ - 3.7860110755091743, + 3.7885697537799916, 0.0 ], [ - 2.844925441428387, + 2.8464918869389733, 0.0 ], [ - 2.7417185584682535, + 2.7431950938864422, 0.0 ], [ - 2.666564063563688, + 2.6679929093037855, 0.0 ], [ - 2.1097488019176076, + 2.1108788748194587, 0.0 ] ], - "digest": "bbe2416f5b030d56d8cba36852c0d206662e7ea2ea98f906510982b0f351a0ef" + "digest": "16fe3c8e7ed761d2bc5a8397b455c35fec26eb26e9f26b93c1ca7076e2b7bed2" }, { "id": "solid/tamosauskas_2018/sellmeier_o", @@ -11215,36 +11215,36 @@ "quantity": "dpermittivity_domega", "arguments": { "wavelength": [ - 1.88188e-07, - 4.3135630763777316e-07, - 9.88736073176255e-07, - 2.2663376078898767e-06, - 5.1948e-06 + 1.8824805999999999e-07, + 4.3148900609528856e-07, + 9.890288504492447e-07, + 2.266982595623623e-06, + 5.19621858e-06 ] }, "values": [ [ - 4.251584547854332e-16, + 4.258617170364688e-16, 0.0 ], [ - 5.777232790999188e-17, + 5.784286856191212e-17, 0.0 ], [ - 3.4802872197337675e-17, + 3.4840720078799466e-17, 0.0 ], [ - 1.975585129642919e-16, + 1.9772967608188074e-16, 0.0 ], [ - 6.2724355455300576e-15, + 6.2775273324811495e-15, 0.0 ] ], - "digest": "bbe2416f5b030d56d8cba36852c0d206662e7ea2ea98f906510982b0f351a0ef" + "digest": "16fe3c8e7ed761d2bc5a8397b455c35fec26eb26e9f26b93c1ca7076e2b7bed2" }, { "id": "solid/weber_2003/sellmeier_e", diff --git a/tests/solid/test_crystals.py b/tests/solid/test_crystals.py index 1988f183..f5620571 100644 --- a/tests/solid/test_crystals.py +++ b/tests/solid/test_crystals.py @@ -115,14 +115,15 @@ def _bbo_index(axis, wavelength): def test_bbo_reproduces_the_type_one_shg_angle_of_800_nm(): - # Tamosauskas et al. calibrated their type I crystal's 29.2 degree cut on SHG of - # 800 nm (p. 1413) and state their angles within 0.2 degrees of the measured ones - # over 0.8-1.74 um (p. 1416); that is the tolerance (TC-1095). + # Consistent with the paper's nominal 29.2 degree type I cut for 800 nm SHG + # (p. 1413), within the 0.2 degrees its angles are stated to hold over 0.8-1.74 um + # (p. 1416); and pinned at the recorded 29.23 degrees as a regression (TC-1095). n_fundamental = _bbo_index("o", 800e-9) n_o, n_e = _bbo_index("o", 400e-9), _bbo_index("e", 400e-9) sin2 = (n_fundamental**-2 - n_o**-2) / (n_e**-2 - n_o**-2) theta = np.degrees(np.arcsin(np.sqrt(sin2))) assert theta == pytest.approx(29.2, abs=0.2) + assert theta == pytest.approx(29.23, abs=0.005) def test_bbo_loses_its_birefringence_at_4_62_um(): From 0249cf1a44c5eca570159f73d8bd9aa66cd60e04 Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Thu, 12 Nov 2026 18:27:28 +0000 Subject: [PATCH 5/6] Tighten the BBO record's wording after re-review Mark the reference angle and the prism anchor as inferences, describe the library's incomplete reading, give the Eimerl offset as 6-9e-4, note BBO's assumed temperature and missing table on the crystals page, pin the 800 nm angle at 29.226 degrees, and say in the changelog that the model is made absolute. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WM2AxMiUXc12ViRwSf2cyL --- REGISTER.md | 14 ++++++++------ changelog.d/bbo-tamosauskas.added.md | 2 +- docs/crystals.md | 7 ++++--- src/optmat/data/catalogue_index.json | 2 +- src/optmat/data/solid/defaults.toml | 2 +- src/optmat/data/sources/tamosauskas_2018.toml | 6 +++--- tests/solid/test_crystals.py | 4 ++-- 7 files changed, 20 insertions(+), 17 deletions(-) diff --git a/REGISTER.md b/REGISTER.md index 12bdf23f..0145c336 100644 --- a/REGISTER.md +++ b/REGISTER.md @@ -29601,15 +29601,16 @@ tabulate (the table model clamps outside its range, so only in-range points coun `tests/solid/test_crystals.py`. - **Transcribed:** Eq. (1), p. 1414: three-term Sellmeier formulas of n_o and n_e, λ in µm, C_i in µm², over 0.188-5.2 µm. Read from the rendered page and checked digit by - digit against the PDF's text layer (the library holds the paper but had not yet - extracted its text). + digit against the PDF's text layer (the library holds the paper with a + registry-confirmed DOI, but its reading was not complete: no tables, status + disputed; so its tables and quote check were not used). - **Uncertainty (stated):** the formulas fit the directly measured indices tabulated by Chen et al. (ref. [4], *Nonlinear Optical Borate Crystals*, 2012; 0.25365-2.3253 µm) 'with a remarkable accuracy better than 4 x 10^-5' (pp. 1414-1415), and give phase-matching angles within 0.2° of the measured ones over 0.8-1.74 µm and 0.4° beyond, to 5.2 µm (p. 1416); no confidence level is stated. - **Doubt:** neither the medium nor the temperature is stated. The anchor indices are - prism indices at mercury lines (the range's end points are Hg air wavelengths), which + directly measured, presumably prism indices at mercury lines (the range's end points are Hg air wavelengths), which are relative to room air at air wavelengths. As for the NBS prism papers (TC-546), the formulas are read as relative to room air at standard-air wavelengths, at an assumed 20 °C, and made absolute with Edlén's air. Read as absolute at vacuum wavelengths, n @@ -29617,8 +29618,9 @@ tabulate (the table model clamps outside its range, so only in-range points coun - **Checked:** - Type I SHG of 800 nm (vacuum) phase-matches at θ = 29.23° (29.21° with the absolute reading), consistent with the nominal 29.2° cut of the paper's type I - crystal for 800 nm SHG (p. 1413). Not an independent check: the paper used computed - SHG angles as references to calibrate the crystals' orientation. + crystal for 800 nm SHG (p. 1413). Not an independent check: the paper used the SHG + phase-matching angles at 800 nm as references to calibrate the crystals' + orientation (presumably computed ones). - n_o = n_e at 4.62 µm (stated p. 1415; the formulas give 4.624 µm). - Against Eimerl et al. 1987 (`eimerl1987optical`, Table I, minimum deviation, 404.66-1014.0 nm, 13 lines, read as air wavelengths and indices relative to air; @@ -29631,6 +29633,6 @@ tabulate (the table model clamps outside its range, so only in-range points coun index differences and dispersion matter more than the absolute index. A first default for a registered material, added by the recipe; the maintainer judged that it needs no OEP (2026-11-12). -- **Status:** decided (2026-11-12). Open: the 7-9e-4 offset from Eimerl's indices; +- **Status:** decided (2026-11-12). Open: the 6-9e-4 offset from Eimerl's indices; Chen et al.'s tabulation and Zhang et al. (2000) would settle it, and neither is in the library. diff --git a/changelog.d/bbo-tamosauskas.added.md b/changelog.d/bbo-tamosauskas.added.md index 59f80119..a25c5487 100644 --- a/changelog.d/bbo-tamosauskas.added.md +++ b/changelog.d/bbo-tamosauskas.added.md @@ -1 +1 @@ -BBO's ordinary and extraordinary indices: Tamošauskas et al.'s 2018 Sellmeier formulas over 188 nm-5.2 µm (`tamosauskas_2018/sellmeier_o`, `_e`), now the recommended models, `default_model("BBO", "o")` and `default_model("BBO", "e")` (TC-1095). See [the crystals page](docs/crystals.md). +BBO's ordinary and extraordinary indices: Tamošauskas et al.'s 2018 Sellmeier formulas over 188 nm-5.2 µm (`tamosauskas_2018/sellmeier_o`, `_e`), now the recommended models, `default_model("BBO", "o")` and `default_model("BBO", "e")`. The paper states no medium; like the prism indices they are anchored to, the formulas are read as relative to room air at standard-air wavelengths and made absolute, so the model lies about 4.5e-4 above the printed formula evaluated directly (TC-1095). See [the crystals page](docs/crystals.md). diff --git a/docs/crystals.md b/docs/crystals.md index ad42c4e8..1c446417 100644 --- a/docs/crystals.md +++ b/docs/crystals.md @@ -68,7 +68,7 @@ reference-medium correction (TC-545, TC-546). transmittance. `BK7` (the older catalogue glass) and `N-BK7` are distinct materials. **How well each formula holds its paper.** With its reference gas removed, each formula -reproduces its paper's table (`tests/solid/test_crystals.py`): +reproduces its paper's table (`tests/solid/test_crystals.py`; BBO's paper prints none): - Daimon's reproduces the 69 measured indices within 1.9e-6 (rms 6e-7). - Dodge's and Malitson's reproduce their computed columns to the printed digit, apart from a few printed values their authors do not explain (TC-546). @@ -78,7 +78,8 @@ The papers state their accuracy as follows: - Dodge: "better than 2e-5"; - Malitson: 2e-5 to 3e-5. -**Temperature.** Each model is at its paper's temperature, between 19 and 25 °C. For +**Temperature.** Each model is at its paper's temperature, between 19 and 25 °C (BBO's, not stated, +is taken as 20 °C). For CaF2 near room temperature, dn/dT is about −1.1e-5 per K: 4 K moves n by 4e-5, more than the formulas' uncertainty. `daimon_2002/sellmeier_25C` gives CaF2 at 25 °C, and Daimon's measured dn/dT is `daimon_2002/dndt`. @@ -90,7 +91,7 @@ and type II phase-matching angles. They give the type I SHG angle of 800 nm as 2 consistent with the paper's nominal 29.2° cut. The paper states neither the medium nor the temperature; like the prism indices it is anchored to, the formulas are read as relative to room air at standard-air wavelengths (at an assumed 20 °C) and made -absolute. Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 +absolute. Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 6-9e-4 above both rays, compared like for like, while the birefringence agrees within 2.6e-4: use these formulas for phase matching and dispersion, and treat the absolute index as uncertain at the 1e-3 level. Only the diff --git a/src/optmat/data/catalogue_index.json b/src/optmat/data/catalogue_index.json index 9a53e70e..47689044 100644 --- a/src/optmat/data/catalogue_index.json +++ b/src/optmat/data/catalogue_index.json @@ -647,7 +647,7 @@ "talebpour_1999": {"size": 8566, "datasets": [["N2", "ionization_model_parameter"], ["O2", "ionization_model_parameter"]], "formulas": []}, "tammer_1990": {"size": 17900, "datasets": [["H2", "molar_kerr_constant"], ["D2", "molar_kerr_constant"], ["H2", "kerr_virial_coefficient"], ["H2", "hyperpolarizability"], ["D2", "hyperpolarizability"]], "formulas": ["H2"]}, "tammer_1992": {"size": 22170, "datasets": [["H2", "molar_kerr_constant"], ["H2", "kerr_virial_coefficient"], ["H2", "hyperpolarizability"], ["He", "hyperpolarizability"], ["He", "molar_kerr_constant"], ["He", "kerr_constant"], ["H2", "hyperpolarizability_ratio"]], "formulas": []}, -"tamosauskas_2018": {"size": 6788, "datasets": [], "formulas": ["BBO"]}, +"tamosauskas_2018": {"size": 6860, "datasets": [], "formulas": ["BBO"]}, "tan_1998": {"size": 2568, "datasets": [], "formulas": []}, "tan_2003": {"size": 8923, "datasets": [["SiO2", "band_gap"]], "formulas": []}, "tanaka_1953": {"size": 4103, "datasets": [["O3", "absorption_cross_section"]], "formulas": []}, diff --git a/src/optmat/data/solid/defaults.toml b/src/optmat/data/solid/defaults.toml index 126fdee8..946205af 100644 --- a/src/optmat/data/solid/defaults.toml +++ b/src/optmat/data/solid/defaults.toml @@ -56,4 +56,4 @@ reason = "Franta et al.'s universal dispersion model of float-zone silicon (newA # Nonlinear crystals (TC-1095). [BBO] model = { o = "tamosauskas_2018/sellmeier_o", e = "tamosauskas_2018/sellmeier_e" } -reason = "Tamosauskas et al.'s Sellmeier formulas of both rays, 0.188-5.2 um, fitted to directly measured prism indices (0.25-2.33 um, as Chen et al. tabulate them, within 4e-5) and to indices derived from type I and type II phase-matching angles out to 5.2 um, the only BBO formula optmat curates. They give the type I SHG angle of 800 nm as 29.23 degrees, consistent with the paper's nominal 29.2 degree cut. The paper states neither medium nor temperature: read, as the prism indices it is anchored to, as relative to room air at standard-air wavelengths, taken as 20 C, and made absolute with Edlen's air (TC-1095). Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 7-9e-4 above both rays, while the birefringence agrees within 2.6e-4: the absolute index is uncertain at the 1e-3 level, index differences much less." +reason = "Tamosauskas et al.'s Sellmeier formulas of both rays, 0.188-5.2 um, fitted to directly measured prism indices (0.25-2.33 um, as Chen et al. tabulate them, within 4e-5) and to indices derived from type I and type II phase-matching angles out to 5.2 um, the only BBO formula optmat curates. They give the type I SHG angle of 800 nm as 29.23 degrees, consistent with the paper's nominal 29.2 degree cut. The paper states neither medium nor temperature: read, as the prism indices it is anchored to, as relative to room air at standard-air wavelengths, taken as 20 C, and made absolute with Edlen's air (TC-1095). Eimerl et al.'s 1987 minimum-deviation indices (404-1014 nm) lie 6-9e-4 above both rays, while the birefringence agrees within 2.6e-4: the absolute index is uncertain at the 1e-3 level, index differences much less." diff --git a/src/optmat/data/sources/tamosauskas_2018.toml b/src/optmat/data/sources/tamosauskas_2018.toml index 51f4893c..f7da0e74 100644 --- a/src/optmat/data/sources/tamosauskas_2018.toml +++ b/src/optmat/data/sources/tamosauskas_2018.toml @@ -10,14 +10,14 @@ for type I and 1.140-1.571 um for type II, from Light Conversion's database of m 600 tuning curves; and with 2.8-5.2 um DFG pulses measured in this work in 200 um \ crystals cut at theta = 29.2 and 30 degrees, p. 1413); the directly measured indices of \ 0.25365-2.3253 um tabulated by Chen et al. (ref. [4], Nonlinear Optical Borate \ -Crystals, Wiley, 2012); values down to 204.8 nm from Kato's fitting rule (ref. [26]); and \ +Crystals, Wiley-VCH, 2012, printed 'Wiley-WCH'); values down to 204.8 nm from Kato's fitting rule (ref. [26]); and \ values down to 188 nm from Light Conversion's ultraviolet sum-frequency tuning curves. \ Three idealised oscillators, one placed a priori in the mid-infrared and two in the \ ultraviolet. A phase-matching angle fixes a combination of indices, not one index, so \ the indices derived from the angles are not independent absolute measurements.""" notes = """Journal pages 1410-1418 are pdf pages 1-9. Identity checked against the first page; \ -the library holds the paper (registry-confirmed DOI) but had not yet extracted its text \ -when this record was made. The coefficients of Eq. (1) (p. 1414) were read from the \ +the library holds the paper (registry-confirmed DOI), but its reading was not complete \ +(no tables; status disputed), so its tables and quote check were not used. The coefficients of Eq. (1) (p. 1414) were read from the \ rendered page and checked digit by digit against the PDF's text layer (2026-11-12). WHAT IS HERE. No tabulated indices: Eq. (1) only, with Figs. 2-3 comparing it with the \ diff --git a/tests/solid/test_crystals.py b/tests/solid/test_crystals.py index f5620571..ace5a802 100644 --- a/tests/solid/test_crystals.py +++ b/tests/solid/test_crystals.py @@ -117,13 +117,13 @@ def _bbo_index(axis, wavelength): def test_bbo_reproduces_the_type_one_shg_angle_of_800_nm(): # Consistent with the paper's nominal 29.2 degree type I cut for 800 nm SHG # (p. 1413), within the 0.2 degrees its angles are stated to hold over 0.8-1.74 um - # (p. 1416); and pinned at the recorded 29.23 degrees as a regression (TC-1095). + # (p. 1416); and pinned at 29.226 degrees (29.211 under the absolute reading) as a regression (TC-1095). n_fundamental = _bbo_index("o", 800e-9) n_o, n_e = _bbo_index("o", 400e-9), _bbo_index("e", 400e-9) sin2 = (n_fundamental**-2 - n_o**-2) / (n_e**-2 - n_o**-2) theta = np.degrees(np.arcsin(np.sqrt(sin2))) assert theta == pytest.approx(29.2, abs=0.2) - assert theta == pytest.approx(29.23, abs=0.005) + assert theta == pytest.approx(29.226, abs=0.002) def test_bbo_loses_its_birefringence_at_4_62_um(): From 1e894821ee1230df2c483ef8bf42916ca5a9ce26 Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Fri, 13 Nov 2026 09:18:40 +0000 Subject: [PATCH 6/6] Wrap the BBO angle test's comment to the line limit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WM2AxMiUXc12ViRwSf2cyL --- tests/solid/test_crystals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/solid/test_crystals.py b/tests/solid/test_crystals.py index ace5a802..8e13b3bc 100644 --- a/tests/solid/test_crystals.py +++ b/tests/solid/test_crystals.py @@ -117,7 +117,8 @@ def _bbo_index(axis, wavelength): def test_bbo_reproduces_the_type_one_shg_angle_of_800_nm(): # Consistent with the paper's nominal 29.2 degree type I cut for 800 nm SHG # (p. 1413), within the 0.2 degrees its angles are stated to hold over 0.8-1.74 um - # (p. 1416); and pinned at 29.226 degrees (29.211 under the absolute reading) as a regression (TC-1095). + # (p. 1416); and pinned at 29.226 degrees (29.211 under the absolute reading) as + # a regression (TC-1095). n_fundamental = _bbo_index("o", 800e-9) n_o, n_e = _bbo_index("o", 400e-9), _bbo_index("e", 400e-9) sin2 = (n_fundamental**-2 - n_o**-2) / (n_e**-2 - n_o**-2)