SIM/PLATESimulation PhysicsVERIFIEDStg 1Stg 2Stg 3

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:

Option Variants (CODE/OPT)

Option CodeBehavior & UsageMain Flags
SIM/PLATE64x64 coupled flexural+membrane plate PDE DM (`[dm] dyn_mode = plate`).--oversample
SIM/FUSEDZero-hop fused GPU DAG engine (`csim_htsim`, lockstep calibration).--bench-mode --wfstat-validate
SIM/MODModular 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

LayerOption (Links to Reference)DefaultDescription
CLI Flag--bench-modefusedOptical bench engine: fused zero-hop htsim or modular per-element FPS
CLI Flag--oversample0 (bench=4)Temporal oversampling factor K (0 = inherit .bench value = 4 -> 8 kHz)
CLI Flag--wfs1-mod-rad3.0 (bench)Override Stage-1 NIR PyWFS modulation radius [l/D] (0 = unmodulated)
CLI Flag--wfs2-mod-rad3.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-validateOFFFused mode: export beams and run CPU csim_wfstat cross-check
CACAO_* EnvCACAO_HTSIM_UNITcsim_htsimFused cacaosim htsim FPS unit name targeted by fast calibration
CACAO_* EnvCACAO_GPUINDEX0CUDA GPU device index for compstrCM SVD and default MVM device
CACAO_* EnvCACAO_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

Verification Tests

Related Staged Technical Reports