Coupled 64x64 Plate PDE DM & Polychromatic Bench
GPU-fused polychromatic optical bench with calibrated ALPAO coupled plate PDE DM.
Overview & Role
Simulates full multi-stage Subaru AO3k + SCExAO + H-band Lyot coronagraph + LLOWFS optics at 8 kHz sub-stepping (oversample=4) with a calibrated 64x64 flexural + membrane plate PDE (dyn_mode=plate) matched to 20 kHz SCExAO interferometry.
Drives both realistic plate cross-mode coupling (for 3DRM/P1, PRESH, PSOL/MIMO) and modulated/unmodulated PyWFS optical-gain physics (for OG/POKE, 2WFS/LIVE).
Compute Units / Entry Points: cacaosim (csim_htsim / modular)cacaosim_dm_engine.c
Verified Highlights:
- Matches 20 kHz LepICSaBL-E ALPAO 64x64 measurements; 52.5% peak plate cross-talk at 8 kHz
Option Variants (CODE/OPT)
| Option Code | Behavior & Usage | Main Flags |
|---|---|---|
SIM/PLATE | 64x64 coupled flexural+membrane plate PDE DM (`[dm] dyn_mode = plate`). | --oversample |
SIM/FUSED | Zero-hop fused GPU DAG engine (`csim_htsim`, lockstep calibration). | --bench-mode --wfstat-validate |
SIM/MOD | Modular per-element FPS daemon topology. | --bench-mode --clock-skew-us |
Dependencies & Calibration Chain
Upstream Calibrations & Inputs
Self-contained (no mandatory upstream calibration).
Selected Algorithm
★ Current Entry
SIM/PLATESim Physics
Coupled 64x64 Plate PDE DM & Polychromatic Bench
Feeds & Enables Downstream
CLI Flags, Environment Variables & FPS Parameters
| Layer | Option (Links to Reference) | Default | Description |
|---|---|---|---|
| CLI Flag | --bench-mode | fused | Optical bench engine: fused zero-hop htsim or modular per-element FPS |
| CLI Flag | --oversample | 0 (bench=4) | Temporal oversampling factor K (0 = inherit .bench value = 4 -> 8 kHz) |
| CLI Flag | --wfs1-mod-rad | 3.0 (bench) | Override Stage-1 NIR PyWFS modulation radius [l/D] (0 = unmodulated) |
| CLI Flag | --wfs2-mod-rad | 3.0 (bench) | Override Stage-2 Vis PyWFS modulation radius [l/D] (0 = unmodulated) |
| CLI Flag | --clock-skew-us | — | Stage-2 WFS clock trigger offset [us] relative to Stage 1 |
| CLI Flag | --wfstat-validate | OFF | Fused mode: export beams and run CPU csim_wfstat cross-check |
| CACAO_* Env | CACAO_HTSIM_UNIT | csim_htsim | Fused cacaosim htsim FPS unit name targeted by fast calibration |
| CACAO_* Env | CACAO_GPUINDEX | 0 | CUDA GPU device index for compstrCM SVD and default MVM device |
| CACAO_* Env | CACAO_MVM_GPUINDEX | -1 (Stg1/2), 99 (Stg3) | Override MVMextract GPUindex (<0 CUDA Graph, 0..N cuBLAS, 99 CPU BLAS) |
| FPS (cacaosim) | htsim.oversample | — | — |
Implementation, Tests & Related Reports
Source Files
- cacaosim:
src/cacaosim_dm_engine.c
Verification Tests
test_05_ao_web_report.pytest_10_dmpreshaper.py