From caa8df7bc43e865bf251e426ce362ec3af3955d9 Mon Sep 17 00:00:00 2001 From: hm-thinkbook16p Date: Mon, 10 Aug 2026 01:23:30 +0800 Subject: [PATCH] feat(feedback): add VDE-1157/1158/1159 ParticleAccelerator/RadioTelescope/OpticalTelescope engine requirements --- docs/feedback/VDE-1157.md | 2560 +++++++++++++++++++++++++++++++++++++ docs/feedback/VDE-1158.md | 638 +++++++++ docs/feedback/VDE-1159.md | 1750 +++++++++++++++++++++++++ 3 files changed, 4948 insertions(+) create mode 100644 docs/feedback/VDE-1157.md create mode 100644 docs/feedback/VDE-1158.md create mode 100644 docs/feedback/VDE-1159.md diff --git a/docs/feedback/VDE-1157.md b/docs/feedback/VDE-1157.md new file mode 100644 index 000000000..3298848c1 --- /dev/null +++ b/docs/feedback/VDE-1157.md @@ -0,0 +1,2560 @@ +# VDE-1157: Particle Accelerator Equipment Engine Requirements (粒子加速器设备引擎需求) + +**Date**: 2026-08-10 +**Source**: ViewDesign ParticleAcceleratorEngine — linac drift tube, RFQ vane tip modulation, SRF cavity, klystron RF power, synchrotron magnet, cyclotron isochronous AVF, FEL undulator, beamline optics, detector DAQ +**Module**: `vde/particle_accelerator/linac.h`, `vde/particle_accelerator/rf_power.h`, `vde/particle_accelerator/synchrotron.h`, `vde/particle_accelerator/cyclotron.h`, `vde/particle_accelerator/fel.h`, `vde/particle_accelerator/beamline.h`, `vde/particle_accelerator/detector.h` +**Status**: Open — Engine requirement proposal +**Priority**: P1 +**Category**: Accelerator / Linac / Synchrotron / Cyclotron / Beamline / RF / Detector + +--- + +## Background + +Particle accelerators represent the most complex and precise engineering systems ever constructed, serving as the backbone of high-energy physics research, synchrotron light sources, medical isotope production, cancer therapy, and industrial irradiation. The global accelerator landscape spans from compact medical linacs (~2 m, 6–25 MeV) to the 27 km Large Hadron Collider (LHC) at CERN operating at 6.8 TeV per beam. The field is entering a new era with the High-Luminosity LHC (HL-LHC) upgrade, the Future Circular Collider (FCC) feasibility study, the Electron-Ion Collider (EIC) at BNL, and the PIP-II superconducting linac at Fermilab. + +Linear accelerators (linacs) form the core of most modern accelerator complexes. The Drift Tube Linac (DTL) using the Alvarez structure accelerates protons/H⁻ ions from ~750 keV to ~100 MeV, with the transit time factor describing the effective accelerating field experienced by particles traversing the drift tube gap. The effective shunt impedance ZT² quantifies the power efficiency of translating RF power into accelerating gradient. Radio Frequency Quadrupoles (RFQ) uniquely combine bunching, acceleration, and focusing within a single compact structure through precisely modulated vane tips, accepting a DC beam and delivering a bunched beam with ~90% transmission efficiency at 3–5 MeV for proton linacs. + +Superconducting RF (SRF) technology has revolutionized accelerator performance. Niobium cavities operating at 1.3 GHz (TESLA shape) cooled to 2 K by superfluid liquid helium achieve intrinsic quality factors Q₀ > 2×10¹⁰ and accelerating gradients E_acc of 20–40 MV/m in routine operation. The European XFEL operates over 800 SRF cavities, while LCLS-II at SLAC uses 280 cavities for its CW superconducting linac. The primary operational challenge is Lorentz force detuning — the radiation pressure of the RF field deforms the cavity shape, shifting its resonant frequency, which must be compensated by fast piezoelectric tuners in a closed-loop control system. + +RF power systems are the driving heart of all accelerators. Klystrons remain the workhorse high-power RF amplifier: multi-cavity velocity-modulated tubes delivering 1–65 MW of peak power in pulsed S-band operation for linacs, with perveance characterizing the electron beam space-charge behavior. Modern klystrons use either solenoid or periodic permanent magnet (PPM) focusing. The pulsed modulator driving the klystron cathode evolved from thyratron-switched pulse-forming networks (PFN) to solid-state Marx generators offering improved reliability and pulse flexibility. For lower-frequency CW applications (e.g., synchrotron cavities, cyclotrons), Inductive Output Tubes (IOT) and solid-state GaN-on-SiC LDMOS amplifiers combined via high-power combiners achieve ±0.01° phase and ±0.01% amplitude stability. The Low-Level RF (LLRF) control system uses digital PID feedback with adaptive feedforward to maintain cavity field stability against microphonics and beam loading. + +Synchrotron magnets define the trajectory and focusing of high-energy beams. Dipole bending magnets obey the fundamental relation Bρ[T·m] = p/q, where Bρ is the magnetic rigidity connecting the dipole field B and bending radius ρ to the particle momentum p. The LHC superconducting dipoles operate at 8.33 T using NbTi conductors cooled to 1.9 K by superfluid He II in a unique twin-aperture design sharing a common cryostat. Quadrupole magnets arranged in a FODO lattice provide transverse focusing, characterized by Twiss parameters (β, α, γ) and betatron tunes Q_x,y that must avoid resonance lines in the tune diagram. Sextupole magnets correct chromaticity — the momentum-dependent focusing that drives head-tail instabilities and limits dynamic aperture. Fast extraction systems combine kicker magnets (sub-μs rise time) with DC septum magnets to switch beam between rings or to beam dumps. H⁻ charge-exchange injection uses a stripping foil to convert H⁻ ions to protons, enabling phase-space painting for high-intensity accumulation. + +Cyclotrons, invented by E.O. Lawrence in 1930, remain essential for medical isotope production and proton therapy. The isochronous cyclotron overcomes the relativistic mass increase limitation through azimuthally varying field (AVF) sector focusing, where the hill/valley magnetic field modulation (flutter) provides axial focusing as energy increases. H⁻ extraction by stripping foil offers near-100% extraction efficiency with variable energy. Superconducting cyclotrons using NbTi coils at 2–5 T enable compact high-field designs for proton therapy (e.g., Mevion S250, IBA Proteus ONE). The synchrocyclotron variant uses frequency-modulated RF to maintain synchronism as particle mass increases during acceleration. + +Free-Electron Lasers (FEL) represent the brightest X-ray sources on Earth, producing femtosecond pulses with peak brilliance exceeding 10³³ ph/s/mm²/mrad²/0.1%BW at X-ray wavelengths. The undulator — a periodic magnetic structure with period λ_u — causes relativistic electrons to oscillate and emit coherent radiation at the resonance wavelength λ = λ_u(1+K²/2)/(2γ²), where K = eB₀λ_u/(2πmₑc) is the undulator parameter. Self-Amplified Spontaneous Emission (SASE) starts from shot noise in the electron bunch, with the radiation intensity growing exponentially along the undulator, characterized by the gain length L_g. Synchrotron radiation from bending magnets is described by the critical energy E_c = 3hceBγ²/(4πmₑc), above which half the radiated power is emitted. Brilliance quantifies the combined spatial coherence, angular collimation, and spectral purity of the photon beam. + +Beamline optics and ultra-high vacuum (UHV) systems transport beams between accelerator components while preserving beam quality. Transfer matrix formalism represents each beamline element (drift, quadrupole, dipole, solenoid) as a 6×6 transport matrix in (x, x', y, y', z, δ) phase space. Twiss parameters (α, β, γ) evolve along the beamline, with the envelope equation governing beam size evolution. Emittance preservation requires careful matching of Twiss parameters at component interfaces. UHV levels of 10⁻⁹–10⁻¹¹ mbar are maintained by sputter ion pumps (SIP), titanium sublimation pumps (TSP), and non-evaporable getter (NEG) coatings. Beam diagnostics include Beam Position Monitors (BPM) for closed-orbit measurement, wire scanners and laser wires for transverse profile measurement, and Beam Loss Monitors (BLM) for machine protection. + +Particle detectors at collider experiments represent the pinnacle of instrumentation engineering. Silicon pixel and strip trackers achieve spatial resolution of 5–10 μm, reconstructing charged particle trajectories in multi-Tesla magnetic fields. The CMS electromagnetic calorimeter (ECAL) uses 75,848 lead tungstate (PbWO₄) scintillating crystals with avalanche photodiode (APD) readout, achieving σ_E/E ≈ 0.5% for high-energy photons. Hadronic calorimeters (HCAL) use alternating layers of absorber (Fe, Cu, brass) and active scintillator to measure jet energies. Muon spectrometers combine drift tubes (MDT), resistive plate chambers (RPC), and cathode strip chambers (CSC) with large superconducting toroid magnets for standalone muon momentum measurement. The trigger system reduces the 40 MHz bunch crossing rate: Level-1 (hardware/FPGA) to ~100 kHz within <5 μs latency, then High-Level Trigger (HLT) PC farm to ~1 kHz for permanent storage. The Worldwide LHC Computing Grid (WLCG) distributes data across Tier-0 (CERN), Tier-1 (national labs), and Tier-2 (university) centers. + +VDE currently lacks comprehensive accelerator modeling covering: +- Linac DTL drift tube design (Alvarez structure, transit time factor, effective shunt impedance), RFQ vane tip modulation for simultaneous bunching/acceleration/focusing, and SRF niobium cavity design (TESLA 1.3 GHz shape, Q₀ > 2×10¹⁰, E_acc 20–40 MV/m, 2K LHe cryogenics, Lorentz force detuning piezo tuner compensation) +- RF power system design (multi-cavity klystron perveance, cathode voltage, peak power 1–65 MW S-band pulsed, solenoid/PPM focusing, pulsed modulator PFN/Marx solid-state), IOT and GaN LDMOS solid-state amplifier combining with ±0.01° phase/amplitude stability, LLRF PID control with Lorentz force detuning compensation +- Synchrotron magnet design (dipole Bρ = p/q, quadrupole FODO lattice Twiss β-functions and betatron tunes Q_x,y with resonance diagram, sextupole chromaticity correction, superconducting dipole NbTi 8.33 T LHC twin-aperture He II 1.9 K, fast extraction kicker+septum, H⁻ injection stripping foil) +- Cyclotron design (isochronous AVF sector focusing with hill/valley field flutter, H⁻ stripping extraction, SC cyclotron NbTi coil 2–5 T with cryogenics, synchrocyclotron FM RF) +- FEL and light source design (undulator period λ_u, K parameter, resonance condition, SASE gain length, synchrotron radiation critical energy E_c, brilliance) +- Beamline optics and vacuum (transfer matrix transport for Drift/Quad/Dipole/Solenoid, Twiss parameters and envelope equation, emittance preservation, UHV 10⁻⁹–10⁻¹¹ mbar with SIP+TSP+NEG, beam diagnostics BPM position, wire scanner profile, BLM) +- Detector and DAQ systems (Si pixel tracker spatial resolution, ECAL PbWO₄+APD, HCAL Fe/Cu+scintillator, muon spectrometer MDT/RPC/CSC+toroid, Level-1 FPGA trigger 40 MHz→100 kHz <5 μs latency, HLT PC farm →1 kHz, WLCG Tier-0/1/2 distributed computing) + +This proposal defines the engineering domain model, formulas, C++ API, and acceptance criteria for a VDE-native particle accelerator equipment engine. + +--- + +## Detailed Requirements + +### 1. Linac — Drift Tube, RFQ, and Superconducting RF + +**Priority**: P1 + +#### 1.1 DTL Alvarez Structure, Transit Time Factor, and Effective Shunt Impedance + +``` +Drift Tube Linac (DTL) overview: + The Alvarez DTL is the workhorse structure for accelerating protons and H⁻ ions + from ~750 keV to ~100 MeV. It consists of a cylindrical tank excited in TM₀₁₀ + mode, with drift tubes mounted along the axis. Particles are shielded from the + decelerating RF phase while inside the drift tubes and experience the accelerating + field only in the gaps between tubes. + + Key design parameters: + Operating frequency f: 201.25 MHz (proton linacs), 325/352 MHz (modern designs) + Tank diameter: ~0.5–1.0 m (cutoff for TM₀₁₀ mode) + Drift tube gap length g [m]: increases along linac as β = v/c increases + Bore radius a: ~5–15 mm (aperture for beam clearance) + Number of cells/gaps: 50–300 (depending on energy range) + + Transit Time Factor T: + Particle traverses a gap of length g experiencing a sinusoidal RF voltage + V(t) = V₀ cos(ωt). The effective energy gain is reduced from the peak voltage: + + ΔE = q × V₀ × T × cos(φ_s) + + Where: + T = sin(ωg/(2v)) / (ωg/(2v)) ← transit time factor [dimensionless] + φ_s = synchronous phase (typically −20° to −30° for longitudinal stability) + v = particle velocity at gap center + + For small gaps: T → 1 (full voltage utilization) + For large gaps: T decreases, limiting practical gap length + Typical T: 0.80–0.95 for well-designed DTL cells + + Gap length optimization: + g = βλ/2 (where λ = c/f, cell length for π-mode operation) + βλ = distance traveled in one RF period → gap physically increases with energy + + Effective Shunt Impedance ZT²: + Quantifies how efficiently RF power is converted to accelerating voltage: + + ZT² = V₀²/P_loss [Ω/m] + + Where: + V₀ = peak gap voltage (integrating E_z along axis) + P_loss = RF power dissipated in cavity walls per unit length + + The factor T² accounts for transit time reduction + Typical ZT² for DTL: 30–50 MΩ/m (copper, 200 MHz) + + RF power per unit length: + dP/dz = E₀²/ZT² + E₀ = average accelerating gradient = V₀×T×cos(φ_s)/βλ [MV/m] + + Total RF power: + P_RF = ∫(E₀²/ZT²) dz (integrated over linac length) + Typical P_RF: 1–5 MW for a 50 MeV DTL + + DTL cell geometry: + Cell length L_cell = βλ (for π-mode) + Drift tube body length L_DT: + L_DT = βλ − g + Must place quadrupole focusing magnets inside drift tubes + Permanent magnet quadrupoles (PMQ): SmCo or NdFeB material + Gradient: 30–60 T/m over 20–30 mm bore + + Drift tube stem: + Supports drift tube in tank, provides cooling, may carry RF current + Stem length: ~quarter wavelength for impedance matching + + Particle dynamics in DTL: + Longitudinal phase space (φ−W): + Synchronous particle moves with phase φ_s relative to RF crest + Bunch occupies ~±15° in phase, ±0.5% in momentum + + Longitudinal focusing from phase stability: + Particles arriving early (smaller φ) see lower voltage → less acceleration + Particles arriving late (larger φ) see higher voltage → catch up + + Transverse focusing: + RF defocusing in gaps (time-varying field at entrance/exit) + Compensated by quadrupole magnets inside drift tubes + FODO lattice period: usually 2βλ or 4βλ + Zero-current phase advance per period: σ₀ = 30°–80° + + Drift tube fabrication: + Material: OFHC (oxygen-free high-conductivity) copper + Plating: electroplated copper (smooth RF surface, RRR > 50) + Cooling: water channels in drift tube body and stem + Alignment precision: ±50 μm (mechanical) + RF tuning (tuner plungers) + Frequency tuning: post couplers for field flatness, slug tuners for frequency + + RFQ (Radio Frequency Quadrupole) Vane Tip Modulation: + The RFQ is a four-vane resonator that simultaneously bunches, focuses, and + accelerates a DC beam from the ion source. Vane tips carry a modulated + profile that creates quadrupole (focusing) and dipole (accelerating) field + components. + + Vane tip profile: + r(θ, z) = r₀ + A × (m−1)/(m×I₀(ka)+I₀(mka)) × cos(2θ) + modulation(z) + + Where: + r₀ = average aperture radius (~3–10 mm) + m = modulation parameter (typically 2–3) + k = 2π/βλ + a = minimum aperture at vane tip + + Four sections in RFQ: + 1. Radial Matching (RM): adiabatically capture DC beam into RF focusing + 2. Shaper: begin bunching, create longitudinal structure + 3. Gentle Buncher (GB): adiabatic bunching, increasing modulation + 4. Accelerator: constant modulation, main acceleration to ~3 MeV + + Transmission efficiency: typically >90% from ion source to RFQ exit + Output energy: 3–5 MeV for proton linacs + Vane voltage: 50–100 kV (inter-vane, depends on frequency) + Peak electric field: limited to ~1.3–1.5× Kilpatrick criterion + + RFQ fabrication: + Four-vane or four-rod structure + Oxygen-free copper, machined to ±10 μm tolerance + Brazed or bolted assembly + Cooling channels in vanes and walls + End cells for RF matching (undercut to tune resonant frequency) + +SRF Cavity Physics and Engineering: + Superconducting radio-frequency niobium cavities operating at 2 K achieve + accelerating gradients 10× higher than normal-conducting copper cavities + with negligible RF losses. + + TESLA 1.3 GHz shape (nine-cell cavity): + Designed for the TESLA/TTF/ILC/XFEL projects + Optimized for minimum E_peak/E_acc and B_peak/E_acc ratios + Cell-to-cell coupling k_cc ≈ 1.8% (π-mode) + Active length: ~1.038 m (nine cells) + Beam aperture: 70 mm diameter + R/Q (geometric shunt impedance per quality factor): ~1036 Ω (π-mode) + Geometry factor G = R_s × Q₀ ≈ 270 Ω + + Fundamental SRF parameters: + Intrinsic quality factor Q₀: + Q₀ = ω × U/P_c = G/R_s + + Where: + U = stored energy in cavity [J] + P_c = RF power dissipated in cavity walls [W] + R_s = surface resistance [Ω] + G = geometry factor [Ω] + + Q₀ > 2×10¹⁰ at 2 K, E_acc = 20–40 MV/m (production cavities) + Best cavities: Q₀ > 5×10¹⁰ at E_acc = 35 MV/m + + Surface resistance R_s (BCS theory + residual): + R_s(T) = R_BCS(T) + R_res + + BCS resistance: + R_BCS = A × (f²/T) × exp(−Δ/(k_B×T)) + + For Nb: A ≈ 2×10⁻⁴ Ω, Δ/k_B ≈ 17.1 K (energy gap) + At 2 K, 1.3 GHz: R_BCS ≈ 10 nΩ (BCS contribution) + + Residual resistance R_res: 1–10 nΩ (trapped flux, surface contamination) + Total R_s at 2 K, 1.3 GHz: ~10–20 nΩ + + Accelerating gradient: + E_acc = V_acc/L_active [MV/m] + + Where: + V_acc = accelerating voltage = ∫E_z(z)×cos(ωt(z)) dz [MV] + L_active = n_cells × λ/2 (active cavity length) + + Maximum gradient limited by: + - Thermal breakdown (quench): typically at E_peak > 50–60 MV/m + - Field emission: dark current from surface defects + - Q-disease: hydrogen contamination degrading Q₀ at medium fields + + Lorentz Force Detuning (LFD): + The RF field exerts radiation pressure on the cavity walls: + + P_rad = (μ₀×H² − ε₀×E²)/4 [Pa] + + This pressure deforms the cavity shape, changing its resonant frequency. + The detuning coefficient K_LFD: + + Δf = −K_LFD × E_acc² [Hz] + + Typical K_LFD: −1 to −3 Hz/(MV/m)² for TESLA cavities + Much larger for low-β spoke or HWR cavities + + Compensation via piezo tuner: + Fast piezoelectric actuator mechanically pre-stresses the cavity + Closed-loop control: measure detuning (phase comparison) → apply piezo voltage + Tuner range: ±500 Hz at 1.3 GHz (Δf/f ≈ ±3.8×10⁻⁷) + Response time: <1 ms + + LLRF (Low-Level RF) integration: + PID feedback loop maintains cavity phase and amplitude + Adaptive feedforward: pre-compensate for beam-induced transients + Vector sum control for multi-cavity systems + + Cryogenic system (2 K superfluid helium): + Why 2 K?: + R_BCS ∝ exp(−Δ/(k_B T)) → drastic reduction from 4.2 K to 2 K + Q₀ at 4.2 K: ~2×10⁸; at 2 K: ~2×10¹⁰ (100× improvement) + + Cryoplant components: + Helium refrigerator/liquefier (4.5 K stage) + 2 K refrigeration: JT expansion or cold compressor pumping at ~31 mbar + Static heat load: ~0.5–2 W/m (radiation, conduction through supports) + Dynamic heat load: RF losses ~Q₀ dependent, beam-induced heating + Cooling power at 2 K: typically 50–200 W for large linacs + + RF power coupling: + Fundamental Power Coupler (FPC): + Matches 50 Ω waveguide/coax to cavity input + Variable coupling (Q_ext adjustable via antenna penetration) + Critical coupling: Q_ext = Q₀ (all RF power to beam + cavity walls) + Over-coupled: Q_ext < Q₀ (faster cavity filling, lower reflected power with beam) + Power handling: up to 500 kW CW (XFEL coupler) + + Higher-Order Mode (HOM) couplers: + Damp beam-induced wakefield modes above fundamental + Located at both ends of cavity (beam pipe region) + Prevent beam breakup (BBU) instabilities in multi-cavity linacs + HOM damping requirement: Q_ext_HOM < 10³–10⁴ +``` + +#### 1.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class CavityType { NormalConducting_DTL, NormalConducting_RFQ, Superconducting_TESLA, Superconducting_LowBeta, Superconducting_Elliptical }; + +enum class RFQ_Section { RadialMatching, Shaper, GentleBuncher, Accelerator }; + +enum class SRE_Material { Niobium_RRR300, Niobium_RRR40, Nb3Sn, NbTiN_Film, Bulk_Nb }; + +enum class PiezoTunerType { Noliac_PZT, PI_Ceramic, Custom }; + +struct DTL_CellSpec { + int cell_number; + double gap_length_mm; // physical gap + double drift_tube_length_mm; // body length + double bore_radius_mm; + double transit_time_factor; // T + double effective_shunt_impedance_Mohm_per_m; // ZT² + double quadrupole_gradient_T_per_m; + double synchronous_phase_deg; // φ_s, typically −20° to −30° + double input_energy_MeV; + double output_energy_MeV; +}; + +struct DTL_TankSpec { + double frequency_MHz; // 201.25, 325, 352 + double total_length_m; + double tank_diameter_m; + int number_of_cells; + std::vector cells; + double design_average_gradient_MV_per_m; + double total_RF_power_kW; + double input_energy_MeV; + double output_energy_MeV; + std::string cavity_material; // OFHC copper + double RRR_value; + bool post_couplers_for_field_flatness; + double frequency_tuning_range_kHz; +}; + +struct RFQ_VaneSpec { + double frequency_MHz; // typically 325 or 352 + double length_m; + double average_aperture_radius_mm; + double modulation_parameter_m; // 1–3 + double inter_vane_voltage_kV; + double peak_electric_field_MV_per_m; + double kilpatrick_limit_ratio; // E_peak/E_Kilpatrick < 1.5 + double input_energy_keV; // typically 30–100 keV + double output_energy_MeV; // typically 3–5 MeV + double transmission_efficiency_pct; // >90% + int number_of_cells; + std::vector sections; + std::vector section_lengths_m; + double vane_cooling_channel_flow_L_per_min; + bool four_vane_structure; // true: four-vane, false: four-rod +}; + +struct SRF_CavitySpec { + CavityType type; + SRE_Material material; + double frequency_GHz; // 1.3 for TESLA + int number_of_cells; // typically 9 + double active_length_m; + double beam_aperture_mm; + double R_over_Q_ohm; // geometric shunt impedance + double geometry_factor_G_ohm; // G = R_s × Q₀ + double target_Q0; // >2×10¹⁰ at design gradient + double design_E_acc_MV_per_m; // 20–40 MV/m + double E_peak_over_E_acc; + double B_peak_over_E_acc_mT_per_MVpm; + double operating_temperature_K; // 2.0 K + double R_res_nOhm; // residual surface resistance + double BCS_resistance_nOhm_at_2K; + double helium_cooling_static_load_W_per_m; + double K_LFD_Hz_per_MVpm2; // Lorentz force detuning coefficient + PiezoTunerType piezo_tuner_type; + double piezo_tuner_range_Hz; // ±500 Hz at 1.3 GHz + double piezo_tuner_response_time_ms; + double Q_ext_fundamental; // external Q of FPC + bool HOM_couplers_installed; + double HOM_damping_Q_limit; + double cavity_filling_time_ms; + double RF_pulse_length_ms; + double repetition_rate_Hz; +}; + +struct LinacSpec { + RFQ_VaneSpec rfq_frontend; + std::vector dtl_tanks; + std::vector srf_cavities; + double total_length_m; + double beam_particle_species; // proton, H⁻, electron, heavy ion + double beam_current_mA; + double beam_pulse_length_us; + double beam_repetition_rate_Hz; + double input_energy_MeV; + double output_energy_MeV; + double total_RF_power_MW; + double total_cryogenic_power_kW_at_2K; + double normalized_rms_emittance_mm_mrad; +}; + +struct LinacState { + double actual_beam_current_mA; + double actual_output_energy_MeV; + double rms_energy_spread_pct; + double transmission_total_pct; + double cavity_phases_deg[]; + double cavity_amplitudes_MV_per_m[]; + double helium_level_pct; + double piezo_tuner_offsets_Hz[]; + bool quench_detected; + bool vacuum_fault; + std::vector interlock_status; +}; + +struct LinacPerformance { + double transmission_efficiency_pct; + double rms_energy_spread_MeV; + double normalized_emittance_growth_pct; + double SRF_cavity_yield_Q0; + double average_operating_gradient_MV_per_m; + double RF_power_efficiency_pct; + double cryogenic_power_consumption_kW; + double availability_pct; + bool meets_design_energy; +}; + +LinacSpec design_proton_linac(double output_energy_MeV, double beam_current_mA, double frequency_MHz = 352.21); + +LinacState initialize_linac_state(const LinacSpec& spec); + +LinacPerformance simulate_linac(const LinacSpec& spec, LinacState& state, double RF_power_available_MW, double ambient_temp_K); + +DTL_CellSpec calculate_dtl_cell(double input_energy_MeV, double energy_gain_MeV, double synchronous_phase_deg, double frequency_MHz); + +double calculate_transit_time_factor(double gap_mm, double beta, double frequency_MHz); + +double calculate_ZT2_effective_shunt_impedance(double gap_mm, double bore_radius_mm, double frequency_MHz, double material_conductivity); + +RFQ_VaneSpec design_rfq(double input_energy_keV, double output_energy_MeV, double beam_current_mA, double frequency_MHz); + +SRF_CavitySpec design_tesla_cavity(double target_E_acc_MV_per_m, double target_Q0, SRE_Material material = SRE_Material::Niobium_RRR300); + +double calculate_BCS_resistance(double frequency_GHz, double temperature_K, double delta_over_kB_K, double material_factor); + +double calculate_LFD_coefficient(const SRF_CavitySpec& cavity, double E_acc_target_MV_per_m); + +} // namespace vde::particle_accelerator +``` + +--- + +### 2. RF Power Systems — Klystron, IOT, Solid-State, and LLRF + +**Priority**: P1 + +#### 2.1 Klystron Multi-Cavity Amplifier, Modulator, and LLRF Control + +``` +RF Power Systems overview: + High-power RF sources provide the energy that accelerates charged particles. + The choice of RF source depends on the frequency, peak/average power, bandwidth, + efficiency, and reliability requirements of the accelerator application. + +Klystron Amplifier: + A klystron is a linear-beam vacuum tube that amplifies RF signals using + velocity modulation of an electron beam. Multi-cavity klystrons achieve + power gains of 40–60 dB with efficiencies of 45–70%. + + Operating principle: + 1. Electron gun: thermionic cathode emits electrons + 2. Input cavity: RF input signal velocity-modulates the beam + 3. Drift spaces: velocity modulation → density modulation (bunching) + 4. Intermediate cavities: enhance bunching at harmonic frequencies + 5. Output cavity: bunched beam induces RF output power + 6. Collector: spent beam dissipates remaining kinetic energy as heat + + Key klystron parameters: + Cathode voltage V₀: 50–500 kV (proportional to beam power) + Beam current I₀: 1–500 A (pulsed) + Beam power: P_beam = V₀ × I₀ + RF output power: P_RF = η × P_beam + Efficiency η: 45–70% (electron-to-RF conversion) + Gain: 40–60 dB (P_RF/P_input) + Perveance (space-charge measure): + P_μ = I₀/V₀^(3/2) × 10⁶ [μperv, or A/V^(3/2)] + Low perveance (<1.0 μperv): high efficiency, easier focusing + High perveance (>2.0 μperv): more compact, harder to focus + + Typical klystron specifications: + S-band pulsed (2856 MHz, SLAC type): + Peak power: 35–65 MW + Pulse width: 1–5 μs + PRF: 60–120 Hz + Average power: 50–100 kW + Cathode voltage: 300–450 kV + Efficiency: 45–55% + Focusing: solenoid (0.1–0.2 T) or PPM + + L-band CW (1300 MHz, for SRF linacs): + Peak/CW power: 1–2 MW + Cathode voltage: ~100 kV + Efficiency: 60–70% + IOT alternative: same power class, higher efficiency + + Multi-Beam Klystron (MBK): + Multiple low-perveance beamlets in parallel + Lower cathode voltage for same total power + Broader bandwidth, higher efficiency + Used for TESLA/XFEL (10 MW peak, 1.5 ms, 10 Hz, multi-beam) + + Focusing systems: + Solenoid focusing: + Axial magnetic field confines electron beam radially + Brillouin field: B_Brillouin = (830/R)×(I₀/V₀^(1/4))^(1/2) [Gauss] + Practical: 2–3 × B_Brillouin + Solenoid power: 1–10 kW for large klystrons + Heavy, consumes DC power, requires cooling + + PPM (Periodic Permanent Magnet) focusing: + Alternating polarity permanent magnets (SmCo, NdFeB) + No power consumption, lighter weight + More sensitive to alignment + Preferred for airborne/space-borne applications + PPM period: ~10–20 mm, peak field ~0.1–0.2 T + + Collector design: + Depressed collector: multi-stage collector at reduced potentials + Recovers kinetic energy of spent beam + Can increase overall efficiency from 45% → 65% + Stage voltages: V_col1 = 0.6×V₀, V_col2 = 0.3×V₀ (typical) + + Cooling: + Water-cooled collector (up to several MW average) + Hypervapotron technology for high heat flux (>10 MW/m²) + +Pulsed Modulator: + Provides the high-voltage pulses required by klystron cathodes. + + Pulse-Forming Network (PFN) modulator (traditional): + PFN: series of L-C sections producing quasi-rectangular pulse + Pulse width τ [μs]: + τ = 2 × N × √(L×C) + N = number of PFN sections (typically 5–10) + + Pulse amplitude: V_pulse = V_charge/2 (matched load) + Charging voltage V_charge: 50–100 kV DC + + Switching: thyratron (hydrogen thyratron, 10⁶ shots lifetime) + Hydrogen thyratron: fast switching (<100 ns), high di/dt + Typical: CX1154, CX1175, CX1925 series + Limited lifetime: 5,000–20,000 hours → major maintenance item + + Solid-State Marx Modulator (modern): + Series-connected IGBT/MOSFET modules: + Each module: capacitor charged to ~1 kV, switched by IGBT + N modules in series → N × 1 kV output + Pulse shaping by tailoring module switching times + + Advantages over PFN: + No thyratron → unlimited lifetime, no toxic hydrogen + Pulse width flexible (software-selectable) + Better pulse flatness (<±0.1% vs. ±0.5% for PFN) + Fault-tolerant (bypass failed modules) + Higher efficiency (>95% vs. 85% for PFN) + + Rise/fall times: <100 ns + PRF up to several kHz + Used in: ESS, SNS, LCLS-II, PIP-II + + Pulse transformer: + Steps up Marx output (10–20 kV) to klystron cathode (300–450 kV) + Turns ratio: 1:15 to 1:30 + Core material: nanocrystalline (Finemet) or amorphous + Pulse flatness: core reset circuit prevents saturation + +IOT (Inductive Output Tube): + Hybrid between klystron and gridded tube. + Input: density-modulated electron beam from gridded cathode + Output: beam passes through output cavity (like klystron) + + Advantages: + Higher efficiency than klystron (~65–75%) + Compact, lower cathode voltage + Typically used up to ~1.3 GHz, 1–2 MW CW + Used in synchrotron RF systems (Diamond, SOLEIL, NSLS-II) + +Solid-State RF Amplifiers: + GaN-on-SiC HEMT (High Electron Mobility Transistor): + Device power: 100–500 W per transistor (S-band) + Module power: 2–5 kW per module (combined) + System power: 50–300 kW CW (hundreds of modules combined) + + Combining architecture: + Wilkinson dividers/combiners: binary tree + Spatial combining: waveguide-based + Cavity combining: resonant cavity → hundreds of devices + + Phase/amplitude stability: + Module-to-module amplitude: ±0.2 dB + Module-to-module phase: ±2° (before calibration) + System-level: ±0.01 dB amplitude, ±0.01° phase (with LLRF) + + Advantages over vacuum tubes: + No cathode wear → unlimited lifetime + Low voltage operation (48–100 V DC vs. 100–450 kV) + Graceful degradation (failed modules bypassed) + Instant-on (no warm-up time) + Modular repair + + Applications: + SOLEIL synchrotron: 352 MHz, 180 kW solid-state + ESS: 352 MHz, 400 modules + Light sources worldwide: replacing IOT/klystron systems + +LLRF (Low-Level RF) Control System: + Purpose: maintain precise cavity field amplitude and phase against: + - Microphonics (mechanical vibrations): Δf ~ 1–100 Hz + - Lorentz force detuning: Δf ∝ −E_acc² + - Beam loading: beam-induced voltage in cavity + - Thermal drifts: cavity temperature → frequency change + - RF source noise and drift + + Control architecture (digital IQ): + Cavity field probe signal: + V_cav(t) = I(t) + j×Q(t) = A(t) × exp(j×φ(t)) + + Digital downconversion (DDC): + I(t) = V_cav(t) × cos(ω_RF × t) → low-pass filter + Q(t) = V_cav(t) × sin(ω_RF × t) → low-pass filter + + Amplitude: A(t) = √(I² + Q²) + Phase: φ(t) = arctan(Q/I) + + PID control law: + u(t) = K_p × e(t) + K_i × ∫e(t)dt + K_d × de/dt + + Separate PID loops for amplitude (I) and phase (Q) + Setpoint: A_set, φ_set (define cavity field target) + Disturbance rejection: feedback dynamics + + Feedforward: + Pre-computed RF drive waveform to compensate: + - Beam arrival: RF pulse shape pre-distorted + - Cavity filling transient: exponential fill, pre-compensate + - Beam loading compensation: drive ∝ 1/(1 − I_beam × R/Q × Q_ext) + + Lorentz force detuning compensation (adaptive): + Measure detuning: Δf = dφ/dt/(2π) (phase rate of change) + Apply piezo tuner voltage: V_piezo = −K × Δf + Piezo response: limited to ~1 kHz bandwidth + Residual detuning: corrected by LLRF phase modulation (faster) + + Specification targets: + Amplitude stability: ±0.01% rms (in-loop) + Phase stability: ±0.01° rms (in-loop, ~20 fs at 1.3 GHz) + Cavity field regulation: within 0.1% amplitude, 0.1° phase (pulse top) + Latency: <500 ns (ADC → processing → DAC) + Sample rate: 100–250 MS/s per channel + + Implementation: + FPGA-based: Xilinx Kintex/Virtex or Intel/Altera Stratix/Arria + μTCA / ATCA platform (telecom standard, PICMG) + EPICS integration (Experimental Physics and Industrial Control System) + Redundancy: hot-swap power supplies, dual-star connectivity +``` + +#### 2.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class RFSourceType { Klystron_SingleBeam, Klystron_MultiBeam, IOT, SolidState_GaN, Magnetron, Tetrode }; + +enum class FocusingType { Solenoid_Electromagnetic, PPM_PermanentMagnet, Coaxial_Electrostatic }; + +enum class ModulatorType { PFN_Thyratron, Marx_SolidState, HardSwitch_IGBT, LineType }; + +enum class LLRF_Platform { MTCA4, ATCA, VME, PXIe, Custom_FPGA }; + +struct KlystronSpec { + RFSourceType type; + double frequency_MHz; + double peak_power_MW; + double average_power_kW; + double cathode_voltage_kV; + double beam_current_A; + double perveance_uperv; // I₀/V₀^(3/2)×10⁶ + double efficiency_pct; + double gain_dB; + int number_of_cavities; // typically 5–7 + double pulse_width_us; + double repetition_rate_Hz; + FocusingType focusing; + double focusing_field_T; + double solenoid_power_kW; + int collector_stages; // 1 for single-stage + double collector_depressed_voltage_ratio; + double cooling_water_flow_L_per_min; + double cathode_lifetime_hours; +}; + +struct ModulatorSpec { + ModulatorType type; + double output_voltage_kV; + double output_current_A; + double pulse_width_us; + double pulse_rise_time_ns; + double pulse_flatness_pct; // ±0.1% for Marx + double repetition_rate_Hz; + double average_power_kW; + int number_of_marx_cells; // for Marx modulators + double marx_cell_voltage_V; + double pulse_transformer_ratio; + double charging_power_supply_kW; + double efficiency_pct; + bool arc_detection_and_protection; + bool thyratron_heater_power_W; // for PFN modulators +}; + +struct IOT_Spec { + double frequency_MHz; + double output_power_kW_CW; + double cathode_voltage_kV; + double efficiency_pct; // 65–75% + double gain_dB; + double bandwidth_MHz; + double grid_bias_voltage_V; + bool collector_depressed; +}; + +struct SolidStateAmp_Spec { + double frequency_MHz; + double total_output_power_kW; + double module_power_kW; + int number_of_modules; + std::string transistor_technology; // GaN HEMT, LDMOS + double drain_voltage_V; // 48–100 V + double drain_efficiency_pct; // 60–75% + double combining_efficiency_pct; // >90% for large arrays + double amplitude_stability_dB_rms; // ±0.01 dB + double phase_stability_deg_rms; // ±0.01° + bool hot_swap_capable; + int redundant_modules; +}; + +struct LLRF_Spec { + LLRF_Platform platform; + double sample_rate_MSps; + double adc_resolution_bits; + double dac_resolution_bits; + double loop_latency_ns; // <500 ns + double amplitude_regulation_pct_rms; // ±0.01% + double phase_regulation_deg_rms; // ±0.01° + double amplitude_loop_bandwidth_kHz; + double phase_loop_bandwidth_kHz; + double Kp_amplitude; + double Ki_amplitude; + double Kd_amplitude; + double Kp_phase; + double Ki_phase; + double Kd_phase; + bool feedforward_enabled; + bool adaptive_LFD_compensation; + double LFD_compensation_bandwidth_Hz; + bool EPICS_integration; + std::string epics_record_prefix; +}; + +struct RFSpec { + KlystronSpec klystron; + ModulatorSpec modulator; + IOT_Spec iot; + SolidStateAmp_Spec solid_state; + LLRF_Spec llrf; + RFSourceType primary_source_type; + int number_of_RF_stations; + double total_installed_RF_power_MW; + double transmission_line_loss_pct; + std::string waveguide_type; // WR284, WR650, coaxial + double circulator_isolation_dB; + bool arc_detection_distributed; +}; + +struct RFState { + double actual_forward_power_MW; + double actual_reflected_power_MW; + double cathode_voltage_actual_kV; + double klystron_efficiency_actual_pct; + double modulator_charge_voltage_actual_V; + double solid_state_amplitude_error_dB; + double solid_state_phase_error_deg; + int failed_modules_count; + double cavity_detuning_Hz; + double piezo_tuner_voltage_V; + bool interlock_tripped; +}; + +struct RFPerformance { + double overall_RF_efficiency_pct; // wall-plug to cavity + double amplitude_stability_achieved_pct; + double phase_stability_achieved_deg; + double LFD_residual_detuning_Hz_rms; + double klystron_cathode_lifetime_remaining_pct; + double modulator_availability_pct; + double MTBF_hours; + double annual_energy_consumption_MWh; +}; + +RFSpec design_rf_system(double total_power_MW, double frequency_MHz, RFSourceType type = RFSourceType::Klystron_SingleBeam); + +RFState initialize_rf_state(const RFSpec& spec); + +RFPerformance simulate_rf_system(const RFSpec& spec, RFState& state, double beam_current_mA, double cavity_detuning_Hz); + +KlystronSpec design_klystron(double frequency_MHz, double peak_power_MW, double pulse_width_us, double efficiency_target_pct); + +ModulatorSpec design_modulator(double output_voltage_kV, double peak_current_A, double pulse_width_us, ModulatorType type = ModulatorType::Marx_SolidState); + +LLRF_Spec design_llrf_controller(double amplitude_bandwidth_kHz, double phase_bandwidth_kHz, bool adaptive_LFD); + +double calculate_perveance(double cathode_voltage_kV, double beam_current_A); + +double calculate_pfn_pulse_width(int N_sections, double L_uH, double C_nF); + +} // namespace vde::particle_accelerator +``` + +--- + +### 3. Synchrotron Magnets — Dipole, Quadrupole, Sextupole, and Injection/Extraction + +**Priority**: P1 + +#### 3.1 Dipole Bending, FODO Lattice, Chromaticity Correction, and Superconducting Magnets + +``` +Synchrotron Magnet Systems overview: + Synchrotron magnets guide, focus, and correct charged particle beams in circular + accelerators and storage rings. The magnet lattice determines all beam optical + properties: orbit, focusing, chromaticity, dynamic aperture, and beam lifetime. + +Dipole Bending Magnet: + Fundamental relation — magnetic rigidity: + Bρ [T·m] = p / q = (p[GeV/c]) / (0.29979 × Z) + + Where: + B = dipole magnetic field [T] + ρ = bending radius [m] + p = particle momentum [GeV/c] (= βγ × m₀c² × 10⁻⁹ for relativistic) + q = particle charge (× e) + Z = charge number (Z=1 for protons, electrons; Z for fully-stripped ions) + + For the LHC at 7 TeV (protons, Z=1): + p = 7000 GeV/c + Bρ = 7000 / 0.29979 ≈ 23,350 T·m + + With B = 8.33 T: ρ = 23,350/8.33 ≈ 2,803 m + LHC circumference: 26,659 m + + Dipole field quality: + Integrated field uniformity: ΔBdl/Bdl < 10⁻⁴ over "good field region" + Good field region: ±(2/3)×beam stay clear + Multipole errors: b_n, a_n (normal/skew components, n=1–15) + + Field homogeneity at injection vs. collision: + Injection (450 GeV in LHC): lower B → saturation effects different + Persistent currents in superconductor → field errors at low field + Iron saturation at high field → systematic b_3, b_5 components + + Dipole types: + Room-temperature (normal conducting): + H-type or C-type yoke + Copper coils, water-cooled + B_max ~1.5–2.0 T (iron saturation limit) + Used in: booster synchrotrons, transfer lines + + Superconducting: + NbTi cable in Rutherford-style (keystoned strands) + Cos-theta coil geometry (most common) + B_peak: 8.33 T (LHC at 1.9 K), ~4 T for HERA (4.5 K) + Iron yoke: flux return and field shielding + Cryostat: He II at 1.9 K (LHC), He I at 4.5 K (HERA, RHIC) + + LHC main dipole (MB): + Twin-aperture design: two beam pipes in common yoke/cryostat + Field: 8.33 T at 11,850 A + Length: 14.3 m (magnetic) + Stored energy: ~7 MJ per magnet (1,232 magnets total) + Training: magnets "train" to design field over multiple quenches + Quench protection: heaters + energy extraction resistors + + Dipole powering: + Main dipole circuit: all dipoles in series (LHC: 154 dipoles per sector) + Total inductance: ~15 H per LHC sector + Current: 11,850 A DC (collision), 760 A (injection) + Power converter: 12-pulse thyristor-based, high precision (~1 ppm) + Energy extraction: dump resistors absorb stored energy on quench (ΔV across magnet ≈ ±1 kV during discharge) + +Quadrupole Magnet: + Provides linear focusing force: F_x = −k×x, F_y = +k×y + Quadrupole gradient: + G = ∂B_y/∂x = ∂B_x/∂y [T/m] + + Normalized gradient: + k [m⁻²] = G / (Bρ) = (e/p) × G + + Focal length: 1/f = k × L (thin-lens approximation, L = effective length) + + For FODO lattice: + L_cell = 2 × L_drift + L_QF + L_QD (half-cell) + Phase advance μ per cell: cos(μ) = 1 − L²×k²/2 (thin-lens FODO) + Useful range: μ = 60°–90° per cell + + Twiss Parameters and FODO Lattice: + β-function [m]: beam envelope size ∝ √(β×ε) + σ_x(s) = √(β_x(s) × ε_x) (rms beam size) + σ_x'(s) = √(γ_x(s) × ε_x) (rms beam divergence) + + α-function: α(s) = −β'(s)/2 (correlation between x and x') + γ-function: γ(s) = (1+α²(s))/β(s) + + Betatron tune Q_x,y: + Q = (1/2π) × ∮ ds/β(s) [turns] + Number of betatron oscillations per revolution + + Resonance condition (must avoid): + m×Q_x + n×Q_y = p (sum resonance, order |m|+|n|) + Working point must be in "stable" region of tune diagram + + Tune diagram (Q_x vs. Q_y): + Avoid lines: Q_x = integer, Q_y = integer, Q_x±Q_y = integer + LHC working point: Q_x ≈ 64.28, Q_y ≈ 59.31 + Tune spread in beam: ~0.01 (space charge, octupole nonlinearities) + + Lattice function evolution: + FODO period: β_max ≈ L × (1+sin(μ/2))/sin(μ) + β_min ≈ L × (1−sin(μ/2))/sin(μ) + β_max/β_min (modulation): typically 2–5 in arcs + + Dispersion function D(s) [m]: + Δx = D(s) × (Δp/p) (momentum-dependent orbit offset) + Generated by bending magnets + D(s) evolves: D'' = −k×D + 1/ρ(s) + +Sextupole Magnet: + Provides nonlinear focusing to correct chromaticity. + + Chromaticity: momentum-dependence of focusing + ΔQ = ξ × (Δp/p) + Natural chromaticity ξ_nat: typically −Q (negative for alternating-gradient) + LHC natural chromaticity: ξ_x ≈ −83, ξ_y ≈ −75 (for Q ≈ 64, 59) + + Sextupole correction: + Sextupole field: B_y = (1/2)×B''×x² + Normalized sextupole strength: m = B''/(Bρ) [m⁻³] + + Chromaticity correction formula: + Δξ = (1/4π) × Σ (m × β_x × D × L_sext) + + Sextupoles placed at locations with significant dispersion D(s): + Focusing sextupole (SF): near QF, positive D → corrects horizontal chromaticity + Defocusing sextupole (SD): near QD, positive D → corrects vertical chromaticity + + Chromaticity corrected to: ξ_x,y ≈ +2 (slightly positive for head-tail stability) + + Sextupole side effects: + Geometric aberrations: nonlinear detuning with amplitude + Dynamic aperture reduction: particles at large amplitude become unstable + Tune footprint: Q vs. amplitude spread (octupole compensation may be needed) + +Superconducting Magnets — Detailed Design: + LHC Main Dipole (MB): + Coil: NbTi Rutherford cable, 28 strands, 6 μm filament diameter + Cu/SC ratio: 1.6–1.9 (copper stabilizer for quench protection) + Operating temperature: 1.9 K (superfluid He II) + Critical current I_c: >14,000 A at 1.9 K, 10 T (load line margin ~15%) + + Twin-aperture yoke: + Common iron yoke (low-carbon steel) + Two beam pipes separated by 194 mm + Opposite B direction in two apertures (dipole field) + Flux return through common yoke → compact design + Saturation effects: systematic b_3, b_5 at high field + + Quench protection: + Quench heaters: stainless steel strips bonded to coil, fired on detection + Energy extraction: R_dump absorbs magnet stored energy + Quench propagation velocity: ~10–20 m/s along cable + Hot-spot temperature: <300 K (safe for NbTi and insulation) + + Nb₃Sn magnets (next generation): + Higher critical temperature (T_c ≈ 18 K vs. 9.2 K for NbTi) + Higher critical field (B_c2 > 25 T at 4.2 K vs. ~14 T for NbTi) + HL-LHC: 11 T dipoles (Nb₃Sn, shorter than MB) for collimator insertion + FCC target: 16 T Nb₃Sn dipoles for 100 TeV collision energy + Challenge: Nb₃Sn is brittle (strain-sensitive), requires wind-and-react process + +Fast Extraction System: + Purpose: rapidly deflect bunched beam from circulating orbit to transfer line + or beam dump within one revolution gap (abort gap ~3 μs in LHC). + + Kicker magnet: + Rise time: <1 μs (LHC MKD: 3 μs, for 3 μs abort gap) + Deflection angle: θ_kicker = B×L_kicker/(Bρ) + Required: Δx at septum > septum blade thickness + beam size + + Fast pulsed power: + PFN charged to 30–60 kV + Thyratron or solid-state switch + Pulse flatness: ±1% during beam passage + + Septum magnet: + DC or slow-pulsed magnet separating circulating and extracted beams + Thin septum blade: ~2–6 mm (minimize circulating beam interaction) + Field: ~1 T + Deflection angle: ~2–5 mrad (LHC extraction septa) + + Extraction sequence: + 1. Create abort gap: ~3 μs empty in LHC (~1 turn = 89 μs) + 2. Dilution kickers fire: spread beam transversely before dump + 3. Extraction kickers fire during abort gap + 4. Beam enters septum field region + 5. Extracted beam transported to beam dump (graphite + concrete) + +H⁻ Charge-Exchange Injection: + Technique for accumulating high-intensity proton beams in synchrotrons. + + Process: + H⁻ ions from linac are injected into synchrotron through stripping foil + H⁻ → p⁺ + 2e⁻ (both electrons stripped by ~200 μg/cm² carbon foil) + Protons merge with circulating beam (Lorentz force same direction) + + Advantages: + Liouville's theorem permits multi-turn injection without emittance growth + Phase-space painting: vary closed-orbit bump to fill transverse emittance + Can accumulate >10¹⁴ protons without significant losses + + Foil specification: + Material: carbon (graphite or diamond-like carbon DLC) + Thickness: 50–500 μg/cm² + Stripping efficiency: >99% + Foil lifetime: limited by radiation damage and thermal stress + Laser stripping: emerging alternative (Lorentz stripping in magnetic field) + + Injection elements: + Injection septum: DC magnet at injection energy + Painting bump magnets (4 pulsed dipoles): create closed-orbit distortion + Stripping foil at injection point + Phase-space painting: horizontal and/or vertical painting profiles +``` + +#### 3.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class MagnetType { Dipole, Quadrupole, Sextupole, Octupole, CombinedFunction, Solenoid, Kicker, Septum }; + +enum class MagnetTechnology { NormalConducting_Copper, Superconducting_NbTi, Superconducting_Nb3Sn, HTS_REBCO }; + +enum class LatticeType { FODO, FODO_Arc, Doublet, Triplet, InjectionInsertion, CollisionInsertion }; + +enum class InjectionMethod { HI_StrippingFoil, SingleTurn, MultiTurn, ChargeExchange_Laser }; + +struct DipoleSpec { + double magnetic_field_T; + double magnetic_length_m; + double bending_radius_m; + double bending_angle_rad; + double good_field_region_mm; + double field_homogeneity_DeltaBdl_over_Bdl; + std::vector multipole_bn; // normal components b₁–b₁₅ + std::vector multipole_an; // skew components a₁–a₁₅ + MagnetTechnology technology; + double operating_current_A; + double stored_energy_MJ; + double inductance_H; + bool twin_aperture; // LHC style + double aperture_separation_mm; // for twin-aperture + double operating_temperature_K; // 1.9 for LHC, 4.5 for others + double training_quenches_expected; + double quench_protection_heater_power_W; + double hot_spot_temperature_limit_K; +}; + +struct QuadrupoleSpec { + double gradient_T_per_m; + double magnetic_length_m; + double normalized_strength_k_per_m2; // k = G/(Bρ) + double focal_length_m; // 1/f = k×L + double aperture_radius_mm; + double pole_tip_field_T; + std::vector multipole_bn; // b₆ (dodecapole) main systematic + MagnetTechnology technology; + double operating_current_A; + double operating_temperature_K; +}; + +struct SextupoleSpec { + double sextupole_strength_Bpp_T_per_m2; // B'' = ∂²B_y/∂x² + double magnetic_length_m; + double normalized_strength_m_per_m3; // m = B''/(Bρ) + double chromaticity_contribution_dQ; // per sextupole family + MagnetTechnology technology; + double operating_current_A; +}; + +struct FODO_CellSpec { + LatticeType type; + double cell_length_m; + double quadrupole_half_aperture_mm; + double beta_max_m; + double beta_min_m; + double phase_advance_deg; // μ per cell + double horizontal_tune_contribution; + double vertical_tune_contribution; + double dispersion_max_m; + double natural_chromaticity_contribution; +}; + +struct SynchrotronLatticeSpec { + double beam_rigidity_Tm; // Bρ + double circumference_m; + LatticeType arc_type; + int number_of_FODO_cells; + FODO_CellSpec arc_cell; + double horizontal_tune_Qx; + double vertical_tune_Qy; + double natural_chromaticity_x; + double natural_chromaticity_y; + double corrected_chromaticity_x; + double corrected_chromaticity_y; + double transition_gamma; // γ_t = 1/√α_c + double momentum_compaction_alpha_c; + int number_of_dipoles; + int number_of_quadrupoles; + int number_of_sextupole_families; + std::vector dipoles; + std::vector quadrupoles; + std::vector sextupoles; +}; + +struct KickerSpec { + double rise_time_ns; + double flat_top_duration_us; + double pulse_voltage_kV; + double pulse_current_kA; + double deflection_angle_mrad; + double field_strength_T; + double magnetic_length_m; + int number_of_modules; + bool solid_state_switch; + double repetition_rate_Hz; +}; + +struct SeptumSpec { + double field_strength_T; + double magnetic_length_m; + double septum_blade_thickness_mm; + double deflection_angle_mrad; + bool DC_operation; + double pulse_current_A; + double cooling_water_flow_L_per_min; +}; + +struct InjectionSpec { + InjectionMethod method; + double injection_energy_GeV; + double injection_beam_rigidity_Tm; + double stripping_foil_thickness_ug_per_cm2; + double stripping_efficiency_pct; + int number_of_injection_turns; + double painting_horizontal_emittance_mm_mrad; + double painting_vertical_emittance_mm_mrad; + SeptumSpec injection_septum; + std::vector painting_bump_kickers; +}; + +struct ExtractionSpec { + double extraction_energy_GeV; + KickerSpec fast_kicker; + SeptumSpec extraction_septum; + double total_deflection_mrad; + double beam_size_at_septum_mm; + double septum_clearance_mm; + double abort_gap_length_us; + int number_of_dilution_kickers; +}; + +struct SynchrotronSpec { + std::string name; + std::string particle_species; + double injection_energy_GeV; + double extraction_or_collision_energy_GeV; + SynchrotronLatticeSpec lattice; + std::vector arc_dipoles; + std::vector arc_quadrupoles; + std::vector chromaticity_sextupoles; + InjectionSpec injection; + ExtractionSpec extraction; + double stored_beam_energy_MJ; + double synchrotron_radiation_power_kW; // electron rings + double beam_lifetime_hours; +}; + +struct SynchrotronState { + double actual_beam_energy_GeV; + double actual_beam_current_mA; + double actual_tunes_Qx_Qy[2]; + double actual_chromaticity[2]; + double beam_size_at_IP_um; + double luminosity_per_bunch_Hz_per_ub; + double magnet_training_quench_count; + bool extraction_interlock_armed; + bool beam_dump_triggered; +}; + +struct SynchrotronPerformance { + double integrated_luminosity_per_fb; + double average_availability_pct; + double beam_lifetime_hours; + double tune_stability_delta_Q_rms; + double orbit_stability_um_rms; + double quench_recovery_time_minutes; + bool meets_design_luminosity; +}; + +SynchrotronSpec design_synchrotron(double collision_energy_TeV, std::string particle = "proton", double circumference_km = 26.659); + +SynchrotronState initialize_synchrotron_state(const SynchrotronSpec& spec); + +SynchrotronPerformance simulate_synchrotron(const SynchrotronSpec& spec, SynchrotronState& state, double elapsed_time_hours); + +DipoleSpec design_superconducting_dipole(double field_T, double aperture_mm, double length_m, MagnetTechnology tech = MagnetTechnology::Superconducting_NbTi); + +FODO_CellSpec design_fodo_cell(double phase_advance_deg, double beta_max_m, double beam_rigidity_Tm); + +double calculate_chromaticity_correction(const std::vector& sextupoles, const std::vector& beta_x, const std::vector& beta_y, const std::vector& D_x, double B_rho); + +bool check_tune_resonance(double Qx, double Qy, int max_order = 5); + +double calculate_beam_rigidity(double momentum_GeV_per_c, int charge_number_Z = 1); + +} // namespace vde::particle_accelerator +``` + +--- + +### 4. Cyclotron — Isochronous AVF, H⁻ Extraction, and Superconducting + +**Priority**: P1 + +#### 4.1 Isochronous AVF Sector Focusing, Flutter, and Stripping Extraction + +``` +Cyclotron overview: + The cyclotron is a circular accelerator where particles spiral outward in a + uniform magnetic field while being accelerated by a fixed-frequency RF voltage + applied across a gap (dee). The isochronous cyclotron overcomes the relativistic + mass increase limitation through azimuthally varying field (AVF) focusing. + +Classical Cyclotron (Lawrence, 1930): + Resonance condition: ω_RF = ω_cyclotron = qB/m + Revolution frequency is constant (independent of energy) + Limitation: as v → c, m = γ×m₀ increases → ω decreases → particles lose synchronism + + Maximum proton energy in classical cyclotron: ~20 MeV (γ ≈ 1.02, 2% mass increase) + +Isochronous Cyclotron: + Compensates relativistic mass increase by increasing B with radius: + + B(r) = γ(r) × B₀ = B₀ × (1 − (ω×r/c)²)^(−1/2) + + Where: + B₀ = field at center (at r=0) + γ(r) = relativistic Lorentz factor at radius r + + This requires B to increase at exact rate to keep ω = qB/(γm₀) = constant. + + Isochronism condition: + ω(r) = qB(r)/(γ(r)×m₀) = constant + → B(r) = γ(r) × B₀ (exact field profile required) + + However, a radially INCREASING field is axially DEFOCUSING: + n = −(r/B)×(dB/dr) + n < 0 → defocusing (for B ∼ constant: n ≈ 0; for B ∝ γ: n < 0) + + Axial (vertical) focusing requires n > 0 → radially decreasing field + Contradiction with isochronism! + +AVF (Azimuthally Varying Field) Sector Focusing: + Resolution: make B vary azimuthally (with θ) rather than just radially. + + Magnet structure with sectors (hills and valleys): + In hill region: B_hill (high field, shorter path) + In valley region: B_valley (low field, longer path) + + Field flutter F: + F = /(²) − 1 ≥ 0 + + Where: + = (1/θ_hill) × [∫B(r,θ)dθ over one period] + F ≈ (B_hill − B_valley)²/(2×B_avg²) for binary hill/valley + + The alternating focusing (Thomas focusing, 1938): + ν_z² = n + F × (1+2×tan²(ξ)) + + Where: + ν_z = vertical betatron tune per turn + n = field index (<0 for isochronous) + F = flutter (>0) + ξ = spiral angle of sector edges + + Focusing provided by: + 1. Sector edges: edge focusing (fringe field like quadrupole) + 2. Flutter F: alternating gradient focusing + 3. Spiral sectors: additional edge focusing ∝ tan²(ξ) + + For axial stability: ν_z² > 0 + Requires F > |n| for adequate focusing + Typical F: 0.05–0.5 (modern cyclotrons) + Spiral angle ξ: 30°–70° + + Sector magnet design: + Number of sectors N_s: 3–4 (most common) + PSI 590 MeV: 8 sectors + TRIUMF 500 MeV: 6 sector magnet (largest cyclotron, 4000 tonnes) + + Hill gap: ~20–100 mm (room temperature coils) + Valley gap: 200–1000 mm (space for RF cavities, injection, extraction) + + Magnet materials: + Low-carbon steel (pole tips: high saturation B ~2.2 T) + Coils: water-cooled copper (normal conducting) + Superconducting: NbTi at 4.2 K, B_coil ~4–6 T, B_hill ~3–5 T + + RF system: + Frequency: 20–70 MHz (typical) + Dee voltage: 50–250 kV (per gap) + Number of dees: 2 (180° apart) or 4 + Energy gain per turn: ΔE = q × N_dee × V_dee × sin(φ_s) + ~100–400 keV/turn for medical cyclotrons + +H⁻ Stripping Extraction: + Using a thin carbon stripping foil at the extraction radius to convert + H⁻ → p⁺ + 2e⁻. The protons immediately bend in the OPPOSITE direction + (reversed Lorentz force), exiting the cyclotron cleanly. + + Advantages: + Nearly 100% extraction efficiency (no septum or kicker needed) + Variable extraction energy (by moving foil to different radii) + Multiple simultaneous extraction points possible + Standard in commercial proton therapy cyclotrons (IBA, Varian, Mevion) + + Foil parameters: + Material: pyrolitic graphite (~50–200 μg/cm²) + Stripping efficiency: >99.9% + Foil lifetime: limited by thermal stress and radiation damage + Foil exchange mechanism: magazine with multiple foils + +Superconducting Cyclotron: + NbTi coils operating at 4.2 K (liquid helium bath cooling) + Central field B₀: 2–5 T (vs. ~1.6 T for normal-conducting) + Dramatic size reduction: + Normal-conducting 250 MeV: ~4–5 m diameter, ~200 tonnes + Superconducting 250 MeV: ~2–3 m diameter, ~50–90 tonnes + + Cryostat: + Liquid He vessel surrounding NbTi coils + Thermal shield at 60–80 K (LN₂ or cryocooler) + Cryocooler: 2-stage Gifford-McMahon or pulse-tube (4 K + 60 K stages) + Heat load: radiation ~1–5 W, conduction ~0.1–1 W + LHe boil-off rate: ~0.1–0.5 L/h → refill every 1–3 months + + Cryogen-free (cryocooler-only) option: + Conduction-cooled NbTi coils (no liquid helium) + Lower operating cost, no LHe supply chain + Used in: Mevion S250, Sumitomo proton therapy cyclotrons + +Synchrocyclotron: + Frequency-Modulated (FM) RF to maintain synchronism: + ω_RF(t) = qB/(γ(t)×m₀) decreases as γ increases + FM range: ~10–30% frequency swing over acceleration cycle + + Pulsed operation: + One bunch accelerated per RF cycle (∼ms duration) + Repetition rate: 100–500 Hz → duty factor ∼0.1–1% + Lower average beam current than isochronous (~nA–μA vs. mA) + + Modern revival: + Mevion S250 (superconducting synchrocyclotron): + 250 MeV protons, 2.5 T central field + Diameter ~1.8 m, weight ~20 tonnes (gantry-mounted!) + FM range: ~100 MHz → 87 MHz over acceleration cycle + Average beam current: ~100 nA therapeutic +``` + +#### 4.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class CyclotronType { Classical, Isochronous_AVF, Superconducting_AVF, Synchrocyclotron }; + +enum class ExtractionMethod { HI_StrippingFoil, ElectrostaticDeflector, InternalTarget }; + +enum class CyclotronMagnetTech { NormalConducting_WaterCooled, Superconducting_NbTi_LHe, CryogenFree_NbTi_Cryocooler }; + +struct SectorMagnetSpec { + int number_of_sectors; + double hill_gap_mm; + double valley_gap_mm; + double hill_field_T; + double valley_field_T; + double flutter_F; + double spiral_angle_deg; + CyclotronMagnetTech technology; + double average_field_at_center_T; + double extraction_radius_m; + double magnet_outer_diameter_m; + double magnet_mass_tonnes; + double coil_current_A; + double coil_power_kW; + double operating_temperature_K; + double cryocooler_capacity_W_at_4K; + double liquid_helium_boiloff_L_per_hour; +}; + +struct CyclotronRFSpec { + double frequency_MHz; + double frequency_modulation_range_MHz; // for synchrocyclotron + double dee_voltage_kV; + int number_of_dees; + double energy_gain_per_turn_keV; + double rf_power_kW; + double repetition_rate_Hz; // for synchrocyclotron + double rf_pulse_duration_us; +}; + +struct StrippingFoilSpec { + double thickness_ug_per_cm2; + double extraction_efficiency_pct; + double foil_lifetime_Coulomb; + bool variable_energy_extraction; + double energy_range_min_MeV; + double energy_range_max_MeV; + int foil_magazine_capacity; +}; + +struct CyclotronSpec { + CyclotronType type; + std::string particle_species; + int charge_state_Z; + double extraction_energy_MeV; + double extraction_beam_current_uA; + SectorMagnetSpec magnet; + CyclotronRFSpec rf; + ExtractionMethod extraction_method; + StrippingFoilSpec stripping_foil; + double total_diameter_m; + double total_mass_tonnes; + double total_power_consumption_kW; + double beam_emittance_normalized_pi_mm_mrad; + double energy_spread_pct; + bool gantry_mountable; // for proton therapy +}; + +struct CyclotronState { + double actual_extraction_energy_MeV; + double actual_beam_current_uA; + double magnet_field_drift_ppm; + double helium_level_pct; + double cryocooler_cold_head_temp_K; + double rf_forward_power_kW; + double rf_reflected_power_kW; + double vacuum_pressure_mbar; + int foil_usage_count; + bool interlock_ok; +}; + +struct CyclotronPerformance { + double extraction_efficiency_pct; + double energy_stability_pct_rms; + double beam_current_stability_pct_rms; + double availability_pct; + double mean_time_between_failures_hours; + double foil_change_interval_days; + double annual_helium_consumption_L; + bool meets_medical_isotope_spec; +}; + +CyclotronSpec design_cyclotron(CyclotronType type, double extraction_energy_MeV, double beam_current_uA = 100); + +CyclotronState initialize_cyclotron_state(const CyclotronSpec& spec); + +CyclotronPerformance simulate_cyclotron(const CyclotronSpec& spec, CyclotronState& state, double elapsed_hours); + +SectorMagnetSpec design_avf_magnet(int N_sectors, double spiral_angle_deg, double flutter_target, double B_central_T, double extraction_radius_m); + +double calculate_flutter(double B_hill, double B_valley, double hill_angular_width_frac); + +bool verify_isochronism(const CyclotronSpec& spec, double tolerance_pct = 0.1); + +} // namespace vde::particle_accelerator +``` + +--- + +### 5. FEL & Light Source — Undulator, SASE, and Synchrotron Radiation + +**Priority**: P1 + +#### 5.1 Undulator Physics, Resonance Condition, and FEL Gain + +``` +Free-Electron Laser (FEL) overview: + FELs produce coherent X-ray radiation by passing a relativistic electron beam + through a periodic magnetic structure (undulator), where the transverse + oscillation couples to the co-propagating radiation field, inducing microbunching + at the radiation wavelength and exponential gain via SASE. + +Undulator Physics: + A planar undulator consists of alternating polarity permanent magnets (SmCo or + NdFeB) producing a sinusoidal magnetic field on axis: + + B_y(z) = B₀ × sin(k_u × z) + + Where: + k_u = 2π/λ_u + λ_u = undulator period (typically 15–50 mm for X-ray FELs) + B₀ = peak magnetic field [T] (typically 0.5–2 T) + + Undulator parameter K: + K = eB₀λ_u/(2πmₑc) = 0.934 × B₀[T] × λ_u[cm] + + Dimensionless measure of undulator "strength" + K < 1: undulator regime (narrow-band radiation, interference effects) + K ≫ 1: wiggler regime (broad-band, synchrotron-like) + + Electron trajectory: + x(z) = (K/(γk_u)) × sin(k_u z) [transverse oscillation] + + Maximum deflection angle: θ_max = K/γ + + Resonance Condition: + The fundamental wavelength emitted on-axis is: + + λ = (λ_u/(2γ²)) × (1 + K²/2 + γ²θ²) + + On-axis (θ = 0): + λ = (λ_u/(2γ²)) × (1 + K²/2) + + Where: + γ = E_e/(mₑc²) = E_e[MeV]/0.511 (relativistic factor) + K²/2 accounts for the effective longitudinal velocity reduction + due to transverse oscillation + + Energy tuning: + λ ∝ 1/γ² ∝ 1/E_e² + Typical tuning range: factor ~2–3 in photon energy by varying electron energy + K tuning: vary undulator gap → change B₀ → tune K (limited range) + + Example (LCLS, λ_u = 3 cm): + E_e = 13.6 GeV → γ ≈ 26,600 + With K = 3.5: λ ≈ 0.15 nm (8.3 keV X-rays) + With K = 0.5: λ ≈ 0.11 nm (11.2 keV X-rays) + +SASE (Self-Amplified Spontaneous Emission) FEL: + SASE starts from shot noise (spontaneous undulator radiation from random + electron positions). The radiation co-propagates with the e-beam through + the undulator, and the combined radiation-electron interaction induces + energy modulation → density modulation (microbunching) at the radiation + wavelength → enhanced coherent emission → exponential gain. + + SASE characteristics: + - No optical cavity needed (single pass, high gain) + - Start from noise → statistical fluctuations in temporal/spectral profile + - Each pulse has slightly different temporal structure (spikes) + - Bandwidth: Δλ/λ ∼ ρ (Pierce parameter, ~0.1%) + - Pulse duration: electron bunch length (~10–100 fs for XFELs) + + Gain length L_g (1D theory): + L_g = λ_u/(4π√3 × ρ) [m] + + Pierce parameter ρ: + ρ = (1/γ) × [(I_peak/I_A) × (K²×[JJ]²/(1+K²/2)) × (λ_u²/(16π×σ_r²))]^(1/3) + + Where: + I_peak = peak beam current [A] (~1–5 kA for XFELs) + I_A = Alfven current ≈ 17.045 kA (electrons) + [JJ] = J₀(K²/(4+2K²)) − J₁(K²/(4+2K²)) (Bessel factor, ~0.7–0.9) + σ_r = rms transverse beam size [m] + + Typical L_g values: + LCLS (hard X-ray): L_g ~ 3–6 m (λ_u = 3 cm, total length ~130 m) + FLASH (soft X-ray): L_g ~ 1–2 m + European XFEL: L_g ~ 3–5 m (superconducting linac, high rep rate) + + Saturation: + Power grows: P(z) = P₀ × exp(z/L_g) until saturation + Saturation length: L_sat ≈ 18–20 × L_g + Saturated power: P_sat ≈ ρ × P_beam ≈ 1–10 GW (peak) + + Seeding options: + Self-seeding: monochromator + chicane → narrow-band seed + External seeding (HGHG, EEHG): external laser → harmonic up-conversion + Reduces SASE noise, improves temporal coherence + +Synchrotron Radiation: + Bending magnet radiation (from dipole magnets): + Critical energy E_c [keV]: + E_c = (3hceBγ²)/(4πmₑc) = 0.665 × E_e²[GeV] × B[T] + + Half the radiated power is above E_c, half below + Average photon energy: ∼0.31 × E_c + + Total radiated power per electron: + P_rad = (2r_e/(3mₑc³)) × c×(eB)×γ²×E_e + = (e²c/(6πε₀)) × γ⁴/ρ² + + For a ring of N_e electrons with current I [A]: + P_total = (eγ⁴I)/(3ε₀ρ) + P_total[kW] = 88.46 × E_e⁴[GeV] × I[A] / ρ[m] + LEP at 100 GeV, 6 mA: P_rad ~ 28 MW → major power limitation! + + Brilliance B [ph/s/mm²/mrad²/0.1%BW]: + B = F / (4π² × σ_x × σ_x' × σ_y × σ_y' × Δω/ω) + + Where: + F = photon flux [ph/s/0.1%BW] + σ_x, σ_y = rms source sizes + σ_x', σ_y' = rms angular divergences + + 3rd generation storage rings: B ~ 10²⁰ (undulator) + XFEL (peak): B ~ 10³³–10³⁴ (10+ orders higher!) + Diffraction-limited storage rings (ESRF-EBS, APS-U, etc.): + B ~ 10²² (multi-bend achromat lattice) +``` + +#### 5.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class UndulatorType { Planar_PermanentMagnet, Helical, Elliptical_APPLE, Superconducting, InVacuum, Cryogenic_PM }; + +enum class FEL_Mode { SASE, Seeded_HGHG, SelfSeeded, Oscillator, RegenerativeAmplifier }; + +struct UndulatorSpec { + UndulatorType type; + double period_lambda_u_mm; // 15–50 mm for X-ray FELs + int number_of_periods; + double total_length_m; + double K_parameter_max; // at minimum gap + double K_parameter_min; // at maximum gap + double peak_field_B0_T; + double gap_min_mm; + double gap_max_mm; + double gap_tuning_range_mm; + std::string magnet_material; // SmCo, NdFeB, PrFeB + double magnet_grade_MGOe; + double phase_error_rms_deg; // <3° for FEL-grade + double trajectory_straightness_um; + bool in_vacuum; // for short-period small-gap + double vacuum_chamber_aperture_mm; +}; + +struct ElectronBeamSpec { + double energy_GeV; + double energy_spread_rms_pct; + double peak_current_kA; + double normalized_emittance_mm_mrad; + double bunch_charge_pC; + double bunch_length_fs_rms; + double repetition_rate_Hz; + double slice_emittance_mm_mrad; + double slice_energy_spread_pct; +}; + +struct SASEFEL_Spec { + FEL_Mode mode; + UndulatorSpec undulator; + ElectronBeamSpec electron_beam; + double resonance_wavelength_nm; + double photon_energy_eV; + double pierce_parameter_rho; + double gain_length_L_g_m; + double saturation_length_m; + double saturated_power_GW; + double pulse_energy_uJ; + double photon_flux_ph_per_pulse; + double bandwidth_delta_lambda_over_lambda; + double brilliance_peak; + double temporal_coherence_length_fs; + double transverse_coherence_pct; +}; + +struct SynchrotronRadiationSpec { + double bending_field_T; + double bending_radius_m; + double electron_energy_GeV; + double beam_current_mA; + double critical_energy_keV; + double total_radiated_power_kW; + double photon_flux_total_ph_per_s; + double brilliance_at_Ec; +}; + +struct LightSourceSpec { + std::string type; // StorageRing, XFEL, ERL + SynchrotronRadiationSpec bending_magnet_radiation; + std::vector insertion_devices; + std::vector fel_lines; + double photon_energy_range_min_eV; + double photon_energy_range_max_eV; + int number_of_beamlines; + double annual_operating_hours; +}; + +struct FELState { + double actual_undulator_K; + double actual_photon_energy_eV; + double pulse_energy_measured_uJ; + double gain_length_measured_m; + double pointing_stability_urad_rms; + double intensity_stability_pct_rms; + bool saturation_achieved; + bool seeded_mode_active; +}; + +struct FELPerformance { + double average_brilliance; + double photon_energy_stability_eV_rms; + double pulse_energy_reproducibility_pct; + double uptime_pct; + double annual_user_beamtime_hours; + bool meets_design_wavelength; +}; + +UndulatorSpec design_planar_undulator(double period_mm, double K_max, double gap_min_mm, int N_periods); + +SASEFEL_Spec design_sase_fel(const UndulatorSpec& undulator, const ElectronBeamSpec& ebeam, double target_wavelength_nm); + +FELState initialize_fel_state(const SASEFEL_Spec& spec); + +FELPerformance simulate_fel(const SASEFEL_Spec& spec, FELState& state, int num_shots); + +double calculate_undulator_K(double B0_T, double lambda_u_cm); + +double calculate_resonance_wavelength(double lambda_u_mm, double K, double gamma); + +double calculate_pierce_parameter(double gamma, double I_peak_A, double K, double lambda_u_m, double sigma_r_m); + +double calculate_gain_length(double lambda_u_m, double rho); + +double calculate_synchrotron_critical_energy(double E_GeV, double B_T); + +double calculate_brilliance(double flux, double sigma_x_um, double sigma_xp_urad, double sigma_y_um, double sigma_yp_urad); + +} // namespace vde::particle_accelerator +``` + +--- + +### 6. Beamline Optics & Vacuum — Transfer Matrices, Emittance, and UHV + +**Priority**: P1 + +#### 6.1 Beam Transport, Twiss Parameters, and Vacuum Systems + +``` +Beamline Optics overview: + Beam transport lines connect accelerators to each other and to experimental + areas, preserving beam quality (emittance) while providing the necessary + optical matching and diagnostic capabilities. + +Transfer Matrix Formalism: + Each beamline element is represented by a 6×6 transfer matrix R that maps + particle coordinates from entrance to exit: + + X_out = R × X_in + X = (x, x', y, y', z, δ)^T + + Where: + x, y = transverse positions [m] + x' = dx/ds, y' = dy/ds = transverse angles [rad] + z = longitudinal position relative to reference + δ = Δp/p = momentum deviation + + Element transfer matrices: + + Drift (length L): + x' unchanged: R₁₂ = L + Matrix: [1 L 0 0 0 0] + [0 1 0 0 0 0] + [0 0 1 L 0 0] + [0 0 0 1 0 0] + [0 0 0 0 1 0] + [0 0 0 0 0 1] + + Thin quadrupole (focal length f): + R₂₁ = −1/f (focusing, f > 0: defocusing in x, focusing in y) + R₄₃ = +1/f (defocusing in y if f > 0) + Matrix: [ 1 0 0 0 0 0] + [−1/f 1 0 0 0 0] + [ 0 0 1 0 0 0] + [ 0 0 1/f 1 0 0] + (off-diagonal zeros) + + Sector dipole (bending angle θ, radius ρ): + Requires extended 6×6 treatment due to dispersion + R₁₆ = ρ(1−cos(θ)) (horizontal dispersion) + R₂₆ = sin(θ) (angular dispersion) + + Solenoid (field B_s, length L): + Couples x-y planes (rotation) + Rotation angle φ = B_s×L/(2×Bρ) + Mixed x-y transfer: 4×4 block with cos(φ), sin(φ) terms + + Beam envelope propagation (transport of Twiss parameters): + Given initial Twiss parameters (α₀, β₀, γ₀) and transfer matrix M: + + [β] [M₁₁² −2M₁₁M₁₂ M₁₂² ] [β₀] + [α] = [−M₁₁M₂₁ M₁₁M₂₂+M₁₂M₂₁ −M₁₂M₂₂] [α₀] + [γ] [M₂₁² −2M₂₁M₂₂ M₂₂² ] [γ₀] + + Beam size at any point: σ_x(s) = √(β_x(s)×ε_x) + + Envelope equation (no acceleration): + d²/ds²(√β) + k(s)×√β − 1/β^(3/2) = 0 + + Where k(s) is the focusing strength + + Emittance preservation: + Normalized rms emittance: + ε_n = βγ × ε_geom [mm·mrad] + + Emittance growth sources: + - Mismatch: Twiss parameter mismatch at interfaces + - Dispersion: finite dispersion at RF cavities → emittance growth + - Scattering: residual gas scattering, foil interactions + - Wakefields: beam-induced fields in resistive walls + - CSR (Coherent Synchrotron Radiation): in bending magnets + - Space charge: significant at low energy, high current + + Emittance growth budget: + Typical total growth <20% through linac for XFEL + Each source allocated fraction of total budget + +Ultra-High Vacuum (UHV) Systems: + Required pressure ranges: + 10⁻⁶–10⁻⁷ mbar: rough vacuum (rotary, scroll pumps) + 10⁻⁷–10⁻⁹ mbar: high vacuum (turbomolecular pumps) + 10⁻⁹–10⁻¹¹ mbar: UHV (ion pumps, getter pumps, cryopumps) + 10⁻¹¹–10⁻¹² mbar: XHV (extreme high vacuum, NEG + cryopumping) + + Vacuum requirements for accelerators: + Storage rings (synchrotron light sources): 10⁻⁹–10⁻¹⁰ mbar + Beam-gas scattering limits lifetime + XFEL undulator sections: <10⁻⁹ mbar + Electron beam quality preservation + LHC beam pipe: 10⁻⁸–10⁻⁹ mbar (cryopumping at 1.9 K) + SRF cavities: 10⁻⁹–10⁻¹⁰ mbar (field emission prevention) + + Pump types: + SIP (Sputter Ion Pump): + Penning discharge ionizes gas, ions buried in Ti cathode + Pumping speed: 10–500 L/s (N₂) + No moving parts, vibration-free, bakeable to 400°C + Poor for noble gases (Ar, He), good for reactive gases + + TSP (Titanium Sublimation Pump): + Ti filament sublimated onto cooled surface + Fresh Ti film chemically pumps reactive gases (N₂, O₂, H₂, CO, CO₂) + Pumping speed: 1,000–10,000 L/s (N₂) per filament + No pumping for noble gases, hydrocarbons → use with SIP + + Typical configuration: SIP + TSP pair + + NEG (Non-Evaporable Getter): + Zr-V-Fe or Ti-Zr-V alloy, activated by heating to 400–550°C + Integrated as coating on vacuum chamber walls + Pumping speed per unit area: ~0.1–1 L/(s·cm²) for H₂ + Pumps H₂, CO, CO₂, H₂O, N₂; does NOT pump noble gases or CH₄ + Bakeout activation: 200–400°C for 24 h (in-situ) + Used in: LHC long straight sections, ESRF-EBS, MAX IV + + Cryopump: + Cold surface (10–80 K) condenses gases + LHC: beam pipe at 1.9 K acts as perfect cryopump + Regeneration required periodically (warm up → pump away) + + Vacuum chamber materials: + Stainless steel (316L, 316LN): standard, low magnetic permeability + Aluminum (Al-Mg-Si): light, low activation, good thermal conductivity + Copper (OFHC): excellent thermal conductivity, used in SRF cavities + NEG-coated chambers: thin Ti-Zr-V film (~1 μm), activated in-situ + Ceramic break: electrical insulation between sections + + Bakeout: 150–400°C for 24–48 h to desorb H₂O from walls + H₂ outgassing rate after bakeout: ~10⁻¹² mbar·L/(s·cm²) + +Beam Diagnostics: + BPM (Beam Position Monitor): + Capacitive pickup (button BPM): 4 electrodes, signals ∝ beam proximity + Stripline BPM: directional coupler, 10–30 cm length + Cavity BPM: resonant cavity excited by beam offset → nm resolution + + Position resolution: 1–100 μm (button), 10–500 nm (cavity BPM at XFELs) + Single-bunch or multi-bunch capability + Resolution formula: + σ_pos ∝ (1/√(BW×SNR)) × (aperture/electrode geometry factor) + + Wire Scanner: + Thin wire (C, W, or SiC fiber) scanned through beam + Secondary emission or scattered particles detect beam profile + Wire diameter: 10–50 μm (C fiber), 5–20 μm (W wire) + Spatial resolution: ~10–50 μm + Limitations: wire heating/breakage at high intensity, slow scan + + Laser Wire: + Laser beam scanned across electron/positron beam + Compton scattering produces γ-rays detected downstream + Non-destructive, works at high beam power + Resolution: ~5–20 μm + + BLM (Beam Loss Monitor): + Ionization chamber or scintillator placed along beamline + Detects secondary particles from beam losses + Machine protection: interlock if losses exceed threshold + Typical threshold: 1 W/m sustained, 10⁴ protons/pulse transient + Location: near collimators, septa, kickers + + Additional diagnostics: + Faraday Cup: total beam current (destructive, inserted) + DCCT (DC Current Transformer): non-destructive beam current + BCT (Beam Current Transformer): pulsed or fast current measurement + OTR (Optical Transition Radiation): beam profile from foil + Synchrotron light monitor: imaging visible/UV from dipole edge + Streak camera: longitudinal bunch profile (ps resolution) +``` + +#### 6.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class BeamlineElement { Drift, Quadrupole, Dipole, Solenoid, Sextupole, BPM, Corrector, Collimator }; + +enum class VacuumPumpType { SIP, TSP, NEG_Coating, Cryopump, TurboMolecular, Scroll }; + +enum class BPM_Type { Button_Electrostatic, Stripline, Cavity_BPM }; + +enum class ProfileMonitorType { WireScanner, LaserWire, OTR_Screen, Scintillator_Screen }; + +struct TransferMatrixSpec { + std::vector> R_6x6; // 6×6 transport matrix + double R11, R12, R16; // direct access for common elements + double R21, R22, R26; + double R33, R34; + double R43, R44; + double R51, R52, R56; + bool symplectic; // det(R) = 1 check +}; + +struct TwissParams { + double beta_x_m; + double alpha_x; + double gamma_x_per_m; + double beta_y_m; + double alpha_y; + double gamma_y_per_m; + double dispersion_x_m; + double dispersion_dx_over_ds; + double dispersion_y_m; + double dispersion_dy_over_ds; +}; + +struct EmittanceSpec { + double geometric_rms_x_mm_mrad; + double geometric_rms_y_mm_mrad; + double normalized_rms_x_mm_mrad; + double normalized_rms_y_mm_mrad; + double longitudinal_rms_deg_keV; + double energy_spread_rms_pct; +}; + +struct BeamlineElementSpec { + BeamlineElement type; + double length_m; + double parameter1; // focal length for quad, B×L for dipole, etc. + double parameter2; + double aperture_radius_mm; + std::string material; + TransferMatrixSpec transfer_matrix; +}; + +struct VacuumSpec { + double design_pressure_mbar; // 10⁻⁹ to 10⁻¹¹ + std::vector pumps; + double SIP_pumping_speed_L_per_s; + double TSP_pumping_speed_L_per_s; + bool NEG_coating_applied; + double NEG_activation_temperature_C; + double NEG_pumping_speed_H2_L_per_s_cm2; + double chamber_material_outgassing_rate; + double total_surface_area_m2; + double bakeout_temperature_C; + double bakeout_duration_hours; + double number_of_roughing_ports; + bool sector_valves_installed; + double allowable_leak_rate_mbar_L_per_s; +}; + +struct BPM_Spec { + BPM_Type type; + double position_resolution_um; + double single_bunch_resolution_um; + double dynamic_range_dB; + int number_of_electrodes; + std::string processing_electronics; + bool turn_by_turn_capable; + double acquisition_rate_kHz; +}; + +struct ProfileMonitorSpec { + ProfileMonitorType type; + double spatial_resolution_um; + double scan_time_ms; + bool destructive; + double max_beam_power_W; + double wire_thickness_um; + std::string wire_material; + bool laser_wire_wavelength_nm; +}; + +struct BeamDiagnosticsSpec { + std::vector bpms; + std::vector profile_monitors; + int number_of_BLMs; + double BLM_threshold_W_per_m; + bool DCCT_installed; + double DCCT_resolution_uA; + bool BCT_installed; + double BCT_resolution_pC; + bool faraday_cup_installed; + bool streak_camera_installed; + double streak_camera_resolution_ps; +}; + +struct BeamlineSpec { + std::string name; + double total_length_m; + std::vector elements; + double input_energy_MeV; + double output_energy_MeV; + TwissParams input_twiss; + TwissParams output_twiss_design; + EmittanceSpec design_emittance; + VacuumSpec vacuum; + BeamDiagnosticsSpec diagnostics; + double transmission_efficiency_target_pct; + bool is_achromatic; // R₁₆ and R₂₆ zero at end + bool is_isochronous; // R₅₆ = 0 +}; + +struct BeamlineState { + TwissParams current_twiss; + EmittanceSpec current_emittance; + double actual_transmission_pct; + double vacuum_pressure_actual_mbar; + std::vector bpm_readings_x_mm; + std::vector bpm_readings_y_mm; + double beam_current_DCCT_uA; + int BLM_alarms; + bool vacuum_interlock; +}; + +struct BeamlinePerformance { + double transmission_efficiency_actual_pct; + double emittance_growth_pct; + double twiss_matching_error_pct; + double orbit_reproducibility_um_rms; + double vacuum_pressure_stability_pct; + double average_pump_lifetime_hours; + bool meets_design_twiss; +}; + +BeamlineSpec design_beamline(double input_energy_MeV, const TwissParams& input_twiss, const TwissParams& target_twiss, const std::vector& element_types); + +BeamlineState initialize_beamline_state(const BeamlineSpec& spec); + +BeamlinePerformance simulate_beamline_transport(const BeamlineSpec& spec, BeamlineState& state, const EmittanceSpec& input_beam); + +TransferMatrixSpec calculate_transfer_matrix(BeamlineElement element, double length, double param1, double param2, double energy_MeV); + +TwissParams propagate_twiss(const TwissParams& input, const TransferMatrixSpec& matrix); + +EmittanceSpec calculate_emittance_growth(const BeamlineSpec& beamline, const EmittanceSpec& input, double vacuum_pressure); + +VacuumSpec design_uhv_system(double target_pressure_mbar, double total_surface_area_m2, double total_outgassing_rate); + +double calculate_vacuum_pressure(double pumping_speed_L_per_s, double outgassing_rate_mbar_L_per_s_cm2, double area_cm2); + +} // namespace vde::particle_accelerator +``` + +--- + +### 7. Detector & DAQ — Silicon Tracker, Calorimetry, Trigger, and Computing + +**Priority**: P1 + +#### 7.1 Pixel Tracker, ECAL/HCAL, Muon Spectrometer, and Trigger System + +``` +Particle Detector Systems overview: + Modern collider detectors are cylindrical "onion-layer" instruments surrounding + the interaction point, with each layer optimized for specific particle types. + The CMS and ATLAS detectors at the LHC represent the state of the art, each + weighing ~14,000 tonnes with ~100 million readout channels. + +Silicon Pixel and Strip Tracker: + Innermost detector layer, reconstructing charged particle trajectories. + + Pixel detector (innermost layer): + Technology: hybrid pixel (sensor + readout chip bump-bonded) + Pixel size: 50×50 μm² or 100×150 μm² (LHC Run 2) + HL-LHC upgrade: 25×100 μm² (smaller for higher occupancy) + Sensor thickness: 200–285 μm (thin for low material budget) + Spatial resolution: 5–10 μm (single hit), 2–5 μm (track extrapolation) + + Radiation hardness (LHC requirements): + Fluence at r=3 cm: ~10¹⁶ n_eq/cm² (over lifetime) + 3D silicon sensors: electrodes penetrate sensor → superior radiation hardness + Diamond sensors: extreme radiation resistance, lower signal + + Occupancy: fraction of channels hit per bunch crossing + Pixel innermost layer: <0.1% (few hits per event) + Too high occupancy → pattern recognition fails + Manageable by reducing pixel size, good time resolution + + Multiple scattering: + θ_MS = (13.6 MeV)/(βcp) × √(x/X₀) × [1+0.038×ln(x/X₀)] + Material budget target: <1% X₀ per layer (to minimize MS) + + Silicon strip tracker (outer layers): + Strip pitch: 80–180 μm + Strip length: 2–10 cm + Single-point resolution: 10–50 μm (σ = pitch/√12) + Larger area coverage at lower cost per channel + Total tracker layers: 10–14 (CMS), 3 pixels + 4 strips (ATLAS) + + Tracker magnetic field: + CMS solenoid: 3.8 T → high momentum resolution + p_T resolution: σ(p_T)/p_T ≈ 0.015×p_T[TeV] ⊕ 0.005 (CMS) + Tracking efficiency: >99% for p_T > 0.5 GeV + +Electromagnetic Calorimeter (ECAL): + Measures electron and photon energies through electromagnetic showers. + + CMS ECAL: + Material: PbWO₄ (lead tungstate) scintillating crystals + Number of crystals: 75,848 (barrel 61,200 + endcap 14,648) + Crystal dimensions: ~22×22×230 mm³ (≈ 25 X₀) + Density: 8.28 g/cm³, Radiation length X₀ = 0.89 cm + Molière radius: 2.2 cm (compact shower) + Light yield: ~10 photons/MeV (at room temperature, much less than NaI) + + Photodetector: APD (avalanche photodiode) in barrel + Gain: 50 (avalanche gain) + Quantum efficiency: ~75% at 420 nm + Gain dependence on T and V: ~−2.4%/°C → precise temperature control ±0.1°C + + Energy resolution (parametrized): + σ_E/E = a/√E ⊕ b ⊕ c/E + Stochastic term a: ~2.8% (barrel, from photostatistics) + Constant term b: ~0.3% (inter-calibration, longitudinal non-uniformity) + Noise term c: ~120 MeV (electronics noise) + At 100 GeV: σ_E/E ≈ 0.5% + + Granularity: ~0.0175×0.0175 in Δη×Δφ (fine for π⁰/γ separation) + +Hadronic Calorimeter (HCAL): + Measures jet energies through hadronic showers. + + CMS HCAL: + Sampling calorimeter: brass/steel absorber + plastic scintillator tiles + Absorber: 5 cm brass (CuZn) plates (~1.5 λ_I per plate) + Active layers: 3.7 mm Kuraray SCSN-81 scintillator + Total: ~10 λ_I (interaction lengths) in barrel + Wavelength-shifting fiber readout + SiPM/HPD photodetectors + + Energy resolution: + Jet energy resolution: σ_E/E = 100%/√E ⊕ 5% + At 100 GeV: ~10–15% (dominated by hadronic shower fluctuations) + + Tail catcher: additional scintillator layers outside solenoid + Catches late-developing hadronic showers → improves missing E_T + +Muon Spectrometer: + Muons are the only charged particles that penetrate the calorimeters, + providing a clean signature. Dedicated tracking outside the calorimeter + provides standalone muon momentum measurement. + + CMS Muon System: + Barrel (|η| < 1.2): + Drift Tubes (DT): 4 stations in iron return yoke + DT resolution: ~100 μm per measurement point + RPC (Resistive Plate Chambers): fast trigger, 1 ns time resolution + + Endcap (0.9 < |η| < 2.4): + CSC (Cathode Strip Chambers): high-rate, radiation-tolerant + CSC resolution: ~75–150 μm + RPC: up to |η| = 1.6 + + Toroidal field in return yoke: ~1.8 T (iron saturated) + Standalone muon p_T resolution: ~10–20% at 1 TeV + + Combined muon reconstruction: + Inner tracker + outer muon → σ(p_T)/p_T ≈ 1–2% at low p_T + Standalone muons (no inner track): important for heavy stable particles + +Trigger and Data Acquisition: + The trigger system reduces the 40 MHz LHC bunch crossing rate to ~1 kHz + writable to permanent storage. + + Level-1 Trigger (hardware, FPGA-based): + Input rate: 40 MHz (every 25 ns bunch crossing) + Output rate: ~100 kHz + Latency: <4 μs (fixed pipeline, LHC), <5 μs (HL-LHC upgrade to 12.5 μs) + + CMS L1 components: + - Calorimeter trigger: e/γ, jet, τ, missing E_T, total E_T + Regional calorimeter trigger → Global calorimeter trigger + - Muon trigger: DT, CSC, RPC local triggers → Global muon trigger + - Global trigger: combines objects, applies triggers, sends L1A + + HL-LHC L1 upgrade: + Inclusion of tracker information (L1 track trigger) + Output rate: 750 kHz + Latency: 12.5 μs (more processing time) + + High-Level Trigger (HLT): + PC farm (commercial servers): ~30,000 cores (CMS Run 3) + Input: L1-accepted events (~100 kHz) + Output: ~1 kHz to permanent storage + + HLT algorithms: + - Fast reconstruction (regional unpacking) + - Partial event building + - Physics object reconstruction (tracks, jets, MET) + - Event selection based on physics triggers + - Average processing time: ~300 ms/event + + Event size: ~1–2 MB/event (compressed raw data) + Data rate to storage: ~2 GB/s (CMS) + +WLCG (Worldwide LHC Computing Grid): + Tiered computing model for distributed data processing and analysis. + + Tier-0 (CERN): + Raw data recording and first-pass reconstruction + Prompt calibration loop (within 48 h) + Data distribution to Tier-1 sites + + Tier-1 (11 sites worldwide): + Large-scale reprocessing + Simulated event production (Monte Carlo) + Data serving to Tier-2 sites + Tape and disk storage: ~100 PB each + Examples: FNAL (US), IN2P3 (France), KIT (Germany), RAL (UK) + + Tier-2 (~160 sites): + End-user analysis + Simulation production + Disk storage: ~1–10 PB per site + University-based, national labs + + Total WLCG resources (2026): + CPU: ~3 million cores (HS06 equivalents) + Disk: ~3 EB (exabytes) + Tape: ~5 EB + Network: LHCOPN (dedicated 100 Gbps links), LHCONE (general research network) + + Data processing framework: + ROOT (CERN): data analysis framework, file format (.root) + CMSSW/Athena: experiment-specific software frameworks + Rucio: distributed data management + CRIC: computing resource information catalog + PanDA: production and distributed analysis workload management + +Detector Performance Metrics: + Trigger efficiency: + Efficiency = (events passing analysis selection with trigger) / (events passing analysis selection) + Target >99% for primary physics triggers (Z→ee, Z→μμ) + Measured using "tag-and-probe" method on resonance decays + + Pixel occupancy: + Occupancy = fraction of pixels above threshold / total pixels + Must be <0.1% for efficient pattern recognition + HL-LHC: occupancy challenge → smaller pixels, faster readout + + Momentum/Energy resolution: + p_T resolution drives physics reach (narrow resonances → high resolution) + ECAL resolution: ~0.5% at 100 GeV for H→γγ + Tracking resolution: ~0.01% at p_T ~ 1 GeV, ~1% at p_T ~ 100 GeV +``` + +#### 7.2 Proposed API + +```cpp +namespace vde::particle_accelerator { + +enum class TrackerType { SiliconPixel, SiliconStrip, Hybrid_StripPixel, MAPS_CMOS }; + +enum class CalorimeterType { Homogeneous_Crystal, Sampling_Scintillator, Sampling_LAr, DualReadout }; + +enum class MuonDetectorType { DriftTube_MDT, ResistivePlate_RPC, CathodeStrip_CSC, Micromegas, GEM }; + +enum class TriggerLevel { L1_Hardware_FPGA, HLT_Software_CPU, L0_Fast }; + +struct PixelDetectorSpec { + double pixel_size_um_phi; // 25–150 μm + double pixel_size_um_z; // 25–150 μm + int number_of_layers; + double innermost_radius_mm; + double outermost_radius_mm; + int total_channels_million; + double spatial_resolution_um; + double material_budget_X0_pct_per_layer; + double radiation_hardness_n_eq_per_cm2; + double occupancy_target_pct; // <0.1% + double readout_time_us; + double sensor_thickness_um; + std::string sensor_technology; // planar, 3D, HV-CMOS, diamond + double power_density_mW_per_cm2; + std::string cooling_system; // CO₂ two-phase, water +}; + +struct ECAL_Spec { + CalorimeterType type; + std::string crystal_material; // PbWO₄, LYSO, BGO + int number_of_crystals; + double crystal_length_X0; + double radiation_length_cm; + double moliere_radius_mm; + double light_yield_photons_per_MeV; + double noise_per_channel_MeV; + double stochastic_term_a_pct; + double constant_term_b_pct; + double target_energy_resolution_pct_at_100GeV; + double granularity_dEta; + double granularity_dPhi; + std::string photodetector; // APD, VPT, SiPM + double photodetector_gain; + double temperature_stability_degC; +}; + +struct HCAL_Spec { + CalorimeterType type; + std::string absorber_material; // brass, Fe, Cu, W + double absorber_thickness_mm; + std::string active_material; // scintillator, LAr, WLS fiber + double active_thickness_mm; + double total_interaction_lengths_lambda_I; + double sampling_fraction_pct; + double stochastic_term_per_sqrtE; + double constant_term_pct; + double lateral_segmentation_dEta; + double longitudinal_segmentation; + int number_of_depth_segments; +}; + +struct MuonSpectrometerSpec { + std::vector detector_types; + int number_of_stations; + double magnetic_field_T; // toroid field + double bending_power_Tm; + double spatial_resolution_per_point_um; + double eta_coverage_max; + double standalone_pt_resolution_pct_at_1TeV; + double trigger_time_resolution_ns; + double maximum_rate_capability_Hz_per_cm2; +}; + +struct Level1TriggerSpec { + double input_rate_MHz; // 40 MHz at LHC + double output_rate_kHz; // 100 kHz + double latency_us; // <5 μs + int number_of_trigger_bits; + bool tracker_information_included; // HL-LHC upgrade + std::vector trigger_algorithms;} + double trigger_efficiency_target_pct; // >99% + bool pipeline_architecture; + int pipeline_depth; +}; + +struct HLT_Spec { + int number_of_cores; + double input_rate_kHz; + double output_rate_kHz; // ~1 kHz + double average_processing_time_ms_per_event; + double event_size_MB; + double data_rate_to_storage_GB_per_s; + std::string processing_framework; + int number_of_trigger_paths; + double cpu_usage_pct_target; +}; + +struct WLCG_Spec { + int tier0_cores; + double tier0_disk_PB; + double tier0_tape_PB; + int number_of_tier1_sites; + double tier1_total_disk_PB; + double tier1_total_tape_PB; + int number_of_tier2_sites; + double tier2_total_disk_PB; + double network_bandwidth_Tier0_Tier1_Gbps; + double total_annual_data_volume_EB; + std::vector tier1_site_names; +}; + +struct DetectorSpec { + std::string experiment_name; + double solenoid_field_T; + double tracker_eta_coverage; + PixelDetectorSpec pixel_tracker; + ECAL_Spec ecal; + HCAL_Spec hcal; + MuonSpectrometerSpec muon_spectrometer; + Level1TriggerSpec level1_trigger; + HLT_Spec hlt; + WLCG_Spec computing_grid; + int total_readout_channels_million; + double total_power_consumption_MW; + double total_mass_tonnes; + double overall_detector_length_m; + double overall_detector_diameter_m; +}; + +struct DetectorState { + double luminosity_per_bunch; + int pileup_average; + double pixel_occupancy_actual_pct; + double tracker_efficiency_actual_pct; + double ecal_energy_resolution_actual_pct; + double hcal_energy_resolution_actual_pct; + double muon_reconstruction_efficiency_pct; + double l1_trigger_rate_actual_kHz; + double hlt_output_rate_actual_Hz; + int dead_channels; + double data_quality_flag_pct; + bool magnet_at_nominal_field; +}; + +struct DetectorPerformance { + double tracking_efficiency_pct; // >99% + double ecal_energy_resolution_pct; + double hcal_jet_energy_resolution_pct; + double muon_pt_resolution_pct; + double l1_trigger_efficiency_pct; // >99% + double hlt_efficiency_pct; + double data_recording_efficiency_pct; + double uptime_pct_during_physics; + double pixel_occupancy_pct; // <0.1% + bool meets_design_resolution; +}; + +DetectorSpec design_collider_detector(double solenoid_field_T, double eta_coverage, std::string experiment_name = "Generic4Pi"); + +DetectorState initialize_detector_state(const DetectorSpec& spec); + +DetectorPerformance simulate_detector(const DetectorSpec& spec, DetectorState& state, double luminosity, int pileup); + +PixelDetectorSpec design_pixel_tracker(int num_layers, double innermost_radius_mm, double target_occupancy_pct); + +ECAL_Spec design_ecal(std::string crystal_material, double target_resolution_pct, double eta_coverage); + +Level1TriggerSpec design_l1_trigger(double input_rate_MHz, double output_target_kHz, double latency_us); + +double calculate_tracker_momentum_resolution(double B_T, double track_length_m, double position_resolution_um, int N_hits); + +double calculate_calorimeter_resolution(double stochastic_a, double constant_b, double noise_c_MeV, double energy_GeV); + +} // namespace vde::particle_accelerator +``` + +--- + +## C++ API Namespace Summary + +| Namespace | Header | Primary Types | +|-----------|--------|---------------| +| `vde::particle_accelerator` | `vde/particle_accelerator/linac.h` | `LinacSpec`, `LinacState`, `LinacPerformance`, `DTL_TankSpec`, `DTL_CellSpec`, `RFQ_VaneSpec`, `SRF_CavitySpec` | +| `vde::particle_accelerator` | `vde/particle_accelerator/rf_power.h` | `RFSpec`, `RFState`, `RFPerformance`, `KlystronSpec`, `ModulatorSpec`, `IOT_Spec`, `SolidStateAmp_Spec`, `LLRF_Spec` | +| `vde::particle_accelerator` | `vde/particle_accelerator/synchrotron.h` | `SynchrotronSpec`, `SynchrotronState`, `SynchrotronPerformance`, `DipoleSpec`, `QuadrupoleSpec`, `SextupoleSpec`, `FODO_CellSpec`, `SynchrotronLatticeSpec`, `InjectionSpec`, `ExtractionSpec` | +| `vde::particle_accelerator` | `vde/particle_accelerator/cyclotron.h` | `CyclotronSpec`, `CyclotronState`, `CyclotronPerformance`, `SectorMagnetSpec`, `CyclotronRFSpec`, `StrippingFoilSpec` | +| `vde::particle_accelerator` | `vde/particle_accelerator/fel.h` | `SASEFEL_Spec`, `FELState`, `FELPerformance`, `UndulatorSpec`, `ElectronBeamSpec`, `SynchrotronRadiationSpec`, `LightSourceSpec` | +| `vde::particle_accelerator` | `vde/particle_accelerator/beamline.h` | `BeamlineSpec`, `BeamlineState`, `BeamlinePerformance`, `BeamlineElementSpec`, `TransferMatrixSpec`, `TwissParams`, `EmittanceSpec`, `VacuumSpec`, `BPM_Spec`, `ProfileMonitorSpec`, `BeamDiagnosticsSpec` | +| `vde::particle_accelerator` | `vde/particle_accelerator/detector.h` | `DetectorSpec`, `DetectorState`, `DetectorPerformance`, `PixelDetectorSpec`, `ECAL_Spec`, `HCAL_Spec`, `MuonSpectrometerSpec`, `Level1TriggerSpec`, `HLT_Spec`, `WLCG_Spec` | + +--- + +## Industry Standards & References + +| Standard | Title | Relevance | +|---|---|---| +| JACoW (Joint Accelerator Conferences Website) | IPAC, ICALEPCS, SRF, LINAC, Cyclotron conference proceedings | Accelerator conference publications and standards | +| CERN EDMS (Engineering Data Management System) | Equipment specifications, technical drawings, QA documentation | Design documentation standards | +| ISO 21348 | Space environment (natural and artificial) — Process for determining solar irradiances | Vacuum specifications, radiation environment | +| IEEE NPSS (Nuclear and Plasma Sciences Society) | Transactions on Nuclear Science, particle accelerator conferences | Accelerator and detector instrumentation | +| IEC 60728 | Cable networks, RF connectors and components | RF transmission and coupling standards | +| IEC 61508 | Functional safety of E/E/PE safety-related systems | Machine protection and interlock systems | +| ISO 14644 | Cleanrooms and associated controlled environments | Cleanroom classifications for SRF cavity assembly | +| CERN LHC Design Report (CERN-2004-003) | LHC main ring design, magnet specification, cryogenics | Superconducting magnet design | +| ILC Technical Design Report | International Linear Collider SRF linac design | SRF cavity and cryomodule design | +| ESS Technical Design Report | European Spallation Source superconducting linac | High-power proton linac design | +| LCLS-II CDR | LCLS-II conceptual design report | CW SRF linac and XFEL design | +| FCC CDR (CERN-ACC-2018-0056) | Future Circular Collider conceptual design | Next-generation collider design | +| IEEE 356 | Guide for radio methods of measuring earth conductivity | RF grounding and shielding | +| NIM (Nuclear Instruments and Methods in Physics Research) A | Journal for accelerator and detector instrumentation | Peer-reviewed instrumentation | + +--- + +## Benchmarks + +| Equipment Type | Benchmark Vendor | Model / System | Key Spec | +|---|---|---|---| +| DTL Linac | CERN / Linac4 | 352 MHz, 3 MeV→160 MeV H⁻ | 22×3-tank DTL, 5 MW RF | +| RFQ | CERN / Linac4 | 352 MHz, 45 keV→3 MeV | 4-vane, >95% transmission | +| DTL Linac | Fermilab / PIP-II | 325 MHz, 2.1→177 MeV | Normal-conducting + SRF hybrid | +| SRF Cavity | DESY / XFEL | TESLA 1.3 GHz 9-cell | Q₀>2×10¹⁰, E_acc 23.6 MV/m (design), 800+ cavities | +| SRF Cavity | SLAC / LCLS-II | 1.3 GHz 9-cell CW | Q₀>2.7×10¹⁰, E_acc 16 MV/m CW, 280 cavities | +| Klystron | SLAC | 5045 S-band | 65 MW peak, 5 μs, 2856 MHz, solenoid-focused | +| Klystron | Thales / CPI | L-band MBK | 10 MW peak, 1.5 ms, 1300 MHz, multi-beam | +| Solid-State RF | SOLEIL Synchrotron | 352 MHz, 180 kW CW | GaN modules, 4×45 kW towers | +| Marx Modulator | ESS / Diversified Technologies | Solid-state Marx | 115 kV, 100 A, 3.5 ms, >30,000 h lifetime | +| LLRF | DESY / XFEL | μTCA.4, FPGA-based | ±0.01% amplitude, ±0.01° phase stability | +| Superconducting Dipole | CERN / LHC | MB main dipole | 8.33 T, NbTi, 1.9 K He II, twin-aperture, 14.3 m | +| Nb₃Sn Dipole | CERN / HL-LHC | 11 T dipole | Nb₃Sn, 11 T, 5.5 m, for collimation insertion | +| Isochronous Cyclotron | IBA | Cyclone 70 | 70 MeV protons, 4 sectors, 750 μA | +| SC Cyclotron | IBA | Proteus ONE S2C2 | 230 MeV protons, SC synchrocyclotron, gantry-mounted | +| SC Cyclotron | Mevion | S250 | 250 MeV protons, 1.8 m diameter, 20 tonnes | +| SC Cyclotron | Sumitomo | P235 | 235 MeV protons, cryogen-free NbTi | +| FEL/XFEL | SLAC | LCLS-II | 0.25–5 keV X-rays, CW SC linac, 1 MHz rep rate | +| FEL/XFEL | DESY | European XFEL | 0.25–25 keV, 27,000 pulses/s, 3 undulator lines | +| Synchrotron | CERN / ESRF | ESRF-EBS | 6 GeV, 844 m, <100 pm·rad emittance | +| Synchrotron | BNL | NSLS-II | 3 GeV, 792 m, 1 nm·rad emittance | +| Pixel Detector | CMS / HL-LHC | Phase-2 Pixel Tracker | 25×100 μm², ~2 billion pixels, 3D sensors | +| Pixel Detector | ATLAS / HL-LHC | ITk Pixel | 50×50 μm², ~5 billion channels | +| ECAL | CMS | PbWO₄+APD | 75,848 crystals, σ_E/E ~0.5% at 100 GeV | +| HCAL | CMS | Brass+scintillator | ~10 λ_I, σ_E/E ~100%/√E, SiPM readout | +| Muon System | ATLAS | MDT+RPC+TGC | Superconducting air-core toroid, 0.5 T | +| L1 Trigger | CMS Phase-2 | FPGA-based | 40 MHz→750 kHz, 12.5 μs latency, track trigger | +| WLCG | CERN | Worldwide LHC Computing Grid | ~3M cores, ~3 EB disk, ~5 EB tape | +| DAQ | CMS | CMS DAQ/HLT | 100 kHz L1→1 kHz HLT, ~30k cores | + +--- + +## Acceptance Criteria + +1. **Linac DTL & RFQ Design (必选):** Engine shall design Alvarez DTL with configurable cell-by-cell gap lengths, transit time factor calculation T=sin(ωg/(2v))/(ωg/(2v)), effective shunt impedance ZT², and PMQ quadrupole gradients inside drift tubes. RFQ vane tip modulation shall model the four sections (Radial Matching, Shaper, Gentle Buncher, Accelerator) with transmission efficiency verification >90%. SRF niobium cavity design shall compute BCS surface resistance at operating temperature, Q₀ from geometry factor G and R_s, Lorentz force detuning coefficient K_LFD, and piezo tuner compensation range ±500 Hz at 1.3 GHz. Q₀>2×10¹⁰ at E_acc≥20 MV/m shall be verifiable. + +2. **RF Power Systems (必选):** Engine shall design multi-cavity klystrons with perveance calculation (I₀/V₀^(3/2)×10⁶ μperv), cathode voltage, peak power, gain, and efficiency. Solenoid (Brillouin field) and PPM focusing shall be selectable. Pulsed modulator design shall support PFN (thyratron-switched) and solid-state Marx architectures with pulse flatness specification. IOT and GaN solid-state amplifier combining with ±0.01° phase and ±0.01% amplitude stability shall be supported. LLRF digital IQ control with PID feedback and adaptive Lorentz force detuning compensation shall be modeled. + +3. **Synchrotron Magnets (必选):** Engine shall compute magnetic rigidity Bρ=p/q for any particle species. Dipole field inhomogeneity ΔBdl/Bdl shall be verified <10⁻⁴. FODO lattice Twiss parameters (β,α,γ) and betatron tunes Q_x,y shall be computed, with resonance diagram verification (avoiding integer and sum resonances up to 5th order). Sextupole chromaticity correction Δξ = (1/4π)×Σ(m×β×D×L) shall be implemented. Superconducting dipole specification shall cover NbTi at 1.9 K with twin-aperture yoke, quench protection, and training behavior. Fast extraction kicker (sub-μs rise time) + septum and H⁻ charge-exchange injection with stripping foil shall be fully specified. + +4. **Cyclotron (必选):** Engine shall design isochronous AVF cyclotron with configurable sector count, hill/valley field, flutter F calculation, and spiral angle ξ. Vertical focusing condition ν_z²=n+F×(1+2×tan²(ξ))>0 shall be verified. H⁻ stripping foil extraction with >99.9% efficiency and variable energy selection shall be supported. Superconducting NbTi coil design with cryostat (LHe bath or cryocooler) and cryogen-free option shall be modeled. Synchrocyclotron FM RF with frequency modulation range shall be supported. Cyclotron weight, power consumption, and gantry-mountability shall be reported. + +5. **FEL & Light Source (必选):** Engine shall compute undulator parameter K=0.934×B₀[T]×λ_u[cm], resonance wavelength λ=λ_u(1+K²/2)/(2γ²), and Pierce parameter ρ for FEL gain. SASE gain length L_g=λ_u/(4π√3ρ) and saturation length L_sat≈20×L_g shall be calculated. Synchrotron radiation critical energy E_c=0.665×E_e²[GeV]×B[T], total radiated power, and brilliance B=F/(4π²σ_xσ_x'σ_yσ_y'Δω/ω) shall be computed. Brilliance >10²⁰ ph/s/mm²/mrad²/0.1%BW for undulators shall be verifiable. + +6. **Beamline Optics & Vacuum (必选):** Engine shall construct 6×6 transfer matrices for Drift, Quadrupole, Dipole, Solenoid, and combined beamline elements. Twiss parameter transport through arbitrary beamline sequences shall be implemented. Emittance growth from mismatch, dispersion, and residual gas scattering shall be estimated. Vacuum system shall model SIP, TSP, and NEG-coated pumping with design pressures 10⁻⁹–10⁻¹¹ mbar. Beam diagnostics (BPM position, wire scanner profile, BLM threshold) shall be configurable. Emittance <0.5 mm·mrad normalized shall be verifiable. + +7. **Detector & DAQ (必选):** Engine shall design silicon pixel tracker with configurable pixel size, number of layers, spatial resolution 5–10 μm, and occupancy <0.1%. ECAL PbWO₄ crystal + APD with energy resolution σ_E/E=a/√E⊕b (a≈2.8%, b≈0.3%) shall be specified. HCAL Fe/Cu+scintillator with jet energy resolution shall be modeled. Muon spectrometer (MDT/RPC/CSC + toroid magnet) with standalone momentum resolution shall be designed. Level-1 FPGA trigger (40 MHz→100 kHz, <5 μs latency) and HLT PC farm (→1 kHz output) shall be specified. WLCG Tier-0/1/2 computing with distributed data management shall be configurable. Trigger efficiency >99% and pixel occupancy <0.1% shall be verified. + +8. **Unit Consistency (必选):** All functions shall accept and return SI-derived units with accelerator conventions: energy in MeV/GeV/TeV, momentum in GeV/c, magnetic field in T, magnetic field gradient in T/m, RF frequency in MHz/GHz, vacuum in mbar, beam current in mA/μA, emittance in mm·mrad (normalized), brilliance in ph/s/mm²/mrad²/0.1%BW, power in MW/kW, temperature in K, length in m/mm/μm. LLRF phase in degrees (°), amplitude in percent (%), and perveance in μperv. Accept both imperial and metric for legacy equipment specifications where applicable. + +9. **Machine Protection and Safety (必选):** Engine shall support beam interlock configuration with configurable threshold conditions (beam loss, vacuum degradation, magnet quench, cryogenic fault, RF arc detection). Beam dump system design (dilution kickers, dump block material and thermal analysis, stored beam energy dissipation) shall be modeled. Radiation shielding (concrete/iron/earth thickness per Moyer model) based on beam energy and loss point shall be estimable. RF radiation safety (controlled access, interlocked waveguide/cavity hatches) shall be considered. Cryogenic safety (Oxygen Deficiency Hazard ODH calculation, pressure relief for He vessels) shall be addressed for SRF and SC magnet systems. diff --git a/docs/feedback/VDE-1158.md b/docs/feedback/VDE-1158.md new file mode 100644 index 000000000..3f14a7d1e --- /dev/null +++ b/docs/feedback/VDE-1158.md @@ -0,0 +1,638 @@ +# VDE-1158: Radio Telescope Equipment Engine Requirements (射电望远镜设备引擎需求) + +**Date**: 2026-08-10 +**Source**: ViewDesign RadioTelescopeEngine — parabolic dish, corrugated feed horn, cryogenic HEMT/SIS receiver, FPGA spectrometer digital backend, interferometry UV-plane synthesis, VLA/ALMA/SKA array configurations, VLBI fringe fitting +**Module**: `vde/radio_telescope/dish.h`, `vde/radio_telescope/feed.h`, `vde/radio_telescope/receiver.h`, `vde/radio_telescope/backend.h`, `vde/radio_telescope/interferometry.h`, `vde/radio_telescope/array.h`, `vde/radio_telescope/vlbi.h` +**Status**: Open — Engine requirement proposal +**Priority**: P1 +**Category**: Radio Astronomy / Antenna / Receiver / Correlator / VLBI / Interferometry + +--- + +## Background + +Radio astronomy has transformed our understanding of the universe, from the discovery of the cosmic microwave background (Penzias & Wilson, 1965) to the first direct imaging of a black hole shadow by the Event Horizon Telescope (EHT, 2019). Operating across wavelengths from meter-wave (~30 MHz, LOFAR) to submillimeter (~0.3 mm, ALMA Band 10), radio telescopes map the cold universe — neutral hydrogen, molecular clouds, pulsars, fast radio bursts (FRBs), and the afterglow of the Big Bang. The field's flagship instruments, including the Very Large Array (VLA), Atacama Large Millimeter/submillimeter Array (ALMA), Square Kilometre Array (SKA), and the Five-hundred-meter Aperture Spherical Telescope (FAST), push the boundaries of sensitivity, angular resolution, and survey speed by orders of magnitude over their predecessors. + +The parabolic reflector dish antenna remains the fundamental collecting element. The focal ratio F/D (0.3–0.5) balances illumination efficiency against structural practicality. Surface accuracy requirements become stringent at higher frequencies — the RMS deviation must be held to λ/16–λ/20 to limit gain loss (Ruze formula: G/G₀ = exp(−(4πσ/λ)²)). For ALMA's 12 m dishes observing at 950 GHz (λ = 316 μm), this translates to σ < 20 μm RMS, demanding carbon-fiber-reinforced polymer (CFRP) panels with active thermal control and metrology-grade alignment. Dual-reflector Cassegrain and Gregorian optics place the feed at a convenient location while maintaining low spillover. Aperture efficiency η_A decomposes into illumination (taper) efficiency, spillover efficiency, phase efficiency (surface errors), blockage efficiency (subreflector and support struts), and ohmic loss, each typically 0.85–0.98, yielding combined η_A ≈ 0.5–0.7. The system figure of merit G/T (dB/K) directly determines sensitivity: SEFD (System Equivalent Flux Density) = 2k_B T_sys / A_eff. + +Corrugated feed horns excite the HE₁₁ hybrid mode, producing an axi-symmetric radiation pattern with low cross-polarization (<−30 dB) across decade bandwidths. Ortho-mode transducers (OMT) separate orthogonal linear polarizations, synthesized into circular polarization (L/R). Quad-ridged flared horns (QRFH) achieve decade bandwidths (e.g., 2–20 GHz) with constant beamwidth. Phased array feeds (PAF) replace single-pixel feeds with arrays of Vivaldi elements, forming multiple simultaneous beams via digital beamforming, multiplying survey speed by 25–36×. A cryogenic vacuum window with IR-blocking filters provides the thermal break between ambient feed and cryogenic receiver. + +Cryogenic receivers push noise temperatures to quantum limits. High Electron Mobility Transistors (HEMT) based on InP or GaAs mHEMT achieve T_N ≈ 3–5×h×f(GHz) K across 0.3–50 GHz. For millimeter/submillimeter wavelengths, SIS mixers using Nb/Al-AlOₓ/Nb junctions approach the quantum noise limit of hν/k_B (≈48 K at 1 THz). ALMA's Band 3–10 receivers (84–950 GHz) employ SIS mixers at 4 K, with LO chains using cascaded frequency multipliers to achieve phase noise <0.1 ps rms. Multi-stage cryostats use closed-cycle 4 K cryocoolers with intermediate 15 K and 77 K radiation shields. + +Digital backends perform critical spectral analysis. FPGA-based polyphase filter bank (PFB) FFT spectrometers offer 1k–1M+ channels with selectable window functions for spectral dynamic range >50 dB. VLBI recorders (Mark6) write raw baseband data at 8/16/32 Gbps. Pulsar timing backends perform coherent de-dispersion to remove interstellar DM smearing, achieving TOA precision of tens of nanoseconds for PTA gravitational wave detection. FRB search pipelines run on GPU clusters performing real-time de-dispersion trials over thousands of DM values. + +Interferometry and aperture synthesis form the mathematical foundation of modern radio astronomy. The Van Cittert-Zernike theorem states V(u,v) = FT{I(l,m)}. The (u,v) coverage determines the synthesized beam (dirty beam). The CLEAN algorithm (Högbom, Clark, Multi-Scale, MS-MFS) deconvolves the dirty beam. Self-calibration uses closure phases and amplitudes to solve for antenna-based gains. The VLA's 27×25 m dishes in A/B/C/D configurations, ALMA's 50×12 m + ACA at 5,000 m altitude achieving <2% coherence loss on 1 km baselines, and the SKA Observatory's SKA-Mid (197 dishes incorporating MeerKAT) and SKA-Low (131,072 dipole antennas) represent the state of the art, while the EHT connects 8 stations at 230 GHz for 25 μas resolution black hole imaging. + +VDE currently lacks comprehensive radio telescope modeling covering all seven equipment domains. This proposal defines the engineering domain model, formulas, C++ API, and acceptance criteria for a VDE-native radio telescope equipment engine. + +--- + +## Detailed Requirements + +### 1. Dish Antenna — Parabolic Reflector, Dual-Reflector, and Aperture Efficiency + +**Priority**: P1 + +#### 1.1 Reflector Optics, Surface Accuracy, and G/T + +``` +Parabolic Reflector Dish Antenna overview: + The parabolic reflector focuses incoming plane waves to a focal point. Its + geometric parameters, surface accuracy, and illumination jointly determine + antenna gain, beam pattern, and system sensitivity. + + Fundamental reflector geometry: + z = (x² + y²) / (4F), where F = focal length, D = aperture diameter + F/D ratio: typically 0.3–0.5 + Edge taper T_e [dB]: typically −10 to −12 dB (balances spillover vs. taper) + HPBW: θ_HPBW ≈ 1.22 × λ/D [rad] (uniform), ≈1.3λ/D (tapered) + + Aperture efficiency η_A decomposition: + η_A = η_ill × η_spill × η_phase × η_block × η_ohmic × η_focus × η_cross + η_ill ≈ 0.85–0.90 (illumination taper) + η_spill ≈ 0.90–0.95 (spillover) + η_phase = exp(−(4πσ/λ)²) (Ruze formula, surface error) + η_block = (1−A_block/A_total)² (subreflector + strut blockage) + η_ohmic ≈ 0.99 (reflector reflectivity) + η_focus ≈ 0.95–0.99 (subreflector/feed alignment) + η_cross ≈ 0.98–1.0 + + G/T and SEFD: + G[dBi] = 10×log₁₀(η_A) + 20×log₁₀(πD/λ) + SEFD [Jy] = 2760 × T_sys[K] / (η_A × D²[m]) + G/T [dB/K] = G[dBi] − 10×log₁₀(T_sys[K]) + + Surface accuracy: panels with actuators, holography calibration + Panel materials: CFRP, Al honeycomb, machined Al + Adjustment precision: <10 μm per actuator, 100–1000 actuators + + Pointing: σ_total < HPBW/10 + Encoder: 26-bit optical tape → 0.005" resolution + Wind effects: stow at >20 m/s operational, >35 m/s survival + + Dual-reflector: Cassegrain (hyperbolic convex secondary) or Gregorian (concave ellipsoidal) + Beam Waveguide: mirrors route through axes to stationary receiver room +``` + +#### 1.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class ReflectorType { PrimeFocus, Cassegrain, Gregorian, BeamWaveguide, Nasmyth, OffsetGregorian }; +enum class PanelMaterial { CFRP_Composite, Aluminum_Honeycomb, MachinedAluminum, StainlessSteel }; + +struct SurfaceErrorSpec { double rms_error_um; double ruze_efficiency; int num_panels; int num_actuators; double actuator_resolution_um; bool active_adjustment; }; +struct ApertureEfficiency { double illumination; double spillover; double phase; double blockage; double ohmic; double focus; double cross_pol; double total; }; + +struct ReflectorSpec { + double diameter_m; double focal_length_m; double F_over_D; + ReflectorType type; PanelMaterial material; SurfaceErrorSpec surface; + ApertureEfficiency efficiency; double subreflector_diameter_m; + double effective_focal_length_m; double magnification_M; int bwg_mirrors; +}; + +struct AntennaGainSpec { double frequency_GHz; double gain_dBi; double HPBW_arcsec; double sidelobe_dB; double G_over_T_dB_per_K; double SEFD_Jy; }; + +struct PointingSpec { double HPBW_arcsec; double rms_error_arcsec; double encoder_resolution_arcsec; double wind_error_arcsec; double blind_accuracy_arcsec; double slew_rate_az; double slew_rate_el; double wind_stow; }; + +struct DishSpec { + std::string name; ReflectorSpec reflector; AntennaGainSpec gain[10]; + PointingSpec pointing; double moving_mass_tonnes; bool active_surface; +}; + +struct DishState { double az_deg; double el_deg; double pointing_error_az_arcsec; double surface_rms_um; double wind_mps; }; +struct DishPerformance { double actual_gain_dBi; double pointing_rms_arcsec; double G_over_T_measured; double SEFD_Jy; double aperture_eff_measured; bool meets_spec; }; + +DishSpec design_parabolic_dish(double D_m, double F_over_D, ReflectorType type = ReflectorType::Cassegrain, double fmax_GHz = 15.0); +DishState initialize_dish_state(const DishSpec& spec); +DishPerformance simulate_dish(const DishSpec& spec, DishState& state, double az, double el, double wind, double T_amb); +AntennaGainSpec calculate_antenna_gain(double D_m, double lambda_mm, const ApertureEfficiency& eff); +double calculate_ruze_efficiency(double sigma_um, double lambda_mm); +double calculate_SEFD(double Tsys_K, double D_m, double eta_A); +double calculate_G_over_T(double gain_dBi, double Tsys_K); + +} // namespace vde::radio_telescope +``` + +--- + +### 2. Feed & Horn — Corrugated Horn, OMT, PAF, and Cryogenic Window + +**Priority**: P1 + +#### 2.1 Feed Horn Design, Polarization Separation, and Phased Array Feeds + +``` +Corrugated Horn (HE₁₁ hybrid mode): + Slot depth d ≈ λ/4, period p < λ/3, ≥5 corrugations per wavelength + Cross-polarization < −30 dB, beam symmetry Δθ_E−H < ±2° + Bandwidth 1.5:1 to 2.4:1, aperture field E(r) ≈ J₀(2.405r/a) + +OMT (Ortho-Mode Transducer): + Turnstile: 4-fold symmetric, isolation >30 dB + Septum: compact, bandwidth ~1.3:1 + Boifot/Finline: wideband 2:1–3:1, used in SKA/ngVLA + +Polarizer: differential phase Δφ = 90° for linear→circular + Dielectric vane, corrugated waveguide, or septum + Axial ratio < 1 dB for good CP + +QRFH (Quad-Ridged Flared Horn): + Bandwidth 5:1–10:1 (e.g., 2–20 GHz), exponential/elliptical ridge profile + Beamwidth variation < ±15%, cross-polarization −15 to −25 dB + +PAF (Phased Array Feed): + Vivaldi elements at ~0.5λ spacing, N×N array + Beamforming: w_opt = R_nn⁻¹ × a(θ₀) (max-SNR) + 9–36 simultaneous beams, ASKAP: 94 elements, 36 beams, 30 deg² FoV + Survey speed multiplier = B (number of beams) + +Cryogenic window: PTFE/HDPE/fused quartz, AR coated + Insertion loss < 0.1 dB, IR filter stack >30 dB at 10 μm + Thermal break: SS thin-wall (0.1–0.3 mm) waveguide section +``` + +#### 2.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class HornType { Corrugated_HE11, SmoothWall, QRFH_Wideband, ScalarFeed }; +enum class OMT_Type { Turnstile, Septum, Boifot_Finline }; +enum class PAF_ElementType { Vivaldi_TaperedSlot, CrossedDipole, LogPeriodic }; + +struct CorrugatedHornSpec { HornType type; double f_min_GHz; double f_max_GHz; double aperture_mm; double length_mm; double edge_taper_dB; double cross_pol_dB; double return_loss_dB; int n_corrugations; double depth_mm; std::string material; bool gold_plated; }; +struct OMT_Spec { OMT_Type type; double isolation_dB; double insertion_loss_dB; double amp_balance_dB; double phase_balance_deg; double cp_axial_ratio_dB; }; +struct QRHF_Spec { double f_min_GHz; double f_max_GHz; double bandwidth_ratio; double aperture_mm; double beamwidth_10dB_deg; double beamwidth_variation_pct; double cross_pol_dB; }; +struct PAF_Spec { int Nx; int Ny; int total_elements; PAF_ElementType el_type; double spacing_mm; double f_min_GHz; double f_max_GHz; int n_beams; double FoV_sq_deg; double lna_noise_K; bool digital_bf; }; +struct CryoWindowSpec { double loss_dB; double return_loss_dB; std::string material; int ir_layers; double ir_blocking_dB; double vacuum_leak; double thermal_gradient_K; }; + +struct FeedSpec { + HornType horn_type; CorrugatedHornSpec horn; QRHF_Spec qrfh; OMT_Spec omt; + PAF_Spec paf; CryoWindowSpec window; bool dual_pol; bool full_stokes; + double noise_contribution_K; +}; + +struct FeedState { double phase_balance_deg; double cross_pol_leakage_dB; double window_transmission_dB; }; +struct FeedPerformance { double aperture_eff_contribution; double spillover_noise_K; double cross_pol_measured_dB; double tsys_contribution_K; bool meets_spec; }; + +FeedSpec design_corrugated_feed(double fmin, double fmax, double edge_taper, HornType type = HornType::Corrugated_HE11); +PAF_Spec design_paf(double fmin, double fmax, int N_side, int n_beams); +double calculate_illumination_efficiency(double edge_taper_dB); +double calculate_spillover_efficiency(double edge_taper_dB, double F_over_D); + +} // namespace vde::radio_telescope +``` + +--- + +### 3. Cryogenic Receiver — HEMT LNA, SIS Mixer, LO Chain, and Cryostat + +**Priority**: P1 + +#### 3.1 Low-Noise Amplification, Heterodyne Mixing, and Cryogenic Engineering + +``` +HEMT LNA (InP, GaAs mHEMT): + T_N ≈ 3–5×h×f(GHz) K (empirical Fukui formula) + Physical temp: 10–20 K, 3-stage design, total gain 30–35 dB + Band coverage: L(1–2GHz): 3–5K, K(18–26GHz): 20–35K, Q(33–50GHz): 40–80K + +SIS Mixer (Nb/Al-AlOₓ/Nb): + Quantum noise limit: T_mixer ≈ hν/k_B (≈48 K at 1 THz) + Practical: T_rec ≈ 2–5×hν/k_B (IF noise + optical losses) + ALMA Band 6 (211–275GHz): T_rec ≈ 50–70 K SSB + ALMA Band 9 (602–720GHz): T_rec ≈ 200–350 K SSB + Junction: R_n = 20–100Ω, ωR_nC_j ≈ 4, B ~100 Gauss to suppress Josephson + +LO Chain: + Reference: GPS-disciplined 10 MHz OCXO or H-maser + Multiplication: GaAs pHEMT ×2/×3/×4 → Schottky diode → up to ×100 total + Phase noise: <−80 dBc/Hz at 10 kHz offset + ALMA: photonic LO distribution via optical fiber → photomixer + Phase drift: <10 fs over 10 minutes + +Cryostat: + 300 K → 77 K → 15 K → 4 K stages + Coolers: GM (0.5–2 W at 4 K) or Pulse-tube (0.3–1.5 W at 4 K, lower vibration) + MLI: 30–60 layers aluminized Mylar, heat leak factor 100–500× + Cooldown: 4–12 hours, cryogen-free continuous operation +``` + +#### 3.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class AmplifierType { HEMT_InP, HEMT_mHEMT_GaAs, SiGe_BiCMOS }; +enum class MixerType { SIS_Nb_AlOx, HEB_Bolometer, SchottkyDiode }; +enum class CryocoolerType { GM_Cryocooler, PulseTube, Stirling }; + +struct HEMT_Spec { AmplifierType type; double f_min_GHz; double f_max_GHz; double TN_min_K; double TN_max_K; double gain_per_stage_dB; int n_stages; double total_gain_dB; double physical_temp_K; double dc_power_mW; std::string semiconductor; double gate_length_nm; }; +struct SIS_MixerSpec { MixerType type; double f_min_GHz; double f_max_GHz; double IF_min_GHz; double IF_max_GHz; double DSB_noise_K; double SSB_noise_K; double conv_loss_dB; double quantum_limit_K; double noise_factor; double LO_power_uW; double Rn_ohm; double Ic_uA; double area_um2; double B_gauss; }; +struct LO_ChainSpec { double f_LO_GHz; double f_ref_MHz; std::string ref_osc; int mult_factor; double phase_noise_dBc_Hz; double jitter_fs_rms; double allan_1s; double allan_1000s; bool photonic; }; +struct CryostatSpec { CryocoolerType cooler; double power_4K_W; double power_15K_W; double rad_load_4K_W; double cond_load_4K_W; double amp_diss_4K_W; double cooldown_hours; double vacuum_mbar; int MLI_layers; bool cryogen_free; double maint_interval_h; }; + +struct ReceiverSpec { + std::string name; double f_center_GHz; double bw_GHz; + HEMT_Spec hemt; SIS_MixerSpec sis; LO_ChainSpec lo; + CryostatSpec cryostat; double Tsys_SSB_K; double eff_bw_GHz; + double gain_stability_dBph; double phase_stability_dph; + bool sideband_separating; double image_rejection_dB; +}; + +struct ReceiverState { double T_4K_K; double T_15K_K; bool lo_locked; double sis_Vbias_mV; double sis_Ibias_uA; double mixer_saturated; double coldhead_temp_K; }; +struct ReceiverPerformance { double T_rec_SSB_K; double actual_gain_dB; double IF_flatness_dB; double gain_stability_rms; double phase_stability_rms; double image_rej_dB; bool meets_spec; }; + +ReceiverSpec design_hemt_receiver(double fc_GHz, double bw_GHz, double target_TN_K); +ReceiverSpec design_sis_receiver(double fc_GHz, double bw_GHz, double LO_GHz, double IF_GHz); +double calculate_hemt_noise_temp(double f_GHz, AmplifierType type, double T_phys_K); +double calculate_sis_noise_temp(double f_GHz, double noise_factor = 3.0); +double y_factor_noise(double Thot_K, double Tcold_K, double Phot, double Pcold); + +} // namespace vde::radio_telescope +``` + +--- + +### 4. Digital Backend — FFT Spectrometer, VLBI Recorder, Pulsar Timing, FRB Pipeline + +**Priority**: P1 + +#### 4.1 Spectral Analysis, Pulsar De-dispersion, and Transient Detection + +``` +FFT Spectrometer (PFB): + Architecture: ADC → Polyphase FIR → FFT → Power calculation → Integration + Channel isolation: PFB 8-tap Blackman-Nuttall → −60 to −80 dB + Spectral dynamic range >50 dB for weak lines near strong sources + Δf = f_sample/N, N = 1k–1M+ channels + Velocity resolution at 21 cm: Δv = c×Δf/f ≈ 0.03 km/s for N=1M, 2 GS/s + Radiometer equation: σ_T = T_sys/√(Δf×τ) + +ACS (Auto-Correlation Spectrometer): + R(τ) = ⟨x(t)x*(t+τ)⟩ → S(f) = FT{R(τ)} + Very high spectral resolution (128k–1M+ lags) + O(N²) complexity, flexible resolution + +VLBI Recorder (Mark6): + 8/16/32 Gbps, 64 TB total capacity (8×8 TB disk modules) + VDIF format, 2-bit quantization (88% efficiency) + Record time at 16 Gbps: ~8.9 hours + e-VLBI: real-time fiber streaming to correlator + +Pulsar Timing: + Dispersion delay: Δt_DM = 4.15×10⁶×DM×(1/f_low²−1/f_high²) [ms] + Incoherent de-dispersion: filterbank split → per-channel delay → sum + Coherent de-dispersion: H(f)⁻¹ = exp(j×2π×DM×f²/[K×f₀²(f₀+f)]) + TOA precision: σ_TOA ∝ (P×(W/P)^(3/2))/(S/N×√(BW×τ)) + PTA targets: <100 ns RMS for GW detection + +FRB Pipeline: + GPU-accelerated: FDMT O(N_f×N_t×log N_f) + DM trials: 0–5000 pc/cm³, matched filter 0.1–100 ms pulse widths + S/N threshold: >7σ, ML classifier for RFI rejection + CHIME/FRB: ~500 FRBs/yr, ASKAP/CRAFT: ~50/yr, FAST: deep search +``` + +#### 4.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class SpectrometerType { PFB_FFT_FPGA, ACS_Autocorrelation, DirectFFT }; +enum class WindowFunction { Rectangular, Hanning, Blackman, BlackmanNuttall, KaiserBessel }; +enum class PulsarMode { IncoherentFilterbank, CoherentBaseband, SearchMode }; + +struct FFT_SpectrometerSpec { SpectrometerType type; double bw_MHz; int adc_bits; double fs_MSps; int N_channels; double df_kHz; WindowFunction window; int pfb_taps; double chan_iso_dB; double spectral_DR_dB; double tint_ms; double quant_eff_pct; int n_pol; std::string fpga; double data_rate_Gbps; }; +struct VLBI_RecorderSpec { double rate_Gbps; int bits; double capacity_TB; double record_hours; std::string format; int n_threads; bool e_vlbi; double net_bw_Gbps; }; +struct PulsarTimingSpec { PulsarMode mode; double bw_MHz; int N_chan; double fmin_MHz; double fmax_MHz; double DM_min; double DM_max; double DM_step; int n_DM_trials; double P_ms; double tsamp_us; int n_bins; double TOA_target_ns; std::string hardware; double gpu_mem_GB; }; +struct FRB_PipelineSpec { double bw_MHz; double fmin_MHz; double fmax_MHz; int N_chan; double tres_us; double DM_min; double DM_max; int n_DM; double pw_min_ms; double pw_max_ms; double snr_thresh; bool gpu; int n_gpus; std::string ml_model; double fp_rate; double frb_rate_day; bool voevent; }; + +struct BackendSpec { + std::string name; FFT_SpectrometerSpec spec; VLBI_RecorderSpec vlbi; + PulsarTimingSpec pulsar; FRB_PipelineSpec frb; + double total_TFLOPS; double total_Gbps; double power_kW; +}; + +struct BackendState { double actual_chan_iso_dB; double drop_pct; double vlbi_loss_pct; double TOA_rms_ns; int frb_cand_per_hr; double gpu_util_pct; double disk_usage_pct; }; +struct BackendPerformance { double spec_DR_dB; double spec_sens_Jy; double TOA_precision_ns; double frb_completeness_pct; double frb_fp_pct; double cap_eff_pct; bool meets_spec; }; + +BackendSpec design_spectrometer(double bw_MHz, int N_chan, WindowFunction w = WindowFunction::BlackmanNuttall); +PulsarTimingSpec design_pulsar_backend(double bw, double DM, double P_ms, double target_TOA_ns); +FRB_PipelineSpec design_frb_pipeline(double bw, double DM_max, double snr = 7.0); +double calculate_dispersion_delay(double DM, double flow, double fhigh); +double calculate_incoherent_smearing(double DM, double df_MHz, double fc_MHz); +double calculate_TOA_uncertainty(double SN, double W_ms, double bw_MHz, double tint_s); + +} // namespace vde::radio_telescope +``` + +--- + +### 5. Interferometry & UV-Plane Synthesis — Van Cittert-Zernike, CLEAN, Self-Calibration + +**Priority**: P1 + +#### 5.1 Visibility Function, Aperture Synthesis, and Image Reconstruction + +``` +Van Cittert-Zernike Theorem: + V(u,v) = ∬ I(l,m)×exp(−j2π(ul+vm)) dl dm / √(1−l²−m²) + Simplified (small field, coplanar): V(u,v) = FT{I(l,m)} + Each baseline (u_ij, v_ij) measures one Fourier component + +(u,v) Coverage and Synthesized Beam: + Earth rotation synthesis: (u,v) tracks elliptical arcs over time + Dirty beam (PSF) = FT{sampling function S(u,v)} + Sampling function S(u,v) = Σ δ(u−u_k, v−v_k) × w_k (weights) + Sidelobes from incomplete (u,v) coverage → deconvolution needed + +CLEAN Deconvolution: + Högbom CLEAN (1974): iterative peak finding + subtraction of dirty beam + Clark CLEAN: major/minor cycle (FFT acceleration) + Multi-Scale CLEAN (MS-CLEAN): clean using multiple Gaussian scales + MS-MFS CLEAN: multi-scale + multi-frequency synthesis (wide bandwidth) + MEM (Maximum Entropy Method): alternative to CLEAN + +Self-Calibration: + Closure phase: φ_ijk = φ_ij + φ_jk + φ_ki (independent of antenna gains) + Closure amplitude: |V_ij||V_kl|/(|V_ik||V_jl|) + Solve for antenna-based complex gains g_i(t): + V_ij^obs = g_i×g_j*×V_ij^true + Using closure quantities as constraints + Iterative: CLEAN image → model visibilities → solve gains → apply → repeat +``` + +#### 5.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class CleanAlgorithm { Hogbom, Clark, MultiScale, MS_MFS, CottonSchwab }; +enum class WeightingScheme { Natural, Uniform, Robust_Briggs, Tapered }; + +struct UV_CoverageSpec { double u_min; double u_max; double v_min; double v_max; int n_baselines; double max_baseline_km; double angular_resolution_mas; bool earth_rotation_synthesis; double hour_angle_range_hours; }; +struct SynthesizedBeamSpec { double bmaj_mas; double bmin_mas; double bpa_deg; double peak_sidelobe_pct; double rms_sidelobe_uJy; }; +struct CleanSpec { CleanAlgorithm algo; int n_iterations; double loop_gain; double threshold_mJy; double multiscale_scales[5]; int n_scales; double robust_parameter; WeightingScheme weighting; }; +struct SelfCalSpec { int solution_interval_s; bool solve_amplitude; bool solve_phase; double snr_min_for_solution; int n_iterations_max; double convergence_criterion; }; +struct ImageSpec { int N_pixels; double pixel_size_mas; double field_of_view_arcsec; double rms_noise_uJy_per_beam; double dynamic_range; double peak_flux_Jy; }; + +struct InterferometrySpec { + double frequency_GHz; double bandwidth_MHz; UV_CoverageSpec uv; SynthesizedBeamSpec beam; + CleanSpec clean; SelfCalSpec selfcal; ImageSpec image; + int n_antennas; double Tsys_K; double SEFD_Jy; double coherence_loss_pct; + double expected_rms_uJy; double integration_time_hours; +}; + +struct InterferometryState { double current_hour_angle; int clean_iteration; double peak_residual_mJy; double selfcal_phase_rms_deg; double selfcal_amp_rms_pct; }; +struct InterferometryPerformance { double achieved_rms_uJy; double achieved_dyn_range; double beam_fidelity_pct; double selfcal_phase_rms_deg_final; double image_fidelity; bool meets_sensitivity; }; + +InterferometrySpec design_interferometer(int n_ant, double D_m, double f_GHz, double bw_MHz, double tint_h); +double calculate_synthesized_beam(double max_baseline_km, double wavelength_mm); +double calculate_image_rms(double SEFD_Jy, int n_ant, double bw_MHz, double tint_h, double n_pol = 2); +double apply_clean(const CleanSpec& clean, const SynthesizedBeamSpec& beam); +bool check_closure_phase(const std::vector& phases_ij, const std::vector& phases_jk, const std::vector& phases_ki, double tol_deg = 1.0); + +} // namespace vde::radio_telescope +``` + +--- + +### 6. Synthesis Array — VLA, ALMA, SKA, and Configuration Design + +**Priority**: P1 + +#### 6.1 Array Configuration, Correlator, and Sensitivity Scaling + +``` +VLA (Very Large Array, New Mexico): + 27×25 m dishes, Y-shaped rail tracks + Configurations: A (36 km, 0.04" at 43 GHz), B (11 km), C (3.4 km), D (1 km) + Frequency: 1–50 GHz (8 receiver bands) + WIDAR correlator: 8 GHz BW, 16,384 spectral channels + Sensitivity: 5 μJy in 12 h (C config, L-band continuum) + +ALMA (Atacama Large Millimeter/submillimeter Array): + 50×12 m + ACA (12×7 m + 4×12 m), Chajnantor 5,000 m + Bands 3–10: 84–950 GHz + Baselines: 150 m – 16 km + Resolution: 0.02" at 300 GHz (16 km baseline) + Coherence loss <2% on 1 km baseline (atmospheric phase correction) + Correlator: 4×4 GHz BW per baseline, full Stokes + +SKA Observatory: + SKA-Mid (South Africa): 197×15 m dishes (incorporating MeerKAT 64→197) + 350 MHz–15.4 GHz, Band 1–5 receivers + Maximum baseline: 150 km + SKA-Low (Australia, Murchison): 131,072 dual-pol log-periodic dipole antennas + 50–350 MHz, 512 stations of 256 elements + Station FoV: ~30 deg² at 150 MHz + Beamforming: per-station tile beam + array correlation + +WSRT (Westerbork, Netherlands): 14×25 m E-W line, 2.7 km +GMRT/uGMRT (India): 30×45 m, upgraded to 50–1450 MHz + +Correlator Design: + XF correlator: lag first → Fourier transform (traditional) + FX correlator: Fourier transform → multiply (modern, efficient) + Input: N_ant × BW × N_pol × 2 (complex) + Output: N_baselines × N_chan × 4 (XX, XY, YX, YY) + N_baselines = N_ant×(N_ant−1)/2 (e.g., 27×26/2 = 351 for VLA) + Correlator cost: O(N_ant²×BW) → dominant cost for large arrays + FPGA+GPU hybrid: CASPER/ROACH boards for correlation +``` + +#### 6.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class ArrayType { VLAStyle_Y, ALMA_ZoomSpiral, SKA_Mid_Spiral, SKA_Low_Station, EastWest_Linear, Custom }; + +struct ArrayAntennaSpec { double diameter_m; double surface_accuracy_um; double slew_rate_az; double slew_rate_el; double SEFD_Jy[10]; double receiver_bands_min_GHz[10]; double receiver_bands_max_GHz[10]; }; +struct ArrayConfigSpec { ArrayType type; int n_antennas; double min_baseline_m; double max_baseline_m; double configuration_radius_km; int n_configurations; std::vector config_max_baselines_km; }; +struct CorrelatorSpec { int n_inputs; double max_bandwidth_per_baseline_GHz; int n_spectral_channels; double freq_resolution_kHz; int n_polarizations; std::string architecture; double total_compute_TFLOPS; double data_output_rate_GBps; }; + +struct SynthesisArraySpec { + std::string name; ArrayType type; ArrayAntennaSpec antenna; ArrayConfigSpec config; + CorrelatorSpec correlator; std::vector receiver_bands; + double max_angular_resolution_mas; double max_sensitivity_uJy_1hr; + double survey_speed_FoM; double total_collecting_area_m2; + double longest_baseline_km; double shortest_baseline_m; +}; + +struct ArrayState { int n_active_antennas; double avg_atmospheric_phase_rms_deg; double correlator_efficiency_pct; double data_loss_pct; }; +struct ArrayPerformance { double actual_sensitivity_uJy; double actual_resolution_mas; double image_fidelity_pct; double survey_speed_deg2_per_hr; bool meets_spec; }; + +SynthesisArraySpec design_vla_style_array(int n_ant, double D_m, double max_baseline_km, int n_configs); +SynthesisArraySpec design_alma_style_array(int n_12m, int n_7m, int n_tp, double max_baseline_km); +SynthesisArraySpec design_ska_low_station(int n_stations, int n_elements_per_station, double f_center_MHz); +double calculate_total_sensitivity(int n_ant, double SEFD_Jy, double bw_MHz, double tint_h); +double calculate_survey_speed(int n_ant, double SEFD_Jy, double FoV_deg2, double bw_MHz); + +} // namespace vde::radio_telescope +``` + +--- + +### 7. VLBI — EHT, EVN, VLBA, Space VLBI, and Fringe Fitting + +**Priority**: P1 + +#### 7.1 Very Long Baseline Interferometry and Fringe Detection + +``` +VLBI Principles: + Independent local oscillators at each station → no common reference + Data recorded to disk → correlated offline (or real-time e-VLBI) + Delay model: geometric delay + clock offset + atmospheric delay + instrumental + Fringe fitting: estimate residual delay τ, delay rate τ̇, phase φ + +EHT (Event Horizon Telescope): + 8 stations at 230 GHz (1.3 mm): ALMA, APEX, IRAM 30m, NOEMA, JCMT, SMA, LMT, SPT + Resolution: 25 μas (λ/D with D ≈ Earth diameter) + Observed targets: Sgr A* (50 μas shadow), M87* (40 μas shadow) + Bandwidth: 2 GHz per polarization (dual sideband) + Recording: Mark6 at 32 Gbps per station + Correlation: MIT Haystack / MPIfR Bonn (DiFX software correlator) + +EVN (European VLBI Network): + 20+ telescopes across Europe, Asia, South Africa + Real-time e-VLBI: fiber connectivity at 1–10 Gbps + Frequency: 1.6, 5, 6, 22, 43 GHz + Sensitivity: ~10–50 μJy (cm-wave) + +VLBA (Very Long Baseline Array): + 10×25 m antennas across USA (Hawaii to Virgin Islands) + 8,611 km max baseline, 327 MHz–96 GHz + Mas resolution: 0.17 mas at 43 GHz + +Space VLBI (RadioAstron): + 10 m space antenna + ground telescopes + Apogee: 350,000 km → 7 μas fringe resolution + Frequency: 0.3, 1.6, 5, 22 GHz + Orbit period: ~9 days + +Fringe Fitting: + Model: V_ij(t,ν) = A × exp(j(2πντ_g + φ_0 + 2πτ̇_g×t + ...)) + Fringe rate: f_fringe ≈ ω_earth × B_EW/λ (natural from Earth rotation) + Detection threshold: SNR > 7 typical + Phase-referencing: alternate source/calibrator to correct atmospheric phase + Astrometric accuracy: <10 μas (VLBA) +``` + +#### 7.2 Proposed API + +```cpp +namespace vde::radio_telescope { + +enum class VLBIMode { PassiveRecording, eVLBI_RealTime, NearRealTime }; + +struct VLBIStationSpec { std::string name; double diameter_m; double SEFD_Jy[10]; double f_min_GHz; double f_max_GHz; double recorder_rate_Gbps; bool e_vlbi_capable; double latitude_deg; double longitude_deg; double elevation_m; }; +struct VLBIBaselineSpec { std::string station_A; std::string station_B; double length_km; double resolution_mas; double min_detectable_flux_mJy; double fringe_rate_Hz; }; +struct FringeFittingSpec { double snr_threshold; int n_fft_points; double delay_search_range_us; double rate_search_range_ps_per_s; double solution_interval_s; double phase_reference_cycle_s; }; + +struct VLBISpec { + std::string array_name; VLBIMode mode; double frequency_GHz; double bandwidth_MHz; + std::vector stations; std::vector baselines; + FringeFittingSpec fringe; int n_stations; int n_baselines; + double max_resolution_mas; double sensitivity_1sigma_mJy; + double total_recorded_data_TB; double observing_time_hours; +}; + +struct VLBIState { double current_gmst_hours; int n_detected_fringes; double avg_fringe_snr; double phase_rms_deg; double delay_residual_ns; }; +struct VLBIPerformance { double fringe_detection_rate_pct; double image_dynamic_range; double astrometric_accuracy_mas; double sensitivity_achieved_mJy; bool meets_snr_threshold; }; + +VLBISpec design_vlbi_array(const std::vector& station_names, double f_GHz, double bw_MHz, double tint_h); +VLBIStationSpec add_vlbi_station(std::string name, double D_m, double SEFD_Jy, double lat, double lon, double elev); +VLBIBaselineSpec calculate_baseline(const VLBIStationSpec& A, const VLBIStationSpec& B, double f_GHz); +double calculate_fringe_snr(double SEFD_A, double SEFD_B, double bw_MHz, double tint_s, double flux_Jy); +double calculate_vlbi_resolution(double baseline_km, double wavelength_mm); + +} // namespace vde::radio_telescope +``` + +--- + +## C++ API Namespace Summary + +| Namespace | Header | Primary Types | +|-----------|--------|---------------| +| `vde::radio_telescope` | `vde/radio_telescope/dish.h` | `DishSpec`, `DishState`, `DishPerformance`, `ReflectorSpec`, `ApertureEfficiency`, `PointingSpec`, `AntennaGainSpec` | +| `vde::radio_telescope` | `vde/radio_telescope/feed.h` | `FeedSpec`, `FeedState`, `FeedPerformance`, `CorrugatedHornSpec`, `OMT_Spec`, `QRHF_Spec`, `PAF_Spec`, `CryoWindowSpec` | +| `vde::radio_telescope` | `vde/radio_telescope/receiver.h` | `ReceiverSpec`, `ReceiverState`, `ReceiverPerformance`, `HEMT_Spec`, `SIS_MixerSpec`, `LO_ChainSpec`, `CryostatSpec` | +| `vde::radio_telescope` | `vde/radio_telescope/backend.h` | `BackendSpec`, `BackendState`, `BackendPerformance`, `FFT_SpectrometerSpec`, `VLBI_RecorderSpec`, `PulsarTimingSpec`, `FRB_PipelineSpec` | +| `vde::radio_telescope` | `vde/radio_telescope/interferometry.h` | `InterferometrySpec`, `InterferometryState`, `InterferometryPerformance`, `UV_CoverageSpec`, `CleanSpec`, `SelfCalSpec` | +| `vde::radio_telescope` | `vde/radio_telescope/array.h` | `SynthesisArraySpec`, `ArrayState`, `ArrayPerformance`, `ArrayAntennaSpec`, `ArrayConfigSpec`, `CorrelatorSpec` | +| `vde::radio_telescope` | `vde/radio_telescope/vlbi.h` | `VLBISpec`, `VLBIState`, `VLBIPerformance`, `VLBIStationSpec`, `VLBIBaselineSpec`, `FringeFittingSpec` | + +--- + +## Industry Standards & References + +| Standard | Title | Relevance | +|---|---|---| +| IAU Resolution B3 (2015) | Recommended radio astronomy frequency bands | Protected frequency allocations | +| ITU-R RA.769-2 | Protection criteria for radio astronomical measurements | RFI thresholds and protected bands | +| IEEE 356 | Guide for radio methods of measuring earth conductivity | Site characterization | +| IEC 60169 | Radio-frequency connectors | RF connector standards for receivers | +| ITU-R P.676 | Attenuation by atmospheric gases | Atmospheric opacity modeling | +| ITU-R P.840 | Attenuation due to clouds and fog | Site selection and calibration | +| IVS (International VLBI Service) | VLBI data format standards, operations | VLBI data standards | +| CASPER Collaboration | Open-source FPGA toolflow for radio astronomy | Digital backend development | +| CASA (Common Astronomy Software Applications) | NRAO data reduction package | Image synthesis and calibration | +| AIPS (Astronomical Image Processing System) | Classic radio astronomy software | Legacy data processing standard | + +--- + +## Benchmarks + +| Equipment Type | Benchmark Vendor | Model | Key Spec | +|---|---|---|---| +| Single Dish | NRAO / Green Bank | GBT 100 m | G/T 38 dB/K, 290 MHz–115 GHz, active surface | +| Single Dish | MPIfR | Effelsberg 100 m | G/T 36 dB/K, 408 MHz–86 GHz | +| Single Dish | NAOC | FAST 500 m (Guizhou) | A_eff ~70,000 m², 70 MHz–3 GHz, largest filled aperture | +| Corrugated Feed | ALMA / NAOJ | ALMA Band 3–10 feeds | 84–950 GHz, cross-pol <−25 dB, cryogenic | +| PAF | CSIRO / ASKAP | MkII PAF | 94 elements, 36 beams, 700–1800 MHz, 30 deg² | +| HEMT Receiver | NRAO / CDL | GBT L-band | 1.15–1.73 GHz, T_rec ≈ 10 K (cryogenic InP) | +| SIS Receiver | ALMA / NAOJ | ALMA Band 6 | 211–275 GHz, T_rec ≈ 50 K SSB, 4 K stage | +| SIS Receiver | ALMA / IRAM | ALMA Band 9 | 602–720 GHz, T_rec ≈ 200 K SSB | +| PFB Spectrometer | CASPER / ROACH-2 | Standard PFB design | 4k–64k channels, 8-tap PFB, Xilinx Virtex-6 | +| VLBI Recorder | MIT Haystack | Mark6 | 16 Gbps, 64 TB, VDIF, 2-bit | +| Pulsar Backend | MeerKAT / PTUSE | Pulsar Timing User Supplied Equipment | Coherent de-dispersion, 856 MHz BW | +| FRB Pipeline | CHIME / FRB | CHIME/FRB backend | 400–800 MHz, 16k channels, GPU real-time, ~500 FRBs/yr | +| Synthesis Array | NRAO | VLA (27×25 m) | 1–50 GHz, A/B/C/D configs, WIDAR correlator | +| mm/submm Array | ALMA (JAO) | 50×12m + ACA | 84–950 GHz (Band 3–10), 16 km baseline, 5,000 m | +| SKA Precursor | SARAO | MeerKAT (64×13.5 m) | 0.9–1.67 GHz, 8 km core, precursor to SKA-Mid | +| SKA-Mid | SKAO | SKA-Mid | 197×15 m, 350 MHz–15.4 GHz, 150 km baseline | +| SKA-Low | SKAO | SKA-Low | 131,072 dipoles, 50–350 MHz, 512 stations | +| VLBI Array | NRAO | VLBA (10×25 m) | 327 MHz–96 GHz, 8,611 km baseline, 0.17 mas | +| mm-VLBI | EHT Collaboration | Event Horizon Telescope | 230 GHz, 8 stations, 25 μas, Sgr A*/M87* | +| European VLBI | JIVE | EVN (20+ stations) | e-VLBI real-time fiber, 1.6–43 GHz | +| Space VLBI | Astro Space Center | RadioAstron | 10 m space antenna, 350,000 km apogee, 7 μas | +| Correlator | NRAO | WIDAR (VLA) | 351 baselines, 8 GHz BW, 16,384 channels | +| Correlator | ALMA | ALMA Correlator | 1,225 baselines, 4×4 GHz BW, full Stokes | + +--- + +## Acceptance Criteria + +1. **Dish Antenna Design (必选):** Engine shall design parabolic reflectors with configurable F/D (0.3–0.5), Cassegrain/Gregorian dual-reflector, and beam waveguide options. Surface accuracy σ <20 μm RMS shall be verifiable with Ruze efficiency calculation η=exp(−(4πσ/λ)²). Aperture efficiency η_A shall be decomposed into 7 components (illumination, spillover, phase, blockage, ohmic, focus, cross-polarization). G/T and SEFD shall be calculated per frequency band. Pointing error < HPBW/10 shall be verified with configurable error budget components (encoder, structural, wind, thermal, servo). + +2. **Feed & Horn Design (必选):** Engine shall design corrugated horns with HE₁₁ hybrid mode, cross-polarization <−30 dB, beam symmetry <±2°. OMT with >30 dB isolation, polarizer with axial ratio <1 dB for circular polarization. QRFH wideband feed with 5:1–10:1 bandwidth. PAF with configurable N×N Vivaldi array, max-SNR beamforming, and B simultaneous beams. Cryogenic window with <0.1 dB insertion loss and >30 dB IR blocking. System noise contribution from feed shall be quantifiable. + +3. **Cryogenic Receiver Design (必选):** Engine shall design HEMT LNAs for 0.3–50 GHz with noise temperatures following Fukui's T_N ≈ C_F×f(GHz) relationship, physical temperature 15–20 K. SIS mixer design for 80–950 GHz with quantum noise limit hν/k_B, double/single sideband noise specification, and LO power requirement. LO chain with GPS-disciplined reference, frequency multiplication factor, phase noise <−80 dBc/Hz at 10 kHz, and timing jitter <0.1 ps rms. Cryostat with 4K/15K/77K stages, GM or pulse-tube cooler, MLI layer count, and cooldown time. Total system noise temperature T_sys <20 K for L-band HEMT shall be verifiable. + +4. **Digital Backend Design (必选):** Engine shall design FFT spectrometers with PFB architecture (configurable taps, window function), 1k–1M+ channels, channel isolation and spectral dynamic range >50 dB. VLBI recorder (Mark6 style) with 8/16/32 Gbps data rate, VDIF format, 2-bit quantization, and e-VLBI capability. Pulsar timing with incoherent/coherent de-dispersion covering configurable DM range, TOA accuracy specification. FRB transient pipeline with GPU FDMT, matched filter pulse width range, ML RFI classification. FFT spectral dynamic range >50 dB and pulsar TOA <100 ns RMS shall be verifiable. + +5. **Interferometry & UV Synthesis (必选):** Engine shall model Van Cittert-Zernike theorem V(u,v)=FT{I(l,m)}, (u,v) coverage from Earth rotation synthesis, and synthesize the dirty beam PSF. CLEAN deconvolution (Högbom, Clark, Multi-Scale, MS-MFS) with configurable loop gain, threshold, and scales. Self-calibration using closure phases and amplitudes to solve for antenna-based complex gains. Image RMS noise calculation from radiometer equation: σ = SEFD/(η_c×√(N_ant×(N_ant−1)×Δν×τ)). ALMA coherence loss <2% on 1 km baseline shall be verifiable. + +6. **Synthesis Array Configuration (必选):** Engine shall support VLA-style (Y-shaped, reconfigurable A/B/C/D), ALMA-style (zoom spiral, multiple antenna sizes), and SKA-style (spiral + core, station beamforming for low-frequency). Array configurations with configurable number of antennas, dish diameter, baseline range, and frequency bands. Correlator design with N_baselines×(N_ant−1)/2 visibility products, configurable bandwidth and spectral channels. Survey speed figure of merit (A_eff/T_sys)²×FoV×BW shall be reported. SKA-Low station beamforming accuracy shall be verified. + +7. **VLBI Design (必选):** Engine shall model VLBI stations with independent LO, geometric delay model, and fringe fitting for residual delay τ, rate τ̇, and phase φ. EHT-style 230 GHz configuration with 8 stations. EVN e-VLBI real-time fiber connectivity. VLBA-style 10-station continental array. Space VLBI with orbital baselines. Fringe detection SNR calculation: SNR = A_e×√(2×BW×τ)/(SEFD_avg). VLBI fringe detection SNR>7 and astrometric accuracy <10 μas shall be verifiable. + +8. **Unit Consistency (必选):** Antenna dimensions in m, frequency in MHz/GHz, wavelength in mm/μm, gain in dBi, temperature in K, flux density in Jy/mJy/μJy, angular resolution in arcsec/mas/μas, bandwidth in MHz/GHz, data rate in Gbps, integration time in s/h, baseline in m/km, SEFD in Jy, G/T in dB/K, DM in pc/cm³, phase in °, cross-polarization in dB, and survey speed in deg²/h/GHz. + +9. **RFI and Site Protection (必选):** Engine shall support ITU-R RA.769 protection criteria for radio astronomy bands. Atmospheric opacity modeling per ITU-R P.676 and P.840 for site selection. RFI flagging and excision (spectral kurtosis, threshold-based) for data processing. Site quality metrics: PWV (precipitable water vapor) for mm-wave, RFI environment for low frequency, elevation above sea level for atmospheric transmission. diff --git a/docs/feedback/VDE-1159.md b/docs/feedback/VDE-1159.md new file mode 100644 index 000000000..b992c8577 --- /dev/null +++ b/docs/feedback/VDE-1159.md @@ -0,0 +1,1750 @@ +# VDE-1159: Optical Telescope & Observatory Engine Requirements (光学望远镜与天文台设备引擎需求) + +**Date**: 2026-08-10 +**Source**: ViewDesign OpticalTelescopeEngine — primary mirror Zerodur/ULE figuring MRF/IBF, Ritchey-Chrétien/Schmidt optical design, Alt-Az direct-drive mount, dome thermal enclosure seeing control, Shack-Hartmann adaptive optics LGS/MCAO, CCD deep-depletion/HgCdTe/sCMOS detectors, Echelle/IFU/LSST instruments +**Module**: `vde/optical_telescope/mirror.h`, `vde/optical_telescope/optics.h`, `vde/optical_telescope/mount.h`, `vde/optical_telescope/dome.h`, `vde/optical_telescope/ao.h`, `vde/optical_telescope/detector.h`, `vde/optical_telescope/instrument.h` +**Status**: Open — Engine requirement proposal +**Priority**: P1 +**Category**: Optical Astronomy / Telescope / Optics / Adaptive Optics / Detector / Spectrograph + +--- + +## Background + +Optical and near-infrared telescopes are the workhorses of modern observational astronomy, covering wavelengths from the ultraviolet (~300 nm) through the visible (400–700 nm) to the mid-infrared (~25 μm). The past three decades have witnessed an exponential growth in collecting area, driven by segmented primary mirrors: the 10 m Keck twins (36 hexagonal segments each, 1993/1996), the 10.4 m Gran Telescopio Canarias (GTC), and the next-generation 30 m class Extremely Large Telescopes (ELTs) now under construction — the European Southern Observatory's 39 m ELT (798 segments), the Thirty Meter Telescope (TMT, 492 segments), and the Giant Magellan Telescope (GMT, 7×8.4 m circular segments). These facilities, combined with adaptive optics (AO) delivering diffraction-limited imaging, will achieve angular resolutions of 5–10 mas at K-band (2.2 μm) and point-source sensitivities 100× deeper than current 8–10 m telescopes. + +Primary mirror fabrication represents perhaps the most demanding precision engineering challenge in astronomy. The mirror substrate must combine near-zero thermal expansion coefficient (CTE) with high thermal conductivity, low internal stress, and excellent polishability. Zerodur (Schott AG), a lithium aluminosilicate glass-ceramic with CTE < 0±0.007×10⁻⁶/K at 0–50°C, and ULE (Corning), a titania-doped fused silica with CTE < 0±0.030×10⁻⁶/K, have dominated large mirror production. The mirror blank is first cast or fused (spin-casting for meniscus shapes at the Steward Observatory Mirror Lab, producing the 8.4 m honeycomb mirrors for LBT, GMT, and LSST), then precision-ground to within ~10 μm of the final aspheric figure using diamond tooling on large 5-axis CNC grinding machines. Deterministic figuring employs either Magnetorheological Finishing (MRF), where a magnetically stiffened abrasive fluid ribbon conforms to and selectively removes material under computer control, or Ion Beam Figuring (IBF), where a focused neutralized argon ion beam sputters atoms from the surface in vacuum with sub-nanometer depth resolution. The final surface must achieve λ/20–λ/30 RMS wavefront error at 633 nm for large monolithic mirrors (e.g., VLT 8.2 m, λ/20 at 500 nm), verified through interferometric testing against a computer-generated hologram (CGH) null corrector. For segmented mirrors, edge-aligned phasing to <λ/20 requires edge sensors (capacitive or inductive) measuring relative piston/tip/tilt at the 1 nm level and active warping harnesses with tens of force actuators per segment. + +Optical design for large telescopes has converged on the Ritchey-Chrétien (RC) two-mirror aplanatic configuration: a concave hyperbolic primary combined with a convex hyperbolic secondary, eliminating both spherical aberration and coma at the focal plane — the dominant aberrations for wide-field imaging. The RC prescription, with its nearly flat field and minimal astigmatism, has been adopted by the Hubble Space Telescope (2.4 m f/24), VLT (8.2 m f/13.6 Nasmyth), Keck (10 m f/15 Nasmyth), Subaru (8.2 m f/12.2 prime focus with wide-field corrector), and GTC (10.4 m f/17). For ultra-wide-field survey applications, modified Paul-Baker three-mirror anastigmats (LSST 8.4 m, 3.5° FoV, f/1.23) and prime-focus Schmidt cameras (with aspheric corrector plate eliminating spherical aberration and coma, e.g., the 1.2 m Palomar Schmidt and the 2.5 m Sloan Digital Sky Survey telescope) have proven indispensable. Image quality is quantified through the Strehl ratio S = exp(−(2πσ/λ)²), where σ is the RMS wavefront error, and the 80% encircled energy diameter (EE80) within which 80% of the point-source flux is concentrated. + +Telescope mounts have evolved from the classic German equatorial mount (where the declination axis is supported at one end, requiring a massive counterweight) to the altitude-azimuth (Alt-Az) mount that dominates all modern large telescopes (>4 m). Alt-Az mounts offer two key advantages: the gravity vector is always axial on the primary mirror cell (eliminating lateral flexure), and the structure is more compact with lower mass and cost. The tradeoff is the need for field de-rotation (a K-mirror or instrument rotator tracking parallactic angle) and a ~0.7° diameter zenith blind spot where the azimuth velocity diverges (navigated via a small constant-elevation offset). Direct-drive torque motors (frameless permanent-magnet synchronous motors with integral high-resolution encoders) have replaced conventional gear-and-worm drives, eliminating backlash and periodic error. The VLT's 8.2 m unit telescopes achieve 0.03" RMS blind pointing and 0.05" RMS tracking over 1 hour using Renishaw RESM optical tape encoders with 26-bit resolution (0.005" per tick) and friction-drive rollers. The LSST mount achieves 0.6" RMS open-loop tracking during 15-second exposures, with 3.5° slew-and-settle in under 5 seconds, using hydrostatic oil-pad bearings supporting ~350 tons of moving mass. + +Observatory dome and enclosure design addresses the critical problem of "dome seeing" — the degradation of image quality caused by turbulent thermal plumes rising from a dome structure that is warmer (or colder) than the ambient night air. Classical hemispherical domes with upward-opening slit designs (Gemini, Subaru, Keck) aim to minimize the thermal footprint by using low-thermal-mass aluminum cladding, active ventilation with flush louvers, and daytime cooling to below the expected nighttime temperature. The VLT enclosures pioneered the co-rotating building concept where the entire building rotates with the telescope, minimizing wind buffeting. For ELTs, carousel-style enclosures (GMT) and hemispherical domes with wide ventilation apertures (E-ELT, 86 m diameter dome, ~5,000 tons) aim for dome seeing contributions <0.2 arcsec FWHM. Site selection is equally critical — the world's premier astronomical sites (Maunakea, Hawaii; Atacama Desert, Chile; La Palma, Canary Islands; Antarctic Plateau) are characterized by sharp, laminar free-atmosphere seeing (<0.3–0.5 arcsec median), high clear-sky fraction (>70%), low precipitable water vapor (PWV <2.5 mm for IR), minimal light pollution, and stable atmospheric inversion layers. + +Adaptive Optics (AO) corrects the real-time wavefront distortions caused by atmospheric turbulence, restoring diffraction-limited imaging. The Shack-Hartmann wavefront sensor (WFS) divides the pupil into an array of subapertures (typically 10×10 to 80×80), each imaged by a microlens onto a fast-readout CCD/CMOS detector. The centroid displacement of each spot is proportional to the local wavefront gradient ∇φ(x,y). The wavefront is reconstructed (modal or zonal) and the conjugate correction is applied by a Deformable Mirror (DM) — a thin (0.3–0.5 mm) glass facesheet backed by hundreds to thousands of piezoelectric (PZT) or voice-coil actuators with ~5 nm stroke resolution operating at 500–2,000 Hz update rates. For the highest-Strehl correction (S > 0.9 in K-band), Extreme AO (ExAO) systems use >3,000 actuators at >2 kHz frame rates (e.g., Gemini Planet Imager, SPHERE at VLT). Multi-Conjugate AO (MCAO) uses multiple DMs optically conjugated to different turbulent altitudes (ground layer, 4–8 km, 10–15 km), measured by multiple guide stars, to provide uniform correction over arcminute-scale fields (e.g., GeMS at Gemini South with 5 LGS + 3 DMs, achieving 0.08" FWHM over 2' FoV). Laser Guide Stars (LGS) created by exciting the mesospheric sodium layer at ~92 km altitude with a 589 nm sodium D₂ resonance laser (typically 10–25 W CW, narrow-line <5 MHz) provide an artificial reference star for AO where natural guide stars are insufficient. + +CCD and infrared detectors form the photon-counting retina of modern telescopes. For visible wavelengths, back-illuminated, deep-depletion CCDs (e.g., Teledyne e2v CCD290-99 for LSST, 4k×4k, 10 μm pixels) achieve quantum efficiency (QE) >90% from 400–900 nm with read noise <2 e⁻ RMS at ~500 kpix/s readout rate. The LSST focal plane comprises 189 such CCDs forming a 3.2 gigapixel mosaic over a 64 cm diameter field. For near-infrared (1–2.5 μm), HgCdTe (Mercury-Cadmium-Telluride) detector arrays fabricated by Teledyne Imaging Sensors (HAWAII-2RG, 2k×2k, 18 μm pixels, 32-channel readout) and Raytheon Vision Systems dominate: HAWAII-4RG (4k×4k) arrays with 0.5–5.3 μm cutoff, QE >80% at 1.0–2.3 μm, read noise <5 e⁻ CDS (correlated double sampling), and dark current <0.005 e⁻/s at 77 K. Multiple HAWAII-4RG arrays mosaic to megapixel-class focal planes (e.g., 16 arrays in the MOONS spectrograph at VLT). For rapid AO wavefront sensing, sCMOS (scientific CMOS) detectors (e.g., Andor Marana, Teledyne Princeton) offer sub-electron read noise at >1,000 fps with >90% QE. Cryogenic operation (typically liquid nitrogen at 77 K, or closed-cycle 40–80 K for lower dark current) is essential for IR arrays. + +Spectrographs and astronomical instruments extract the detailed physical properties of celestial sources — chemical composition, radial velocity, temperature, density, magnetic fields, and redshift. Long-slit spectrographs (e.g., GMOS at Gemini, FORS at VLT) disperse light from a narrow spatial slice, providing R = λ/Δλ ≈ 500–5,000. Echelle spectrographs use a coarse-ruled (e.g., 31.6 grooves/mm, R4 echelle) grating in high diffraction order (m ≈ 50–120), combined with a cross-disperser (prism or grating) to separate overlapping orders, achieving R = 20,000–150,000 on 2D detectors. For exoplanet radial velocity searches, ultra-stable fiber-fed Echelle spectrographs (HARPS at ESO 3.6 m, ESPRESSO at VLT, EXPRES at DCT, NEID at WIYN) incorporate vacuum enclosures, thermal stabilization to ±0.001 K, calibration via laser frequency combs or Th-Ar/iodine cells, and achieve long-term RV precision <0.5 m/s — sufficient to detect Earth-mass planets in habitable zones. Integral Field Units (IFU) use fiber bundles (hexagonal microlens arrays with ~1,000–10,000 spatial elements) or image slicers to obtain a spectrum for every spatial pixel in a 2D field, enabling resolved kinematical and chemical mapping of galaxies and nebulae (e.g., MUSE at VLT with 24 IFU modules, 1'×1' FoV, R = 2,000–4,000, and NIRSpec on JWST with micro-shutter array + IFU). Wide-field multi-object spectrographs (MOS) use robotically positioned fiber positioners (e.g., DESI at KPNO 4 m with 5,000 fibers, LAMOST 4,000 fibers, PFS at Subaru with 2,400 fibers over 1.3° FoV) to observe hundreds to thousands of targets simultaneously, driving cosmological surveys like DESI's baryon acoustic oscillation mapping. + +VDE currently lacks comprehensive optical telescope and observatory modeling covering: +- Primary mirror design (Zerodur/ULE CTE, MRF/IBF deterministic figuring, interferometric testing with CGH null corrector, segmented mirror phasing with edge sensors and active warping harness, surface error budget component decomposition) +- Optical design (refractor doublet/triplet design, Ritchey-Chrétien aplanatic two-mirror with hyperbolic primary/secondary, Schmidt camera corrector plate, three-mirror anastigmat, Nasmyth/Coudé focus train, Strehl ratio ± wavefront error budget, EE80 spot size, vignetting and stray light analysis) +- Telescope mount and drive (Alt-Az direct-drive torque motor design, hydrostatic oil-pad bearings, encoder resolution and pointing model, field de-rotation, German equatorial for smaller telescopes, tracking error budget, structural eigenfrequency for wind rejection) +- Dome and enclosure (thermal modeling for dome seeing, active ventilation system, daytime cooling strategy, site selection metrics: seeing statistics, PWV, cloud cover, light pollution, boundary layer height) +- Adaptive optics (Shack-Hartmann WFS subaperture geometry and centroiding algorithm, DM actuator influence function and stroke, LGS sodium layer return flux and spot elongation, MCAO tomographic reconstruction, Strehl optimization) +- CCD and IR detectors (CCD QE vs λ from AR coating optimization, deep-depletion thickness, read noise vs readout rate, HgCdTe HAWAII array with ROIC multiplexer, dark current, persistence/latency, sCMOS for AO wavefront sensing, cryostat design) +- Spectrograph and instruments (long-slit R = λ/Δλ, Echelle cross-dispersed R up to 150,000, IFU fiber-lenslet array spatial sampling, MOS fiber positioner robotic patrol, RV precision via laser frequency comb, throughput budget from atmosphere to detector QE, LSST camera 3.2 Gpx data pipeline) + +This proposal defines the engineering domain model, formulas, C++ API, and acceptance criteria for a VDE-native optical telescope and observatory equipment engine. + +--- + +## Detailed Requirements + +### 1. Primary Mirror — Zerodur/ULE Substrate, MRF/IBF Figuring, Segmented Phasing + +**Priority**: P1 + +#### 1.1 Mirror Blank, Deterministic Figuring, and Surface Error Budget + +``` +Primary Mirror overview: + The primary mirror collects and concentrates celestial light, defining the + telescope's light-gathering power (∝D²) and, together with the optical + prescription, its diffraction-limited angular resolution (∝λ/D). Modern + large mirrors use glass-ceramic substrates, deterministic figuring, and, + for >8 m class, active segmented architectures. + + Substrate Material Properties: + Zerodur (Schott AG, lithium aluminosilicate glass-ceramic): + CTE: 0 ± 0.007×10⁻⁶/K (Class 0, expansion class) + Thermal conductivity k: 1.46 W/(m·K) + Specific heat c_p: 821 J/(kg·K) + Young's modulus E: 90.3 GPa + Density ρ: 2,530 kg/m³ + Poisson ratio ν: 0.243 + Knoop hardness: 620 + + ULE (Corning 7972, titania-doped fused silica): + CTE: 0 ± 0.030×10⁻⁶/K (grade-dependent) + Thermal conductivity k: 1.31 W/(m·K) + Specific heat c_p: 767 J/(kg·K) + Young's modulus E: 67.6 GPa + Density ρ: 2,210 kg/m³ + Anneal point: ~1,000°C + + Borosilicate (Pyrex/Duran, for smaller telescopes <4 m): + CTE: 3.25×10⁻⁶/K + Suitable where thermal stabilization is less stringent + + Silicon Carbide (SiC, e.g., Herschel 3.5 m, Gaia, EUCLID): + CTE: 2.2×10⁻⁶/K (but very high k: 170 W/(m·K)) + Density: 3,150 kg/m³ + Excellent for space telescopes with extreme lightweighting + + Mirror Blank Fabrication: + Monolithic (up to ~8.4 m): + Spin-casting (Steward Mirror Lab): borosilicate glass melted in rotating + furnace, centrifugal force creates parabolic meniscus surface + Honeycomb (sandwich) structure: ~80% lightweight, passive thermal control + via internal ventilation, achieves ~200 kg/m² areal density + Examples: LBT 8.4 m (×2), GMT 8.4 m (×7), LSST 8.4 m (M1+M3 in one blank) + + Meniscus (thin shell, 10–20 cm thickness): + Zerodur blank, actively supported by pneumatic/hydraulic force actuators + Examples: VLT 8.2 m (×4, 175 mm thick, ~150 actuators), Subaru 8.2 m + + Segmented (for >8 m class): + Hexagonal segments (typically 1.1–1.5 m flat-to-flat) + Keck: 36 segments, each 1.8 m, 75 mm thick, Zerodur + TMT: 492 segments, each 1.44 m, 45 mm thick, Zerodur + E-ELT: 798 segments, each 1.45 m, 50 mm thick, Zerodur + Segment position control: 3 degrees of freedom (piston, tip, tilt) + via 3 precision actuators per segment + Keck actuators: roller screw + stepper motor, ±1.5 mm stroke, 4 nm resolution + E-ELT/TMT actuators: voice-coil + flexure, ±1 mm stroke, <1 nm resolution + + Grinding and Polishing: + Conventional: loose abrasive grinding (Al₂O₃, SiC) → polishing (CeO₂ slurry + on pitch lap), capable of λ/4–λ/10 surface accuracy + Problem: non-deterministic (depends on lap wear, temperature, operator skill) + Typical time: 12–24 months for 8 m mirror + + Deterministic Figuring: + MRF (Magnetorheological Finishing, QED Technologies): + Magnetically stiffened carbonyl iron + CeO₂/diamond abrasive fluid + Ribbon width ~5–15 mm, removal rate controllable via magnetic field + Sub-nanometer depth resolution, 1 mm spatial resolution + Dwell-time map computed from interferometric error map + Removal function: R(x,y) = dwell_map ⊗ tool_influence_function + Typical convergence: λ/10 → λ/30 in 3–5 iterations, 1–2 weeks + + IBF (Ion Beam Figuring, NTG/Zeiss/IOM): + Focused Ar⁺ ion beam (500–1,500 eV) sputters atoms from SiO₂ surface + Beam FWHM: 0.5–5 mm, removal rate: 0.01–0.5 mm³/h + No mechanical contact → no edge roll-off, no subsurface damage + Vacuum chamber required (mirror must fit inside) + Post-polish only: cannot remove >10 μm (too slow for grinding) + Typical convergence: λ/10 → λ/40 in 2–4 iterations + + Stressed Mirror Polishing (SMP, Keck technique): + Warp circular meniscus blank to desired off-axis asphere via peripheral + bending moments → polish to sphere → release stress → asphere obtained + Enables mass production of identical off-axis segments (Keck 36 segments) + + Surface Error Budget (λ = 633 nm for metrology): + Total RMS wavefront error σ_total = √(Σ σ_i²) + + Primary mirror contribution components: + σ_figure (residual after figuring): 5–15 nm RMS (λ/40–λ/126) + σ_mid_spatial (≈few cm scale, MRF ripple): 3–8 nm RMS + σ_micro_roughness (<1 mm scale, polishing): 1–3 nm RMS (scatter) + σ_edge (roll-off): 5–20 nm RMS (edge 10% of diameter) + σ_thermal (bulk temperature gradient): CTE×ΔT×thickness + For Zerodur, ΔT = 0.01 K uniform: σ_thermal ≈ 0.01×7×10⁻⁹×175mm ≈ negligible + Local gradient δT across face: σ_thermal ≈ CTE×δT×(D/2) + σ_gravity (support force errors): 5–15 nm RMS (zenith to horizon) + σ_wind (dynamic pressure): 5–30 nm RMS (depends on wind speed) + + Surface RMS spec for modern telescopes: + VLT (ZEISS, 1998): 8.2 m, λ/20 at 500 nm → σ <25 nm RMS + Keck (Tinsley/SMP): 1.8 m segments, λ/25 → σ <20 nm RMS (after phasing) + E-ELT segments: λ/30 → σ <21 nm RMS + LSST (Steward/UA): 8.4 m M1+M3, λ/10 → ~50 nm RMS (wide-field survey) + + Segmented Mirror Phasing: + Edge sensors between adjacent segments measure relative displacement: + Capacitive (Keck: 168 sensors, 4 nm resolution, 1 Hz readout) + Inductive (E-ELT/TMT: higher accuracy, immune to dust/humidity) + Measurement: piston (Z) + tip/tilt of gap edges → relative piston + + Phasing algorithms: + Shack-Hartmann phasing: subapertures straddling segment gap detect + diffraction pattern → measure piston error to <50 nm + Dispersed Fringe Sensor (DFS): analyze interference fringes at segment + boundaries dispersed in wavelength → piston to <10 nm (JWST) + Phase retrieval: iterative FFT-based algorithm reconstructs wavefront + from defocused star images (used for JWST on-orbit commissioning) + + Active warping harness (per segment): + 21–30 force actuators on segment rear surface + Corrects low-order aberrations from segment deformation + Force authority: ±100 N per actuator, resolution: 0.01 N + + Thermal Control: + Daytime cooling: cool mirror to ~2K below predicted nighttime T_ambient + Mirror seeing: σ_thermal < λ/50 from air convection above warm mirror + Ventilation: internal honeycomb ventilation (LBT, LSST) or back-side + radiative cooling to cold sky + Coating: protected silver (Ag), enhanced Al (Al+MgF₂/LiF overcoat), + bare Au (for IR), reflectivity >95% at design wavelengths + Al: R ≈ 90% (400–700 nm), protected Al: R ≈ 92%, Ag: R ≈ 97% (400–1000 nm) + Coating lifetime: 2–5 years (aluminizing), 3–5 years (silver) +``` + +#### 1.2 Proposed API + +```cpp +namespace vde::optical_telescope { + +enum class SubstrateMaterial { Zerodur, ULE_Corning, Borosilicate, SiC, FusedSilica, BK7 }; +enum class BlankArchitecture { Monolithic_Meniscus, Monolithic_Honeycomb, Segmented_Hexagonal }; +enum class FiguringMethod { Conventional_PitchLap, MRF_Magnetorheological, IBF_IonBeam, SMP_StressedMirror }; +enum class Coating { ProtectedAluminum, BareAluminum, ProtectedSilver, Gold_IR, Dielectric_BB }; +enum class SegmentSensor { Capacitive, Inductive, Optical_GapSensor }; + +struct SubstrateSpec { + SubstrateMaterial material; + double CTE_1e6_per_K; // zero-expansion class + double thermal_conductivity_WpmK; + double density_kgpm3; + double youngs_modulus_GPa; + double poisson_ratio; + double stress_birefringence_nm_per_cm; + double bubble_inclusion_class; // 0 = bubble-free +}; + +struct MirrorBlankSpec { + double diameter_m; + double central_hole_m; // 0 for monolithic + double edge_thickness_mm; + double center_thickness_mm; + double lightweight_pct; // 0–100 (0 = solid, 80 = honeycomb) + double areal_density_kgpm2; + SubstrateSpec substrate; + BlankArchitecture architecture; + double sagitta_mm; // depth of curve from edge to center + double radius_of_curvature_m; +}; + +struct FiguringSpec { + FiguringMethod method; + double target_surface_rms_nm; + double achieved_surface_rms_nm; + double mid_spatial_rms_nm; + double micro_roughness_rms_nm; + double edge_rolloff_nm; // RMS on outer 10% + int n_iterations; + double total_time_weeks; + double tool_influence_function_FWHM_mm; + double removal_rate_mm3_per_hour; + std::string metrology_method; // CGH, transmission sphere, stitching interferometer + double metrology_accuracy_nm; + double test_wavelength_nm; // typically 632.8 (HeNe) +}; + +struct SurfaceErrorBudget { + double sigma_figure_nm; // residual after figuring + double sigma_mid_spatial_nm; + double sigma_micro_roughness_nm; + double sigma_thermal_nm; + double sigma_gravity_nm; + double sigma_support_nm; + double sigma_wind_nm; + double sigma_mounting_nm; + double sigma_alignment_nm; + double total_rms_nm; // RSS of all components + double strehl_at_visible; // at 550 nm + double strehl_at_Kband; // at 2200 nm +}; + +struct SegmentSpec { + int n_segments; + double flat_to_flat_m; // hexagonal segment size + double segment_thickness_mm; + double inter_segment_gap_mm; + int n_actuators_per_segment; // piston + 2x tip/tilt = 3 + double actuator_stroke_mm; + double actuator_resolution_nm; + SegmentSensor sensor_type; + int n_edge_sensors; + double sensor_resolution_nm; + double sensor_readout_Hz; + int n_warping_actuators; // force actuators for active figure control + double warping_force_N; + double phasing_residual_nm; // post-phasing piston RMS +}; + +struct MirrorCoatingSpec { + Coating type; + double R_400nm; // reflectivity at 400 nm + double R_550nm; + double R_1um; + double R_2um; + double emissivity_IR; // for thermal control + double lifetime_years; + double scattering_TIS; // Total Integrated Scatter + bool overcoat_protective; + std::string overcoat_material; +}; + +struct PrimaryMirrorSpec { + std::string name; + double diameter_m; + double focal_length_m; // effective for RC (primary focal ratio) + double F_number_primary; // f/1.0–f/2.5 typical for large telescopes + BlankArchitecture architecture; + MirrorBlankSpec blank; + FiguringSpec figuring; + SurfaceErrorBudget error_budget; + SegmentSpec segmentation; // applies only if segmented + MirrorCoatingSpec coating; + double mass_kg; + double first_eigenfrequency_Hz; // structural response + bool active_support; + int n_axial_supports; // pneumatic/hydraulic support points + bool active_thermal_control; + double mirror_seeing_arcsec; // contribution to delivered image quality +}; + +struct MirrorState { + double T_bulk_C; + double T_ambient_C; + double delta_T_C; // mirror minus ambient + double zenith_angle_deg; + double surface_rms_measured_nm; + double seeing_contribution_arcsec; + bool phasing_complete; + double residual_piston_nm; +}; + +struct MirrorPerformance { + double delivered_surface_rms_nm; + double effective_strehl; // includes all error sources + double encircled_energy_50; // EE50 in arcsec + double encircled_energy_80; // EE80 in arcsec + double throughput_reflection; + bool meets_wavefront_spec; + bool meets_seeing_budget; +}; + +PrimaryMirrorSpec design_monolithic_mirror(double D_m, double F_number, SubstrateMaterial material, FiguringMethod method, double target_rms_nm); +PrimaryMirrorSpec design_segmented_mirror(double D_m, int n_segments, double seg_flat_to_flat_m, SubstrateMaterial material); +MirrorPerformance simulate_mirror_performance(const PrimaryMirrorSpec& spec, const MirrorState& state, double wavelength_nm); +SurfaceErrorBudget compute_surface_error_budget(const FiguringSpec& fig, double D_m, double thickness_mm, double CTE, double delta_T_K, double zenith_deg); +double calculate_strehl_ratio(double rms_wavefront_nm, double wavelength_nm); +double calculate_ruze_efficiency(double rms_surface_nm, double wavelength_nm); +double calculate_segment_phasingP(double edge_sensor_noise_nm, int n_segments, double control_bw_Hz); + +} // namespace vde::optical_telescope +``` + +--- + +### 2. Optical Design — Refractor, Ritchey-Chrétien, Schmidt, Three-Mirror Anastigmat + +**Priority**: P1 + +#### 2.1 Optical Prescriptions, Aberration Theory, and Image Quality + +``` +Optical Design overview: + The telescope optical design determines the mapping from the entrance pupil + (primary mirror or objective lens) to the focal surface, controlling all + monochromatic and chromatic aberrations while maximizing throughput, field + of view, and delivering specified image quality across the science wavelength + range. + + Fundamental Imaging Parameters: + Entrance pupil diameter D [m] → light-gathering power ∝ D² + Effective focal length f_eff [m] → plate scale + F-number (focal ratio): f/# = f_eff / D + Plate scale: s ["/mm] = 206,265 / f_eff[mm] + Field of View FoV [° or arcmin]: angular extent of focal surface + Etendue (AΩ product): A_tel × Ω_FoV [m²·deg²] + → survey speed metric for wide-field telescopes + + Refractor (Dioptric): + Achromatic doublet (Fraunhofer / Littrow design): + Crown (BK7, n_d≈1.517, ν≈64.2) + Flint (F2, n_d≈1.620, ν≈36.4) + Two wavelengths brought to common focus (C & F lines corrected) + Chromatic focal shift (secondary spectrum): Δf/f ≈ 1/2,000 + Largest achromats: Yerkes 40" (1.02 m, 1897), Lick 36" (0.91 m, 1888) + Practical limit: ~1.2 m (lens sag under gravity, glass homogeneity) + + Apochromatic triplet: + Three elements (e.g., FK51 crown + KzFSN4 + flint) + Three wavelengths corrected (C, e, F lines) → secondary spectrum ~1/8,000 + Also corrects spherical and coma at two wavelengths + + Petzval field curvature: 1/R_p = Σ 1/(n_i×f_i) for thin lenses in contact + → limits wide-field performance without field flattener + + Ritchey-Chrétien (Catoptric, Two-Mirror Aplanat): + Prescription (conic constants): + Primary: concave hyperboloid, K₁ = −1 − 2α/d₁ + Secondary: convex hyperboloid, K₂ = −((m+1)/(m−1))² − 2mα/((m−1)³×d₁) + + Where: + m = magnification of secondary (ratio f_eff / f_primary) + α = back focal distance / f_primary (convenience parameter) + d₁ = separation primary-to-secondary / f_primary + + For classical RC design: + α = 0.3–0.5, m = 5–15, d₁ = 0.8–0.9 + Primary f/1.0–f/2.5, effective f/6–f/20 + + Aberrations: + Spherical aberration: zero by construction (both mirrors conics) + Coma: zero by construction (aplanatic condition) + Astigmatism: residual, linear with field angle + Δz_astig = (θ²/4) × (R_primary/m²) × [(m²−1)/m − α] [mm] + Field curvature: residual from Petzval sum + Distortion: present but not critical for astronomical imaging + + Field correctors: + Two/three-element lens group near focal plane corrects astigmatism + and field curvature over wide FoV + Example: SDSS 2.5 m RC + 4-element corrector → 3° FoV, EE80 < 1.5" + LSST: three-mirror design (modified Paul-Baker) + 3-element refractive + corrector → 3.5° FoV, 0.2" pixel, EE80 < 0.5" + + Nasmyth focus: tertiary flat mirror (45° tilt) directs beam through + elevation axis to fixed Nasmyth platform → heavy instruments stationary + Coudé focus: multiple mirrors route beam to fixed laboratory for high-R + spectrographs (long optical path, heavy bench) + + Schmidt Camera (Catadioptric): + Spherical primary mirror + aspheric corrector plate at center of curvature + Corrects spherical aberration (from corrector) and coma (from symmetry) + No astigmatism or field curvature (by design) + FoV: 5°–10°, diffraction-limited at corrector plate center + Largest: Palomar 48" (1.2 m) Oschin Schmidt, 6°×6° plates + Limitations: curved focal surface (spherical), tube length ~2×f_primary + + Three-Mirror Anastigmat (TMA): + Three powered mirrors (concave + convex + concave typically) + Corrects spherical, coma, astigmatism, and field curvature + Large FoV with diffraction-limited performance + Examples: LSST (modified Paul-Baker, 8.4 m M1+M3 monolith, 3.5° FoV), + JWST (off-axis TMA, 6.5 m segmented, unobscured aperture), + Korsch-type telescopes for earth observation + + Image Quality Metrics: + Strehl Ratio S: + S = exp(−(2πσ_wavefront/λ)²) for small aberrations + S = 1 at diffraction limit (ideal) + S > 0.8: diffraction-limited (Maréchal criterion, σ < λ/14) + S > 0.95: excellent correction, negligible residual aberrations + + Encircled Energy: + EE50: diameter containing 50% of flux from point source [arcsec or μm] + EE80: diameter containing 80% of flux + EE80 < 0.5" → excellent image quality + Determined by integration of point spread function (PSF) = |FT{A(x,y)}|² + + Modulation Transfer Function (MTF): + MTF(f) = |OTF(f)|, optical transfer function at spatial frequency f + Cutoff frequency f_c = D/λ [cycles/radian] + MTF of ideal circular aperture: MTF_ideal(ν) = (2/π)×(cos⁻¹ν − ν√(1−ν²)) + where ν = f/f_c (normalized spatial frequency) + + Vignetting: + Central obstruction ratio ε = D_obsc/D (secondary mirror shadow) + Typical ε = 0.60–0.75 for RC telescopes (secondary + support spiders) + Effects: reduces throughput (∝1−ε²), transfers energy to higher Airy rings + Spider diffraction: cross-shaped spikes from secondary mirror support vanes + + Stray Light Analysis: + Baffling: primary and secondary baffle tubes, Cassegrain hole baffle + Lyot stop: re-images pupil at cold stop inside cryogenic instrument + Stray light suppression: BRDF (Bidirectional Reflectance Distribution + Function) of black coatings, off-axis ghost analysis + Zodiacal light: unavoidable background, ~21.5 mag/arcsec² (V-band) + + AO-Relay Optics: + Re-image telescope pupil onto deformable mirror and wavefront sensor + Pupil demagnification factor, field steering mirrors, atmospheric + dispersion corrector (ADC: pair of counter-rotating Risley prisms) + Throughput: AR coatings at all optical surfaces → total >90% transmission +``` + +#### 2.2 Proposed API + +```cpp +namespace vde::optical_telescope { + +enum class OpticalPrescription { Refractor_Achromat, Refractor_Apochromat, RitcheyChretien, Schmidt_Camera, ThreeMirror_Anastigmat, Korsch_TMA, Gregorian }; +enum class FocusType { PrimeFocus, Cassegrain, Nasmyth, Coude, BentCassegrain }; +enum class CorrectorType { None, TwoElement, ThreeElement, ADC_Risley, WynneCorrectors }; + +struct OpticalGlassSpec { std::string glass_type; double n_d; double V_d; double n_F; double n_C; double partial_dispersion; double CTE_1e6_per_K; double internal_transmission_10mm; }; + +struct RefractorSpec { OpticalPrescription type; double D_mm; double f_eff_mm; int n_elements; OpticalGlassSpec crown; OpticalGlassSpec flint; double chromatic_focus_shift_um; double secondary_spectrum; double field_curvature_mm; }; + +struct RitcheyChretienSpec { + double D_primary_m; double f_primary_m; double F1; + double D_secondary_m; double R_primary_m; double R_secondary_m; + double conic_K1; double conic_K2; double magnification_m; double alpha; + double separation_p_s_m; double back_focal_distance_m; + double f_eff_m; double F_eff; double plate_scale_arcsec_per_mm; + double central_obstruction_ratio; double vignetting_pct; + CorrectorType corrector; int n_corrector_elements; + double field_of_view_arcmin; double polychromatic_EE80_arcsec; +}; + +struct SchmidtCameraSpec { double D_corrector_m; double D_mirror_m; double f_eff_m; double F_number; double corrector_power_profile; double field_of_view_deg; double best_focus_curvature_mm; }; + +struct TMA_Spec { OpticalPrescription type; int n_mirrors; double D_pupil_m; double f_eff_m; double field_of_view_deg; bool unobscured; double wavefront_rms_nm; double EE80_arcsec; }; + +struct OpticalSpec { + OpticalPrescription prescription; + FocusType focus; + RefractorSpec refractor; + RitcheyChretienSpec RC; + SchmidtCameraSpec schmidt; + TMA_Spec tma; + double f_eff_m; double F_number; + double field_of_view_deg; double field_of_view_arcmin; + double plate_scale_arcsec_per_mm; + double back_focal_distance_mm; + double wavelength_min_nm; double wavelength_max_nm; + double design_strehl; double EE80_arcsec; + double throughput_total; double throughput_excl_atmosphere; + int n_optical_surfaces; int n_reflections; + bool has_ADC; +}; + +struct OpticalState { double wavelength_nm; double zenith_angle_deg; double ADC_angle_deg; double temperature_C; double misalignment_nm; }; +struct OpticalPerformance { double actual_strehl; double EE50_arcsec; double EE80_arcsec; double MTF_at_30cpmm; double ellipticity; double scattered_light_pct; bool meets_diffraction_limit; }; + +OpticalSpec design_ritchey_chretien(double D_primary_m, double F_primary, double m, double FoV_arcmin); +OpticalSpec design_schmidt(double D_m, double F_number, double FoV_deg); +OpticalSpec design_tma(double D_pupil_m, double F_number, double FoV_deg, bool unobscured = false); +double calculate_strehl_from_rms(double rms_nm, double wavelength_nm); +double calculate_plate_scale(double f_eff_mm); +double calculate_EE80(const OpticalSpec& opt, double wavelength_nm); +double calculate_vignetting(double epsilon, const std::vector& spider_widths, double D_primary); +OpticalPerformance ray_trace_performance(const OpticalSpec& opt, const OpticalState& state); + +} // namespace vde::optical_telescope +``` + +--- + +### 3. Mount & Drive — Alt-Az Direct Drive, German Equatorial, Pointing & Tracking + +**Priority**: P1 + +#### 3.1 Mount Kinematics, Direct-Drive Torque Motors, and Pointing Model + +``` +Mount and Drive overview: + The telescope mount supports and accurately positions the optical tube assembly + (OTA), tracking celestial objects as the Earth rotates. Modern large telescopes + universally use altitude-azimuth (Alt-Az) mounts with direct-drive motors, + while smaller telescopes (<2 m) often employ equatorial mounts for their + straightforward sidereal tracking (single-axis rotation at constant rate). + + Alt-Az Mount Kinematics: + Azimuth axis: vertical (gravity-aligned), range 0°–360° (or ±270°) + Altitude (elevation) axis: horizontal, range 0° (horizon) to 90° (zenith) + + Coordinate transformation (Horizon → Equatorial): + sin(δ) = sin(φ)×cos(z)×cos(A) + cos(φ)×sin(φ→z)→cos(z) + where (A,z) = (azimuth, zenith distance = 90°−el) + (α,δ) = (RA, Dec), φ = observatory latitude + Convergence at zenith: azimuth rate → ∞ as el → 90° ± ~0.35° + → Zenith blind spot management: constant-elevation offset track + + Field de-rotation: + Parallactic angle η = arctan(sin(HA)/(tan(φ)×cos(δ)−sin(δ)×cos(HA))) + where HA = hour angle, φ = latitude, δ = declination + Instrument rotator: mechanical (K-mirror or instrument rotator bearing) + tracking η at sidereal rate + non-uniform component + Rotator accuracy: <0.1° to maintain PSF symmetry + + German Equatorial Mount: + RA axis: parallel to Earth's rotation axis (adjusted to latitude φ) + Dec axis: perpendicular to RA axis + RA tracking: constant rotation at sidereal rate ω_sid = 15.041"/s + Advantages: no field rotation, no zenith blind spot + Disadvantages: massive counterweight, larger dome, meridian flip required + Typical for <2 m aperture (professional), <0.5 m (amateur imaging) + + Direct-Drive Torque Motor: + Frameless PM synchronous motor, large-diameter hollow shaft + Rotor: permanent magnets (NdFeB) on outer ring + Stator: wound copper coils on inner ring, segmented for manufacturability + + Torque [Nm]: + τ = K_t × I, where K_t = torque constant [Nm/A], I = phase current [A] + Peak torque: 5,000–50,000 Nm (large telescopes) + Continuous torque: ~70% of peak (thermal limit) + + Motor sizing: + τ_required = J_total × α_max + τ_friction + τ_wind + τ_imbalance + J_total: moment of inertia of OTA + yoke + bearings [kg·m²] + α_max: maximum angular acceleration [rad/s²] + τ_friction: bearing friction torque + τ_wind: wind gust torque + τ_imbalance: torque from CG offset + + Control architecture: + Cascaded position-velocity-current loops + Position loop: encoder feedback (optical tape), update rate 100–1,000 Hz + Velocity loop: encoder derivative or tachometer, update rate 1–4 kHz + Current loop: Hall-effect sensors, PWM power stage, update rate 10–20 kHz + Feedforward: computed torque from trajectory generator (model-based) + + Encoder System: + Optical tape encoder (Renishaw RESM, Heidenhain ERA): + Graduated steel/Invar tape with ~20 μm pitch, read by optical head + 26-bit resolution per revolution → 360°/2²⁶ ≈ 0.005" per tick + Subdivision (interpolation): ×1,024–4,096 → 0.001" effective resolution + Multi-head readout: 4–8 heads average out eccentricity error + + Pointing model: + Physical model: 7–15 terms parameterizing telescope flexure + encoder errors + Typical terms: + IE: index error (azimuth encoder zero) + CA: collimation error (non-perpendicularity of axes) + NPAE: non-perpendicularity of elevation to azimuth axis + AN: azimuth axis tilt north + AW: azimuth axis tilt west + TF: tube flexure (∝sin(el)) + TX: miscellaneous harmonic terms + + TPOINT or custom calibration: + Observe 20–50 bright reference stars at diverse (az,el) + Least-squares fit: pointing correction Δ(az,el) = Σ a_i×Φ_i(az,el) + Blind pointing accuracy: 1–3" RMS (after model) + Offset pointing: <0.1" RMS (local differential astrometry) + + Bearings: + Hydrostatic oil-pad bearings (LSST, VLT): + Thin oil film (10–50 μm) separates bearing surfaces at all speeds + Virtually zero static friction (stiction), zero wear, high damping + Requires oil pump system, temperature-controlled oil supply + Load capacity: tens to hundreds of tonnes per bearing + + Rolling-element bearings (preloaded tapered roller or crossed roller): + Angular contact ball bearings, preloaded to eliminate backlash + More compact, simpler maintenance, adequate for <8 m telescopes + Periodic error from bearing race imperfections → encoder correction + + Air bearings (some applications): frictionless but require compressed air + supply, limited stiffness + + Structural Requirements: + First eigenfrequency f₁ > 8–10 Hz (avoid wind excitation at 2–5 Hz, + and servo control loop instability) + OTA stiffness: deflection <0.1" at horizon orientation + Wind rejection: operational up to 15–20 m/s wind speed + Survival: stowed position up to 50–60 m/s (typhoon/hurricane rated) + Seismic: base isolation or damped design for active sites (Chile, Japan, Hawaii) + + Tracking Error Budget: + σ_track_total = √(σ_encoder² + σ_drive² + σ_wind² + σ_flexure² + σ_thermal²) + Open-loop tracking: 0.1–1.0" RMS over 10 minutes + Closed-loop (autoguider): 0.02–0.05" RMS + Guider: separate CCD camera on offset guide star, 1–10 Hz correction +``` + +#### 3.2 Proposed API + +```cpp +namespace vde::optical_telescope { + +enum class MountType { AltAz, GermanEquatorial, EnglishYoke, ForkMount, Hexapod }; +enum class MotorType { DirectDrive_Torque, Geared_Servo, WormGear_Stepper, FrictionDrive }; +enum class BearingType { Hydrostatic_OilPad, RollingElement, AirBearing, Magnetic }; +enum class EncoderType { OpticalTape, Inductive, Interferometric }; + +struct EncoderSpec { + EncoderType type; double resolution_bits; double arcsec_per_tick; + int n_read_heads; double subdivision_factor; + double interpolation_error_arcsec; double absolute_accuracy_arcsec; + std::string manufacturer_model; // e.g., "Renishaw RESM20" +}; + +struct MotorSpec { + MotorType type; double peak_torque_Nm; double continuous_torque_Nm; + double torque_constant_Nm_per_A; double max_current_A; + double max_speed_rpm; double electrical_time_constant_ms; + double mechanical_time_constant_ms; double moment_of_inertia_kgm2; + double pole_pairs; double max_power_kW; +}; + +struct AxisSpec { + MotorSpec motor; EncoderSpec encoder; BearingType bearing; + double moment_of_inertia_kgm2; double max_velocity_deg_per_s; + double max_acceleration_deg_per_s2; double range_deg_min; double range_deg_max; + double track_error_rms_arcsec_open; double track_error_rms_arcsec_closed; + double first_eigenfrequency_Hz; +}; + +struct PointingModelCoeffs { + double IE_arcsec; double CA_arcsec; double NPAE_arcsec; + double AN_arcsec; double AW_arcsec; double TF_arcsec; + std::vector harmonic_coeffs_az; std::vector harmonic_coeffs_el; +}; + +struct MountSpec { + std::string name; MountType type; double OTA_mass_kg; + double moving_mass_kg; double total_mass_kg; + AxisSpec azimuth_axis; AxisSpec altitude_axis; + double azimuth_range_deg; double altitude_range_deg; + double zenith_blind_spot_deg; double slew_speed_deg_per_s; + double slew_and_settle_time_s; PointingModelCoeffs pointing_model; + double blind_pointing_rms_arcsec; double offset_pointing_rms_arcsec; + double tracking_rms_arcsec_60s; double rotator_range_deg; + double rotator_accuracy_arcsec; double wind_operational_mps; + double wind_survival_mps; bool guider_correction; + double guider_update_Hz; double first_eigenfrequency_Hz; +}; + +struct MountState { + double az_deg; double el_deg; double rotator_deg; + double ha_hours; double dec_deg; double parallactic_angle_deg; + double az_error_arcsec; double el_error_arcsec; + double wind_speed_mps; double temperature_C; +}; + +struct MountPerformance { + double pointing_rms_arcsec; double tracking_rms_arcsec; + double rotator_error_arcsec; double settling_time_s; + double wind_jitter_arcsec; bool meets_pointing_spec; bool meets_tracking_spec; +}; + +MountSpec design_altaz_mount(double OTA_mass_kg, double OTA_J_kgm2, double slew_speed_dps, double blind_pointing_arcsec); +MountSpec design_german_equatorial(double OTA_mass_kg, double latitude_deg); +MountState initialize_mount_state(const MountSpec& spec, double latitude_deg); +MountState update_mount_kinematics(const MountSpec& spec, MountState& state, double ra_deg, double dec_deg, double mjd); +MountPerformance simulate_mount_tracking(const MountSpec& spec, MountState& state, double track_duration_s, double wind_gust_mps); +PointingModelCoeffs calibrate_pointing_model(const MountSpec& spec, const std::vector& star_observations); +double calculate_parallactic_angle(double HA_hours, double dec_deg, double lat_deg); +double calculate_zenith_avoidance(double el_deg, double blind_spot_deg, double& az_rate_limit_dps); + +} // namespace vde::optical_telescope +``` + +--- + +### 4. Dome & Enclosure — Thermal Control, Ventilation, Site Selection + +**Priority**: P1 + +#### 4.1 Dome Thermal Modeling, Seeing Analysis, and Site Quality + +``` +Dome and Enclosure overview: + The observatory enclosure must protect the telescope from wind, precipitation, + and solar radiation while minimizing its own contribution to image degradation + through dome seeing, wind buffeting, and vibration. Modern designs emphasize + passive thermal equilibrium with ambient air and low aerodynamic cross-section. + + Dome Seeing Physics: + Mechanism: Temperature difference ΔT = T_dome − T_ambient drives natural + convection, creating turbulent mixing of air with different refractive indices + n = 1 + 7.9×10⁻⁵×(P/T) (P in mbar, T in kelvin) + Refractive index structure function: + D_n(r) = C_N²×r^(2/3) (Kolmogorov turbulence) + + Seeing contribution from dome/surface layer: + θ_dome [rad] ∝ ∫ C_N²(z) dz along line of sight + FWHM_dome [arcsec] ≈ (0.018×λ⁻¹/⁵) × (∫C_N² dz)^(3/5) + where λ in μm, C_N² in m⁻²/³, integration path in m + + Empirical dome seeing model: + FWHM_dome [arcsec] ≈ 0.35×|ΔT|¹·² for typical dome geometry + ΔT = T_dome_skin − T_air_outside + Goal: FWHM_dome < 0.2 arcsec → |ΔT| < 0.5°C + + Dome Design Types: + Classical hemispherical dome (Keck, Subaru, Gemini): + Rotating hemisphere with upward-opening slit + Diameter: 20–30 m for 8–10 m telescopes + Skin: aluminum panels (low thermal inertia, high reflectivity) + Insulation: polyisocyanurate foam, R-value >20 (hr·ft²·°F/BTU) + Active ventilation: flush louvers around circumference, forced air + circulation during daytime + Daytime cooling: chill interior to ~1–2°C below predicted nighttime + ambient temperature, using glycol chiller or ambient air flush + + Co-rotating enclosure (VLT): + Rectangular building rotates with telescope (azimuth axis) + Large ventilation doors at front and sides + Minimal internal volume → less thermal inertia + Wind screens: adjustable louvers protect from direct wind while + allowing thermal exchange + + Carousel (GMT): + Cylindrical rotating enclosure, telescope at center + Wide ventilation apertures, compact footprint + + Calotte (rectractable, some smaller telescopes): + Fully retractable roof → complete thermal equilibrium with ambient + No dome seeing, but no wind protection + + Wind Management: + Operational wind speed: <15–20 m/s (33–45 mph) + Wind loading on telescope structure: + F_wind = ½×ρ_air×C_D×A_projected×v_wind² + C_D ≈ 1.0–1.2 for cylindrical telescope tube + → wind shake ∝ v², contributes to image jitter + + Wind screen: porous mesh (50–70% porosity) reduces wind speed by 40–60% + while maintaining thermal ventilation + Flush louvers: aerodynamic design, minimal turbulence generation when open + + Thermal Control Strategy: + Daytime: + - Cool interior air to T_ambient_predicted_night − (1–2)°C + - Circulate air through heat exchangers (glycol loop) + - Keep dome slit closed, reflective exterior coating (white TiO₂ paint, + solar absorptivity α_s < 0.3) + + Sunset transition: + - Open dome slit at sunset + - Equalize interior temperature to ambient within ~30 minutes + - Start forced ventilation if |ΔT| > 0.3°C + + Nighttime: + - Maintain slight negative pressure (exhaust fans) to prevent warm air + accumulation at dome apex + - Floor cooling: chilled-water loop in telescope pier floor + - Heat sources minimized: electronics in separate rooms, LED lighting only + when necessary, personnel in control room (separate building) + + Site Selection Criteria: + Atmospheric seeing: + Free-atmosphere seeing: 0.2–0.5" FWHM at 500 nm, at zenith + Boundary layer contribution: 0.1–0.4" (site-dependent) + Median delivered image quality: 0.4–0.8" FWHM + + Precipitable Water Vapor (PWV): + Critical for IR observations (telluric H₂O absorption bands) + PWV < 1 mm: excellent IR site (ALMA site, Antarctic Plateau) + PWV < 2.5 mm: good for NIR (Maunakea, Paranal) + PWV < 10 mm: adequate for optical only + + Cloud cover: + Photometric (>95% clear): ~60–75% of nights (Maunakea, Atacama) + Spectroscopic (thin cirrus acceptable): ~75–85% of nights + + Light pollution: + Sky brightness at zenith: <21.5 mag/arcsec² (V-band, natural) + Artificial contribution: <0.1 mag (dark site) + Growth rate: ~2–6% per year (global average) + + Other factors: + Altitude: 2,000–5,000 m (above inversion layer for laminar airflow) + Wind pattern: laminar flow preferred, avoid mountain wave turbulence + Seismic activity: 1/(2τ₀), typically 500–2,000 Hz + + Isoplanatic angle θ₀: + θ₀ = [2.91×(2π/λ)²×sec(z)^(8/3)×∫C_N²(h)×h^(5/3)dh]^(−3/5) + Typical θ₀: 2–5" at 500 nm, 10–25" at 2.2 μm + → limits the angular distance over which AO correction remains valid + + Shack-Hartmann Wavefront Sensor: + Principle: + Microlens array (typically square, f ≈ 5–20 mm, pitch 100–500 μm) + placed at re-imaged telescope pupil + Each subaperture forms a spot on the detector (CCD/CMOS) + Centroid displacement (Δx, Δy) ∝ local wavefront gradient + ∇φ_x(x,y) = Δx / f_lens, ∇φ_y(x,y) = Δy / f_lens + + WFS parameters: + N_sub × N_sub subapertures across pupil diameter + N_sub = D/r₀ (matching subaperture to r₀) + Example: 8 m telescope, r₀(500nm) = 0.15 m → N_sub ≈ 53×53 + Each subaperture: ~4–8 pixels for centroiding + + Centroiding algorithms: + Center of gravity (CoG): ẑ = Σx_i×I_i / ΣI_i + → biased by read noise, background, and finite aperture + Thresholded CoG: I_thresh = I − noise_threshold + Correlation (matched filter): cross-correlate subaperture image + with reference image → robust in low SNR, extended objects + Quad-cell: 4 pixels/subap, fast but limited dynamic range + → Δx = (I_A+I_B−I_C−I_D)/(I_A+I_B+I_C+I_D) for x-direction + + Measurement noise (photon + read noise): + σ_centroid [rad²] ≈ (π²×σ_read²)/(2×ln2×N_ph²×N_sub²) + (π²)/(4×ln2×N_ph×N_sub) + where N_ph = photons per subaperture per frame + σ_read = detector read noise [e⁻ rms] + + WFS detector: sCMOS (sub-electron read noise, >1000 fps, >90% QE) + or EMCCD (electron-multiplying, sub-electron effective noise) + + Wavefront Reconstruction: + Modal reconstruction: + φ(x,y) = Σ a_k×Z_k(x,y) where Z_k are Zernike polynomials + Gradient measurements: g = D×a + noise (D = interaction matrix) + Least-squares solution: â = (Dᵀ×W×D)⁻¹×Dᵀ×W×g + where W is weighting matrix (flux per subaperture) + + Zernike polynomials (Noll indexing): + Z₁ = piston; Z₂,Z₃ = tip, tilt; Z₄ = defocus; Z₅,Z₆ = astigmatisms; + Z₇,Z₈ = comas; Z₉,Z₁₀ = trefoils; Z₁₁ = spherical; ... + Residual wavefront error after correcting N Zernike modes: + σ²_residual = 0.2944×N_modes^(-√3/2)×(D/r₀)^(5/3) [rad²] at λ + + Zonal (direct) reconstruction: + Each actuator voltage directly proportional to local phase gradient + Faster, simpler, but less optimal modal correction + + Deformable Mirror (DM): + Piezoelectric (PZT) stack actuator DM: + Glass facesheet (0.3–1.0 mm thick) bonded to PZT actuator array + Actuator count: 97–4,092 (10×10 to 64×64 square) + Stroke: ±2–5 μm mechanical (±4–10 μm wavefront) + Hysteresis: 5–15% (closed-loop correction required) + Influence function: Gaussian-like, coupling to neighbors + w_ij ≈ exp(−r_ij²/(2×d_interact²)) where d_interact ≈ actuator pitch + + Voice-coil DM (ALPAO, Physik Instrumente): + Magnetic force actuation, no hysteresis, larger stroke (±10–50 μm) + Lower force density → fewer actuators typically + + MEMS (Micro-Electro-Mechanical Systems) DM: + Silicon micromachined membrane, electrostatic actuation + Very high actuator density (up to 4,096), compact, low cost + Limited stroke (1–4 μm), temperature-sensitive + + Tip-Tilt Mirror (TTM): + Fast steering mirror, 2-axis, corrects global image motion + Bandwidth: 50–200 Hz closed-loop, stroke: ±1–5 mrad + + Laser Guide Star (LGS): + Sodium LGS (589.159 nm, D₂ line): + Excitation of mesospheric Na layer at ~90–95 km altitude + Laser: 589 nm CW, 10–25 W, linewidth <5 MHz (sodium D₂a line) + Technologies: sum-frequency mixing (1,064+1,319 nm→589 nm), + Raman fiber amplifier, optically-pumped semiconductor laser + Return flux: Φ_return ∝ P_laser×C_Na×σ_Na / (spot_area) + Typical: 2×10⁶ photons/s/m² at telescope pupil (20 W, r₀=0.15 m at 500 nm) + Spot elongation: LGS is an extended cylinder, not point source: + Elongation = L_Na_layer×θ_subap / (H_Na×θ_pixel) + L ~10 km layer thickness → spot may span 2–5" at telescope pupil + Mitigation: dynamic refocusing, elongated matched filter centroiding + Cone effect (focal anisoplanatism): LGS at finite range misses + turbulence above Na layer → tip-tilt indeterminacy + Solution: tip-tilt from natural guide star (NGS) in addition to LGS + + Rayleigh LGS: + Atmospheric molecular scattering at 10–20 km (UV laser, 351/355 nm) + Lower altitude → stronger cone effect → mostly used for MCAO ground layer + Pulsed laser with range gating + + Multi-Conjugate AO (MCAO): + Tomographic reconstruction of turbulence volume: + Multiple WFS (3–6 LGS + 1–3 NGS) probe different lines of sight + Tomographic matrix M: φ_volume = M⁺×s (sensor measurements) + DMs conjugated to specific altitudes (e.g., 0 km, 4.5 km, 9 km) + Corrected FOV: 1–3 arcmin (vs. 10–30" for SCAO) + + Example systems: + GeMS (Gemini South): 5 LGS (50 W total), 3 DMs (0/4.5/9 km), + uniform 0.08" FWHM over 2'×2' FOV at K-band + MAD (VLT demonstrator): 2 DMs (0/8.5 km), 3 NGS, 2' FOV + MAORY (E-ELT): 6 LGS + 3 NGS, 2 DMs, 1' FOV, + SCAO mode for high-contrast imaging + + Extreme AO (ExAO): + >3,000 DM actuators, >2 kHz WFS frame rate + Goal: Strehl >0.9 in H/K-band for high-contrast exoplanet imaging + Coronagraph: Lyot, Apodized Pupil Lyot, Vortex coronagraph + Speckle suppression: differential imaging (ADI, SDI, PDI) + Contrast: 10⁻⁶ to 10⁻⁸ at 0.1–0.5" separation + Examples: GPI (Gemini Planet Imager), SPHERE (VLT), SCExAO (Subaru) + + AO Performance Metrics: + Strehl Ratio S: + S = exp(−σ²_residual) (Marechal approximation) + σ²_residual = σ²_fitting + σ²_bandwidth + σ²_photon + σ²_anisoplanatism + σ²_calib + σ²_fitting = a_F×(d/r₀)^(5/3) (fitting error, a_F≈0.23–0.35) + where d = D/N_actuator (actuator spacing) + σ²_bandwidth = (τ_sys/τ₀)^(5/3) (temporal error) + where τ_sys = WFS integration + RTC latency + Closed-loop bandwidth f_3dB ≈ 1/(10×τ_sys) + Tip-tilt residual: σ_TT² ≈ (f_TT/f_3dB)²×θ_TT_turb² +``` + +#### 5.2 Proposed API + +```cpp +namespace vde::optical_telescope { + +enum class DM_Type { PZT_Stack, VoiceCoil, MEMS_Electrostatic, Bimorph }; +enum class WFS_Type { ShackHartmann, Pyramid, CurvatureSensor, Interferometer_Zernike }; +enum class LGS_Type { Sodium_D2_589nm, Rayleigh_351nm }; +enum class AOMode { SCAO_SingleConjugate, MCAO_MultiConjugate, GLAO_GroundLayer, ExAO_HighContrast }; +enum class CentroidAlg { CoG, ThresholdedCoG, Correlation_MatchedFilter, QuadCell, WeightedCoG }; + +struct AtmosphereSpec { + double r0_500nm_m; double r0_2um_m; + double tau0_500nm_ms; double theta0_500nm_arcsec; + std::vector Cn2_profile; std::vector altitude_km; + std::vector wind_speed_mps; std::vector wind_dir_deg; + double boundary_layer_height_m; double ground_CN2; +}; + +struct ShackHartmannSpec { + WFS_Type type; int N_sub; double subap_pitch_um; + double lenslet_f_mm; double f_ratio; + int pixels_per_subap; double frame_rate_Hz; + double read_noise_e; double QE_pct; + CentroidAlg centroid_method; double dynamic_range_lambda; + double linearity_error_pct; std::string detector_type; + double fill_factor_pct; +}; + +struct DeformableMirrorSpec { + DM_Type type; int N_actuators_total; int N_actuators_across; + double actuator_pitch_mm; double stroke_um; double resolution_nm; + double hysteresis_pct; double influence_function_FWHM_mm; + double first_resonance_Hz; double pupil_diameter_mm; + double facesheet_thickness_um; bool tip_tilt_mount; + double surface_rms_nm; int dead_actuators_max; +}; + +struct TipTiltMirrorSpec { + double stroke_mrad; double resolution_urad; + double closed_loop_bw_Hz; double first_resonance_Hz; + double mirror_diameter_mm; double coating; +}; + +struct LaserGuideStarSpec { + LGS_Type type; double wavelength_nm; double power_W; + double linewidth_MHz; double beam_quality_M2; + double launch_telescope_diameter_mm; double launch_location; // 0=behind secondary, 1=side + double return_flux_ph_per_s_per_m2; int n_lgs; + double projected_altitude_km; double spot_elongation_arcsec; + double cone_effect_rms_nm; +}; + +struct RTControlSpec { + int N_actuators; int N_wfs_slopes; + double loop_rate_kHz; double total_latency_us; + double matrix_compute_us; std::string hardware_platform; + double computational_load_GFLOPS; +}; + +struct AOSpec { + AOMode mode; std::string name; + double telescope_D_m; double wavelength_um; + ShackHartmannSpec wfs; DeformableMirrorSpec dm; + TipTiltMirrorSpec ttm; LaserGuideStarSpec lgs; + RTControlSpec rtc; AtmosphereSpec atmosphere; + int n_DMs; std::vector DM_conjugate_altitudes_km; + int n_wfs; int n_ngs_for_tiptilt; + double target_strehl; double corrected_fov_arcsec; + double contrast_at_200mas; +}; + +struct AOState { double r0_current_m; double tau0_current_ms; double seeing_arcsec; double loop_rate_Hz; int n_active_subaps; int n_active_actuators; double dm_voltage_rms; }; +struct AOPerformance { double achieved_strehl; double residual_wfe_nm_rms; double EE50_mas; double EE80_mas; double fwhm_arcsec; double contrast_5sigma; bool meets_strehl_target; }; + +AOSpec design_scao(double D_m, double wavelength_um, int N_act, const AtmosphereSpec& atm); +AOSpec design_mcao(double D_m, double wavelength_um, int n_DMs, const std::vector& heights_km, int n_lgs); +double calculate_residual_wavefront_error(const AOSpec& ao, const AtmosphereSpec& atm, double star_mag); +double estimate_strehl_from_ao_residuals(double sigma_fit_rad2, double sigma_temp_rad2, double sigma_noise_rad2); +double calculate_centroid_noise(double n_ph_per_subap, double read_noise_e, int n_pix, double bg_e); +int optimize_N_actuators(double D_m, double r0_m, double target_strehl); + +} // namespace vde::optical_telescope +``` + +--- + +### 6. CCD & IR Detectors — Deep-Depletion CCD, HgCdTe HAWAII, sCMOS, Cryostat + +**Priority**: P1 + +#### 6.1 Detector Physics, Noise Budget, and Focal Plane Architecture + +``` +CCD and IR Detectors overview: + Detectors convert collected photons to measurable electrical signals, defining + the ultimate sensitivity, dynamic range, and spatial sampling of the telescope. + Visible detectors use silicon CCD or CMOS technology; IR detectors use narrow- + bandgap HgCdTe photodiodes hybridized to silicon readout multiplexers. + + CCD (Charge-Coupled Device) Fundamentals: + Architecture: + MOS capacitor array on p-type Si, buried channel for CTE + Photon absorption creates e⁻-h⁺ pairs, electrons collected in potential wells + Serial charge transfer (vertical → horizontal register → output amplifier) + + Depletion Depth: + Front-illuminated (FI): poly-Si gate electrodes absorb blue light + → QE <50% below 400 nm, peak QE ~50% at 700 nm + Back-illuminated (BI): thinned to 10–15 μm, light enters rear surface + → QE >90% at 400–700 nm, AR coated, UV-sensitive with delta-doping + Deep-depletion (DD): 200–300 μm thick, high resistivity (>5 kΩ·cm), + fully depleted by substrate bias voltage (40–80 V) + → QE >90% at 800–1000 nm, reduced fringing in NIR + + Quantum Efficiency QE(λ): + QE(λ) = (1−R(λ))×[1−exp(−α(λ)×t_depletion)]×η_collection + R(λ): surface reflectivity (AR coating optimization) + α(λ): Si absorption coefficient, strong λ-dependence + α(400nm) ≈ 5×10⁴ cm⁻¹, α(700nm) ≈ 2×10³ cm⁻¹, α(1000nm) ≈ 0.1 cm⁻¹ + t_depletion: depletion depth + η_collection: charge collection efficiency (~98–99.9% for deep depletion) + + Pixel Structure: + Pixel pitch: 10–15 μm (astronomical), 5.6–9 μm (consumer) + Full well capacity: 50,000–200,000 e⁻ (depends on pixel area and voltage) + Charge transfer efficiency (CTE): >0.99999 per transfer + → CTE loss in large arrays limits readout speed + Blooming: charge overflow from saturated pixels into neighbors + → anti-blooming drains (optional, reduce fill factor) + + Readout: + Correlated Double Sampling (CDS): + Sample 1: reset level (bias + kTC noise) + Sample 2: signal level (reset + accumulated charge) + Output = V₂ − V₁ → removes reset (kTC) noise + Read noise σ_read: 1.5–5 e⁻ RMS (slow readout, 100–500 kpix/s) + Gain g [e⁻/ADU], conversion factor + Nonlinearity: <1% over full well + + Dark current I_dark: + Thermal generation of e⁻-h⁺ pairs in depletion region + I_dark ∝ exp(−E_g/(2k_B×T)) (E_g = 1.12 eV for Si) + At 173 K (−100°C): 0.1–1 e⁻/pix/hr (astronomical) + At 300 K: ~100 e⁻/pix/s (unusable) + → deep cooling essential for long exposures + + Noise Budget (per pixel, per exposure): + σ²_total = σ²_photon + σ²_read + σ²_dark + σ²_sky + Photon (shot) noise: σ_photon² = N_obj + N_sky + N_dark [e⁻²] + Read noise: σ_read² [e⁻²] + Dark: σ_dark² = I_dark×t_exp [e⁻²] + Sky background: σ_sky² = μ_sky×A_pix×Ω_pix×QE×t_exp [e⁻²] + Dynamic range: DR = 20×log₁₀(FWC/σ_read) [dB] + + HgCdTe (HAWAII) IR Arrays: + Material: Hg₁₋ₓCdₓTe, tunable bandgap via x composition + x = 0.22: λ_cutoff = 2.5 μm (K-band), x = 0.3: λ_cutoff = 5.3 μm (M-band) + + Architecture (Hybrid CMOS): + Photodiode array in HgCdTe layer (p-on-n or n-on-p) + Indium bump-bonded to Si CMOS ROIC (ReadOut Integrated Circuit) + Source-follower per detector (SFD) or CTIA (Capacitive Trans-Impedance Amplifier) + Multiplexer: row/column addressing, 1/4/32 output channels + + HAWAII-2RG: 2,048×2,048 pixels, 18 μm pitch + λ_c = 0.5–5.3 μm (selectable), QE >80% (1.0–2.3 μm) + Read noise: <5 e⁻ CDS (SFD mode), <15 e⁻ CDS (fast mode) + Dark current: <0.005 e⁻/s at 77 K + Well capacity: ~80,000–100,000 e⁻ (SFD mode) + Reference pixels: 4 rows/cols around perimeter for common-mode rejection + + HAWAII-4RG: 4,096×4,096 pixels, 15 μm pitch + 64 output channels, 5 MHz/pixel readout rate + Read noise: <4.5 e⁻ CDS at 100 kpix/s + + Persistence/Latency: + Residual signal from previous bright exposures + Mechanism: charge trapping in defects, slow release over minutes to hours + Amplitude: 0.1–1% of previous signal, depends on illumination history + Mitigation: pre-flash reset, dark time between exposures, persistence model + + Cryogenic Operation: + Liquid nitrogen (LN2) dewar: 77 K, hold time 8–24 hours + Closed-cycle cryocooler: CTI/Sumitomo GM or pulse-tube, 40–80 K + Temperature stability: <±0.01 K (precision photometry) + Cold stop (Lyot stop): re-imaged pupil at detector plane + → blocks thermal background outside science FOV + Cryogenic pre-amplifier: JFET source follower at 77–120 K, + minimizes input-referred noise + + sCMOS (Scientific CMOS) for AO Wavefront Sensing: + Advantages over CCD: + Parallel readout (column-parallel ADC) → >100× faster + Region-of-interest (ROI) readout → custom subaperture mapping + Sub-electron read noise: 0.7–1.5 e⁻ at 500–1,000 fps + Rolling and global shutter modes + + Key specs: + Pixel: 6.5–11 μm, 512×512 to 2,048×2,048 + QE: >85% (VIS), >60% (NUV) + Full well: 10,000–30,000 e⁻ + Frame rate: >1,000 fps (full frame), >5,000 fps (ROI) + Dark current: <0.15 e⁻/pix/s at −20°C (thermoelectric cooling) + + Focal Plane Assembly: + Mosaic: N×M detector arrays tiled to fill focal surface + LSST: 21 "rafts" × 9 CCDs/raft = 189 CCDs, 3.2 Gpix + Gap loss: typically <5% fill factor loss from inter-CCD gaps + Flatness: <10 μm peak-to-valley across focal plane + Cryostat: vacuum vessel with cold radiation shield, MLI + Readout electronics: cryogenic flex cables, vacuum feedthroughs, + FPGA-based clock/bias generation and ADC boards + + Detector Calibration: + Flat field: QE pixel-to-pixel variation (1–3%), corrected by dome/sky flats + Bias/dark frames: subtract electronic offset and thermal signal + Gain measurement: photon transfer curve (PTC) + Variance vs. mean signal → slope = 1/gain [ADU/e⁻] + Linearity: deviation from linear <1% over 90% of full well + Charge persistence: model from bright-star calibration + Cosmetics: bad pixels, hot pixels, traps → mask or interpolate +``` + +#### 6.2 Proposed API + +```cpp +namespace vde::optical_telescope { + +enum class DetectorType { CCD_BI, CCD_DD, CCD_FI, HgCdTe_HAWAII, sCMOS, EMCCD, MKID }; +enum class ARCoating { Broadband_AR, UV_AR, IR_optimized, DualBand, SingleLayer_MgF2 }; +enum class ReadoutMode { Slow_CDS, Fast_CDS, NonDestructive_SFD, RollingShutter, GlobalShutter }; +enum class CryoMethod { LN2_Dewar, ClosedCycle_GM, ClosedCycle_PulseTube, Peltier_TEC }; + +struct CCD_Spec { + DetectorType type; int Nx; int Ny; double pixel_um; + std::string model; double depletion_depth_um; + double resistivity_ohm_cm; double substrate_bias_V; + ARCoating ar_coating; double fill_factor_pct; + double QE_400nm; double QE_550nm; double QE_700nm; double QE_900nm; + double full_well_ke; double gain_e_per_ADU; + double read_noise_e_rms; double readout_rate_kpix_per_s; + double dark_current_e_per_pix_per_hr; double dark_current_temp_K; + double CTE_per_transfer; int n_output_amps; + double nonlinearity_pct; double charge_diffusion_um; +}; + +struct HAWAII_Spec { + DetectorType type; int Nx; int Ny; double pixel_um; + double cutoff_wavelength_um; double Cd_composition_x; + std::string roic_model; int n_outputs; + double QE_Jband; double QE_Hband; double QE_Kband; + double read_noise_SFD_e; double read_noise_CDS_e; + double dark_current_e_per_s; double dark_temp_K; + double well_depth_ke; double gain_e_per_ADU; + double persistence_1s_pct; double persistence_60s_pct; + double interpixel_capacitance_pct; double ipc_nearest; + int n_reference_pixels; double operability_pct; +}; + +struct sCMOS_Spec { + DetectorType type; int Nx; int Ny; double pixel_um; + double QE_500nm; double QE_800nm; + double read_noise_e_rms; double frame_rate_fps; + double full_well_ke; bool roi_readout; + double dark_current_e_per_s; double dark_temp_C; + double shutter_efficiency; double latency_us; +}; + +struct CryostatSpec { + CryoMethod method; double cold_surface_temp_K; + double detector_temp_K; double temp_stability_mK; + double hold_time_hours; double cooldown_time_hours; + double vacuum_mbar; int mli_layers; + bool cold_stop; double cold_stop_emissivity; + double heat_load_W; double cooler_capacity_W; +}; + +struct FocalPlaneSpec { + int N_detectors; int mosaic_rows; int mosaic_cols; + double inter_detector_gap_mm; double flatness_um; + double total_pixels; double total_Mpix; + double physical_size_mm; double field_of_view_deg; + double readout_time_s; double total_data_rate_GBps; +}; + +struct DetectorSpec { + std::string name; DetectorType type; + CCD_Spec ccd; HAWAII_Spec hawaii; sCMOS_Spec scmos; + CryostatSpec cryostat; FocalPlaneSpec focal_plane; + double system_QE; double system_read_noise; + double saturation_mag; double limiting_mag_1hr_5sigma; + double pixel_scale_arcsec_per_pix; bool nyquist_sampled; +}; + +struct DetectorState { double T_detector_K; double T_cryostat_K; double bias_voltage_V; double exp_time_s; double mean_signal_e; int n_saturated_pix; double current_dark_e_per_s; }; +struct DetectorPerformance { double actual_read_noise_e; double actual_gain; double actual_QE; double limiting_mag; double dynamic_range_dB; double cosmestic_pct; double persistence_artifacts_pct; bool meets_noise_spec; }; + +DetectorSpec design_ccd_camera(int Nx, int Ny, double pixel_um, DetectorType type, double target_read_noise_e); +DetectorSpec design_hawaii_ir_camera(int Nx, int Ny, double lambda_cutoff_um, double operating_temp_K); +sCMOS_Spec design_scmos_wfs(unsigned Nx, unsigned Ny, double frame_rate_fps, double target_noise_e); +double calculate_system_sensitivity(const DetectorSpec& det, double mag, double exp_time_s, double sky_brightness, double telescope_area_m2); +double calculate_limiting_magnitude(const DetectorSpec& det, double snr_thresh, double exp_time_s); +double calculate_read_noise_vs_rate(double pixel_rate_kHz, DetectorType type); +double calculate_dark_current(double temperature_K, double bandgap_eV, double dark_at_ref_K); + +} // namespace vde::optical_telescope +``` + +--- + +### 7. Spectrograph & Instruments — Long-Slit, Echelle, IFU, MOS, LSST Camera + +**Priority**: P1 + +#### 7.1 Spectroscopic Principles, Radial Velocity Precision, and Survey Instruments + +``` +Spectrograph and Instruments overview: + Spectrographs disperse light into its constituent wavelengths, enabling + astrophysical diagnostics: radial velocity (Doppler shift), chemical abundances + (equivalent widths of absorption/emission lines), redshift (cosmological), + and kinematics (line profile broadening and asymmetries). + + Grating Equation: + m×λ = d×(sinα + sinβ) + m: diffraction order (integer), d: groove spacing, α: incident angle, β: diffraction angle + Angular dispersion: dβ/dλ = m/(d×cosβ) + Linear dispersion: dλ/dx = d×cosβ/(m×f_cam) [nm/mm] + where f_cam = camera focal length + + Spectral Resolution: + R = λ/Δλ (dimensionless) + Δλ = slit_width × (dλ/dx) (for slit-limited case) + Also limited by: pixel sampling (Nyquist: Δλ_pixel = (dλ/dx)×pixel_pitch) + anamorphic magnification, optical aberrations + Low resolution: R = 500–2,000 (galaxy classification, redshift surveys) + Medium: R = 2,000–10,000 (stellar populations, abundances) + High: R = 20,000–150,000 (exoplanet RV, ISM, stellar atmospheres) + + Echelle Spectrograph: + R2/R3/R4 echelle grating (tanθ_blaze = 2/3/4) + Used in high order m = 30–150, quasi-Littrow configuration + Resolution: R ≈ (2×tanθ_blaze×d_collimator)/(slit_width) + Cross-disperser: prism or grating orthogonal to dispersion + → 2D format on detector, typically 50–80 orders + Free spectral range (FSR): Δλ_FSR = λ/m + Order overlap: solved by cross-dispersion + + Echelle efficiency: peak >70% at blaze wavelength + Blaze function: sinc² behavior, peaks when β = −α (Littrow) + Groove density: 23.2 g/mm (R2), 31.6 (R3), 41.6 (R4), 79 (R6) + + Examples: + HARPS (ESO 3.6 m): R = 115,000, 380–690 nm, 2 fibers, vacuum, ±0.001 K + RV precision: <1 m/s short-term, <0.5 m/s long-term + ESPRESSO (VLT): R = 140,000/190,000, 380–788 nm, 4 UT simultaneous + RV precision: <0.1 m/s goal, 10 cm/s demonstrated on sky + HIRES (Keck): R = 37,000–85,000, 300–1,100 nm, 3 CCD mosaic + UVES (VLT): R = 40,000–110,000, 300–1,100 nm, dual-arm (blue+red) + + Radial Velocity Precision: + Doppler formula: Δv/c = Δλ/λ → Δv ≈ c/R (at SNR→∞ for single line) + Practical RV error: + σ_RV ∝ (FWHM_line)/(SNR × √(N_lines) × √(N_pix_per_line)) + Example: R = 100,000, SNR = 200, 500 lines → σ_RV ≈ 0.3–0.5 m/s + + Wavelength Calibration: + Th-Ar hollow cathode lamp: rich line forest, but blends at high R + Iodine (I₂) cell: superimposed absorption spectrum, 500–620 nm + Laser Frequency Comb (LFC, astro-comb): + Mode-locked femtosecond laser → comb of equally-spaced lines + Spacing: 10–50 GHz (0.02–0.1 nm at 500 nm) + Filtered to match spectrograph resolution + Absolute accuracy: <1 cm/s (<0.003 m/s) + Examples: HARPS-N LFC, ESPRESSO LFC, EXPRES LFC + + RV drift sources (mitigated): + Pressure variations → vacuum enclosure (<10⁻³ mbar) + Temperature → <±0.001 K stabilization + Mechanical flexure → optical bench on invar or carbon fiber + Detector CTE/charge diffusion → calibration lamp simultaneous exposure + Telluric contamination → micro-telluric correction or avoidance + + Integral Field Unit (IFU): + Lenslet array IFU: + Microlens array (hexagonal packing) at focal plane + Each lens feeds a fiber → pseudoslit at spectrograph entrance + Spatial sampling: 0.025–0.2"/lenslet + FOV: 3"×3" to 1'×1', 1,000–10,000 spatial elements (spaxels) + + Image slicer IFU: + Stack of thin mirrors at different tilt angles + Reformat 2D field into 1D slit, higher throughput than fibers + Examples: NIRSpec IFU (JWST), MUSE (VLT), KMOS (VLT, 24 arms) + + MUSE (VLT, Multi-Unit Spectroscopic Explorer): + 24 IFU modules, each 1'×1' → total 1'×1' contiguous + R = 2,000 (blue), 3,500 (red), 480–930 nm + 90,000 spaxels total, 0.2"/spaxel + FoV: 1'×1' in single pointing, wide-field mode via mosaicking + + Multi-Object Spectrograph (MOS): + Fiber positioner: + Robotic positioners (Echidna, Cobra, Theta-Phi) + Each fiber patrols a circular patrol area (θ × focal length) + Accuracy: <5 μm at focal plane, <0.1" on sky + Configuration time: <5 minutes for full reconfiguration + + Slit mask (focal plane aperture mask): + Laser-cut metal plate with slits at target positions + Higher throughput (no fiber losses), but requires mask exchange + Example: DEIMOS (Keck), MOSFIRE (Keck), FORS2 (VLT) + + DESI (Dark Energy Spectroscopic Instrument, KPNO 4 m): + 5,000 robotically positioned fibers, 3° diameter FoV + 10 fiber-positioning robots (Cobra), each positioning 500 fibers + Spectrographs: 10 units × 3 cameras, R = 2,000–5,000, 360–980 nm + Survey: 35 million galaxies+quasars over 5 years + + LSST Camera (Vera C. Rubin Observatory): + World's largest digital camera, purpose-built for 10-year survey + 3.2 gigapixel focal plane: 189 × 4,096×4,096 CCDs (e2v CCD290-99) + Pixel: 10 μm → 0.2"/pixel (Nyquist sampled at 0.6" seeing) + FoV: 3.5° diameter, AΩtendue: 319 m²·deg² (unprecedented) + Filters: u(354nm), g(477nm), r(623nm), i(762nm), z(913nm), y(997nm) + Auto-changer mechanism, <2 min filter change + Readout: 2 seconds (all 189 CCDs in parallel), 16-bit digitization + Data rate: ~20 TB/night, processed within 60 seconds of exposure + Cryostat: −100°C, LN2+closed-cycle hybrid + Survey: 37 billion stars + galaxies, 10 million alerts/night + + Throughput Budget: + Total system efficiency η(λ) = Π η_i(λ): + η_atm(λ): atmospheric transmission (zenith), 0.7–0.98 (depends on λ and PWV) + η_telescope(λ): mirror reflectivity^n × obscuration, 0.6–0.9 + η_corrector/instrument(λ): AR coatings, 0.8–0.95 + η_filter(λ): bandpass transmission, 0.85–0.98 + η_slit(λ): slit losses (pointing, seeing), 0.5–0.99 + η_grating(λ): grating blaze efficiency, 0.5–0.8 + η_QE(λ): detector quantum efficiency, 0.3–0.95 + Total η: 0.05–0.40 (wavelength-dependent) + + Limiting magnitude: + m_lim = m_zeropoint + 2.5×log₁₀(SNR × √(A_tel×t_exp) / σ_limit) + where σ_limit includes sky, read noise, dark current + + Data Pipeline Requirements: + Bias/dark/flat field correction + Bad pixel interpolation + Cosmic ray rejection (LA Cosmic algorithm, multi-exposure) + Wavelength calibration (2D → 1D extraction) + Sky subtraction (aperture or optimal extraction) + Flux calibration (spectrophotometric standard stars) + Telluric correction (standard star or model) + Radial velocity extraction (cross-correlation or forward modeling) +``` + +#### 7.2 Proposed API + +```cpp +namespace vde::optical_telescope { + +enum class SpecType { LongSlit, Echelle_CrossDispersed, IFU_Lenslet, IFU_Slicer, MOS_Fiber, MOS_SlitMask, ImagingCamera }; +enum class GratingType { Ruled_Reflection, Echelle_R2, Echelle_R3, Echelle_R4, VPH_VolumePhase, Grism }; +enum class CrossDisperser { Prism_FusedSilica, Grating_LowOrder, VPH_CrossDisperser }; +enum class CalibrationSource { ThAr_HollowCathode, Iodine_Cell, LaserFreqComb, FabryPerot_Etalon, FlatField_Quartz }; +enum class FiberType { StepIndex_Multimode, GradedIndex, PhotonicCrystal, SingleMode_Octagonal }; + +struct GratingSpec { + GratingType type; double groove_density_gpmm; + double blaze_angle_deg; double m_order; + double efficiency_peak_pct; double efficiency_bandpass_pct; + double ruled_area_mm; double substrate_material; +}; + +struct SlitSpec { + double width_arcsec; double length_arcsec; + double physical_width_um; double physical_length_mm; + bool adjustable; double min_width_um; double max_width_um; + std::string material; +}; + +struct LongSlitSpec { + SpecType type; GratingSpec grating; + SlitSpec slit; double collimator_f_mm; double camera_f_mm; + double wavelength_min_nm; double wavelength_max_nm; + double R_central; double linear_dispersion_nm_per_mm; + double anamorphic_mag; double field_of_view_arcmin; +}; + +struct EchelleSpec { + SpecType type; GratingSpec echelle_grating; + CrossDisperser cross_disperser; GratingSpec cross_grating; + SlitSpec slit; double collimator_f_mm; double camera_f_mm; + double wavelength_min_nm; double wavelength_max_nm; + double R_min; double R_max; int n_orders; + double order_separation_pixels; bool vacuum_enclosure; + double pressure_mbar; double temperature_stability_mK; + CalibrationSource calibration; double RV_precision_m_per_s; + double RV_stability_24hr_m_per_s; std::string fiber_mode; + int n_fibers; double fiber_aperture_arcsec; +}; + +struct IFU_Spec { + SpecType type; int n_spaxels; double spaxel_arcsec; + double field_of_view_arcsec; double field_of_view_X; + double field_of_view_Y; double fill_factor_pct; + int n_spectra; double wavelength_min_nm; double wavelength_max_nm; + double R; double throughput_pct; + bool image_slicer; int n_slices; double slice_width_um; +}; + +struct MOS_Spec { + SpecType type; int n_targets; int n_fibers; + double fiber_aperture_arcsec; double patrol_radius_arcmin; + double positioning_accuracy_um; double configuration_time_min; + double field_of_view_deg; double wavelength_min_nm; + double wavelength_max_nm; double R; + bool robotic_positioners; std::string positioner_type; + double throughput_fiber_pct; +}; + +struct LSSpec { + SpecType type; double diameter_deg; + int n_ccds; double total_Mpix; + int n_filters; std::vector filter_names; + std::vector filter_wavelengths_nm; + double readout_time_s; double data_rate_TB_per_night; + double operating_temp_C; double etendue_m2_deg2; + double pixel_scale_arcsec; double survey_duration_years; +}; + +struct InstrumentSpec { + std::string name; SpecType type; + LongSlitSpec longslit; EchelleSpec echelle; + IFU_Spec ifu; MOS_Spec mos; LSSpec ls; + double total_throughput; double limiting_mag_1hr; + double weight_kg; double power_consumption_W; + double nasmyth_platform; bool requires_ao; + double data_rate_MB_per_s; +}; + +struct InstrumentState { double grating_angle_deg; double filter_wheel_pos; double slit_width_um; double focus_offset_um; double detector_temp_K; bool cal_lamp_on; }; +struct InstrumentPerformance { double actual_R; double actual_throughput; double RV_rms_m_per_s; double wavelength_cal_residual_nm; double stray_light_pct; bool meets_resolution_spec; }; + +InstrumentSpec design_echelle_spectrograph(double D_tel_m, double R_target, double wl_min_nm, double wl_max_nm); +InstrumentSpec design_longslit_spectrograph(double D_tel_m, double R, double wl_center_nm, double slit_arcsec); +InstrumentSpec design_ifu(int n_spaxels, double spaxel_arcsec, double R, double wl_min, double wl_max); +InstrumentSpec design_mos(int n_fibers, double patrol_deg, double FoV_deg, double R); +InstrumentSpec design_lsst_camera(); +double calculate_spectral_resolution(const GratingSpec& grating, double slit_width_um, double coll_f_mm, double cam_f_mm, double wl_nm); +double calculate_rv_precision(double R, double SNR, int n_lines); +double estimate_throughput(const InstrumentSpec& inst, double wl_nm, double seeing_arcsec); +double calculate_free_spectral_range(int order, double wl_nm); + +} // namespace vde::optical_telescope +``` + +--- + +## C++ API Namespace Summary + +| Namespace | Header | Primary Types | +|-----------|--------|---------------| +| `vde::optical_telescope` | `vde/optical_telescope/mirror.h` | `PrimaryMirrorSpec`, `MirrorState`, `MirrorPerformance`, `SubstrateSpec`, `MirrorBlankSpec`, `FiguringSpec`, `SurfaceErrorBudget`, `SegmentSpec`, `MirrorCoatingSpec` | +| `vde::optical_telescope` | `vde/optical_telescope/optics.h` | `OpticalSpec`, `OpticalState`, `OpticalPerformance`, `RitcheyChretienSpec`, `SchmidtCameraSpec`, `TMA_Spec`, `RefractorSpec` | +| `vde::optical_telescope` | `vde/optical_telescope/mount.h` | `MountSpec`, `MountState`, `MountPerformance`, `AxisSpec`, `MotorSpec`, `EncoderSpec`, `PointingModelCoeffs` | +| `vde::optical_telescope` | `vde/optical_telescope/dome.h` | `DomeSpec`, `DomeState`, `DomePerformance`, `DomeGeometry`, `VentilationSpec`, `DomeSeeingSpec`, `SiteSpec` | +| `vde::optical_telescope` | `vde/optical_telescope/ao.h` | `AOSpec`, `AOState`, `AOPerformance`, `AtmosphereSpec`, `ShackHartmannSpec`, `DeformableMirrorSpec`, `LaserGuideStarSpec`, `RTControlSpec` | +| `vde::optical_telescope` | `vde/optical_telescope/detector.h` | `DetectorSpec`, `DetectorState`, `DetectorPerformance`, `CCD_Spec`, `HAWAII_Spec`, `sCMOS_Spec`, `CryostatSpec`, `FocalPlaneSpec` | +| `vde::optical_telescope` | `vde/optical_telescope/instrument.h` | `InstrumentSpec`, `InstrumentState`, `InstrumentPerformance`, `LongSlitSpec`, `EchelleSpec`, `IFU_Spec`, `MOS_Spec`, `LSSpec`, `GratingSpec` | + +--- + +## Industry Standards & References + +| Standard | Title | Relevance | +|---|---|---| +| ISO 10110 | Optics and photonics — Preparation of drawings for optical elements and systems | Optical surface specification and tolerancing | +| ISO 9211 | Optics and photonics — Optical coatings | Mirror and AR coating specifications | +| MIL-PRF-13830B | Optical Components for Fire Control Instruments; General Specification Governing the Manufacture, Assembly, and Inspection Of | Scratch-dig surface quality standard | +| MIL-STD-810G | Environmental Engineering Considerations and Laboratory Tests | Environmental testing (thermal, vibration, humidity) | +| IEEE 1584a-2004 | Guide for the Installation of Optical Fiber Cable | Observatory fiber infrastructure | +| IVOA Standards | International Virtual Observatory Alliance protocols (VOTable, FITS, SIA, SSAP) | Data format and interoperability | +| FITS 4.0 (2018) | Flexible Image Transport System standard | Astronomical data format | +| SPIE Vol. 9147 | Ground-based and Airborne Instrumentation for Astronomy V | Design standards for astronomical instruments | +| ESO VLT Technical Specifications | Technical specifications for VLT instrumentation | Reference for optical/near-IR instrument design | +| LSST System Design Report | Vera C. Rubin Observatory technical baseline | Wide-field survey telescope reference | + +--- + +## Benchmarks + +| Equipment Type | Benchmark Vendor | Model | Key Spec | +|---|---|---|---| +| Monolithic Mirror | Schott + ZEISS/REOSC | VLT UT (×4) 8.2 m M1 | Zerodur, 175 mm thick, 150 actuators, λ/20 at 500 nm | +| Monolithic Mirror | Steward Mirror Lab | LBT (×2) 8.4 m | Borosilicate honeycomb, f/1.14, spin-cast | +| Monolithic Mirror | Steward Mirror Lab | GMT (×7) 8.4 m | Off-axis segments, f/0.7 primary, λ/20 | +| Monolithic Mirror | Steward Mirror Lab | LSST 8.4 m M1M3 | Monolithic M1+M3, f/1.23, 3.5° FoV | +| Segmented Mirror | Keck Observatory | Keck I & II | 36×1.8 m segments, Zerodur, SMP, active phasing | +| Segmented Mirror | ESO / Safran-Reosc | E-ELT M1 | 798×1.45 m segments, Zerodur, λ/30 target | +| MRF Figuring | QED Technologies | Q22-2000F MRF | 2 m capacity, λ/30 convergence | +| IBF Figuring | NTG / IOM | IBF-1500 | 1.5 m capacity, λ/40 convergence, Ar⁺ ion beam | +| RC Optical Design | HST (Lockheed/Perkin-Elmer) | Hubble 2.4 m f/24 | Ritchey-Chrétien, space-qualified, λ/20 at 633 nm | +| Wide-Field Optics | LSST | Simonyi Survey Telescope | Modified Paul-Baker TMA, 3.5° FoV, EE80<0.5" | +| Schmidt Camera | Palomar Observatory | Oschin 48" (1.2 m) | Classic Schmidt, 6°×6° plates | +| Alt-Az Mount | ESO / Vertex (General Dynamics) | VLT UT Mount | 450 tonnes moving mass, hydrostatic bearings, 0.03" blind pointing | +| Alt-Az Mount | ESO / CESA / IDOM | E-ELT Mount | 3,700 tonnes moving mass, direct-drive | +| German Equatorial | Astro-Physics | AP-1600GTO | <0.15 m aperture class, ±3.5" PE | +| Dome | ESO / EIE Group | VLT UT Enclosure | Co-rotating building, active ventilation | +| Dome | ESO / Cimolai / M3 | E-ELT Dome | 86 m diameter, 6,100 tonnes rotating mass | +| SCAO System | ESO / ONERA | SPHERE SAXO (VLT) | 41×41 SH-WFS, 1,377-act PZT DM, 1.2 kHz, S>0.9 (K) | +| ExAO System | GPI Collaboration | Gemini Planet Imager | 43×43 SH, 2 kHz, 1,500-act MEMS DM, contrast 10⁻⁶ | +| LGS Facility | ESO / TOPTICA | 4LGSF (VLT UT4) | 4×22 W Na LGS, 589 nm, narrow-line Raman fiber | +| MCAO System | Gemini / ANU | GeMS (Gemini South) | 5 LGS, 3 DMs (0/4.5/9 km), 2' FOV, 0.08" K-band | +| CCD Detector | Teledyne e2v | CCD290-99 (LSST) | 4k×4k, 10 μm, DD-BI, <4.5 e⁻ read noise, LN2 | +| CCD Detector | Teledyne e2v | CCD231-84 (HSC) | 2k×4k, 15 μm, DD, <4 e⁻, 4 outputs | +| HgCdTe Detector | Teledyne Imaging Sensors | HAWAII-2RG | 2k×2k, 18 μm, QE>80% (JHK), <5 e⁻ CDS, 77 K | +| HgCdTe Detector | Teledyne Imaging Sensors | HAWAII-4RG | 4k×4k, 15 μm, 64 outputs, <4.5 e⁻ | +| sCMOS WFS | Andor (Oxford Instruments) | Marana 4.2B-11 | 2k×2k, 11 μm, <1.6 e⁻, 75 fps full, ROI faster | +| Echelle Spectrograph | ESO / Geneva Observatory | HARPS (3.6 m) | R=115,000, vacuum, ±0.001 K, RV<0.5 m/s | +| Echelle Spectrograph | ESO / Geneva | ESPRESSO (VLT) | R=140k/190k, 4 UT, laser comb, RV<0.1 m/s goal | +| Echelle Spectrograph | Yale / Lowell | EXPRES (DCT 4.3 m) | R=137,500, laser comb, RV<0.3 m/s | +| IFU Spectrograph | ESO / Lyon / AIP | MUSE (VLT) | 24 IFU modules, 1'×1', 90k spaxels, R=2,000–3,500 | +| MOS Spectrograph | LBNL / KPNO | DESI (4 m Mayall) | 5,000 fibers, robotic positioners, 10 spectrographs | +| Survey Camera | LSST / SLAC / BNL | LSST Camera | 3.2 Gpix, 189 CCDs, 20 TB/night, 6 filters | +| Laser Frequency Comb | Menlo Systems / MPQ | Astro-comb (HARPS-N, ESPRESSO) | 18–25 GHz spacing, <1 cm/s absolute accuracy | + +--- + +## Acceptance Criteria + +1. **Primary Mirror Design (必选):** Engine shall design primary mirrors with configurable substrate material (Zerodur, ULE, borosilicate, SiC), blank architecture (monolithic meniscus, honeycomb, segmented hexagonal), and deterministic figuring method (MRF, IBF, SMP). Surface error budget shall decompose total RMS wavefront error into figure, mid-spatial, micro-roughness, thermal, gravity, support, wind, mounting, and alignment components with RSS summation. Segmented mirror phasing with configurable edge sensor type, resolution <5 nm RMS, and active warping harness shall be modeled. Primary mirror surface error <λ/30 RMS shall be verifiable through Strehl ratio calculation S = exp(−(2πσ/λ)²). Coating reflectivity R(λ) across 300–2,500 nm shall be specifiable. + +2. **Optical Design (必选):** Engine shall support refractor (achromatic doublet, apochromatic triplet), Ritchey-Chrétien (hyperbolic primary + secondary with conic constant calculation), Schmidt camera (spherical primary + aspheric corrector plate), and three-mirror anastigmat optical prescriptions. RC design shall compute conic constants K₁, K₂ from magnification m, back focal distance parameter α, and separation d₁. Image quality shall be quantified via Strehl ratio, encircled energy (EE50, EE80), and MTF. Plate scale, field of view, vignetting, and stray light analysis shall be included. Strehl ratio >0.9 (with AO at K-band) shall be verifiable. + +3. **Mount & Drive Design (必选):** Engine shall design Alt-Az mounts with direct-drive torque motor sizing from moment of inertia, acceleration, wind, and imbalance torque requirements. Encoder system with configurable resolution (26+ bits), multi-head readout, and subdivision factor. Pointing model with physical terms (IE, CA, NPAE, AN, AW, TF) calibrated from star observations. German equatorial mount for smaller telescopes. Field de-rotation with parallactic angle calculation. Tracking error budget with encoder, drive, wind, flexure, and thermal components. Blind pointing <3" RMS and offset pointing <0.1" RMS shall be verifiable. + +4. **Dome & Enclosure Design (必选):** Engine shall model classical hemispherical, co-rotating, carousel, and retractable calotte enclosures. Dome seeing shall be modeled via empirical ΔT relationship: FWHM ≈ 0.35×|ΔT|¹·² with target <0.2 arcsec. Thermal control strategy with daytime cooling, ventilation louvers, and glycol chiller. Site selection metrics including median seeing, PWV percentiles, photometric fraction, sky brightness, wind statistics, and light pollution growth rate. Dome seeing <0.2 arcsec shall be verifiable from skin-air temperature difference. + +5. **Adaptive Optics Design (必选):** Engine shall model Shack-Hartmann WFS with configurable subaperture geometry, microlens parameters, centroiding algorithm (CoG, thresholded CoG, correlation, quad-cell), and noise analysis (photon + read noise components). Deformable mirror with PZT stack, voice-coil, or MEMS actuator type, influence function, stroke, and hysteresis. Laser guide star (sodium D₂ 589 nm, Rayleigh 351 nm) with return flux, spot elongation, and cone effect modeling. MCAO with multiple DMs at configurable conjugate altitudes and tomographic reconstruction. AO performance via Strehl ratio S = exp(−σ²_residual) with fitting, bandwidth, photon noise, anisoplanatism, and calibration error components. Strehl >0.9 with AO (K-band) and ExAO contrast 10⁻⁶–10⁻⁸ at 0.1–0.5" separation shall be verifiable. + +6. **CCD & IR Detector Design (必选):** Engine shall design CCD detectors (front-illuminated, back-illuminated, deep-depletion) with configurable depletion depth, AR coating, pixel geometry, CTE, full well capacity, and read noise. HgCdTe HAWAII IR arrays (2RG, 4RG) with configurable cutoff wavelength, SFD/CDS readout modes, persistence/latency, and cryogenic operation temperature. sCMOS for AO wavefront sensing with sub-electron read noise and >1,000 fps frame rate. Noise budget decomposition (photon, read, dark, sky). Cryostat design with LN2 dewar or closed-cycle cooler, cold stop, and thermal stability. CCD read noise <2 e⁻ RMS shall be verifiable. + +7. **Spectrograph & Instrument Design (必选):** Engine shall design long-slit, Echelle cross-dispersed, IFU (lenslet/slicer), MOS (fiber positions/slit mask), and LSST-class imaging camera instruments. Grating equation mλ=d(sinα+sinβ), angular dispersion dβ/dλ, linear dispersion dλ/dx, and resolution R=λ/Δλ with slit width and pixel sampling limitations. Echelle spectrograph with configurable grating type (R2/R3/R4), cross-disperser, vacuum enclosure, thermal stabilization to ±0.001 K, and wavelength calibration (Th-Ar, iodine cell, laser frequency comb). Radial velocity precision σ_RV ∝ FWHM/(SNR×√N_lines×√N_pix) with target <0.5 m/s long-term via laser frequency comb absolute accuracy <1 cm/s. Throughput budget from atmosphere to detector QE. Echelle RV precision <0.5 m/s long-term shall be verifiable. + +8. **Unit Consistency (必选):** Optical dimensions in m/mm/μm/nm, angular in °/'/"/mas/μas, wavefront error in nm RMS, Strehl ratio as dimensionless 0–1, seeing in arcsec FWHM, PWV in mm, temperature in K or °C, read noise in e⁻ RMS, dark current in e⁻/pix/s or e⁻/pix/hr, frame rate in Hz/kHz/fps, torque in Nm, velocity in °/s or rad/s, resolution R = λ/Δλ (dimensionless), radial velocity in m/s or cm/s, QE as fraction 0–1 or pct, reflectivity as fraction 0–1 or pct, contrast as ratio, throughput as fraction 0–1, data rate in GBps/TB per night, weight in kg/tonnes, and power in W/kW. + +9. **Site Selection and Environmental Factors (必选):** Engine shall support site evaluation metrics: median free-atmosphere seeing, boundary layer contribution, PWV distribution, photometric fraction, sky brightness (mag/arcsec²), wind speed/direction statistics, temperature range, altitude, light pollution growth rate, and seismic zone. Atmospheric turbulence profiling (DIMM, MASS, SCIDAR) with C_N²(h) profile, r₀, τ₀, and θ₀ derivation. Operational and survival environmental conditions (wind, temperature, humidity, seismic) for site-adaptive telescope design. Precipitable water vapor PWV <2.5 mm for NIR-capable sites shall be a quantifiable decision criterion. +