High-performance Transfer Matrix Method (TMM) library for thin-film, waveguide, and multi-layer photonic structure calculations in MoonBit.
src/types/ complex numbers, matrices, vectors and units
src/dispersion/ dispersive models, material catalogues and interpolation
src/layer/ media, layers, stacks and stack builders
src/core_tmm/ transfer matrices, fields and numerical diagnostics
src/structures/ reusable optical device models
src/sweep/ spectral, angular, composition and tolerance sweeps
src/analysis/ spectrum statistics, features, windows and uncertainty
src/optimization/ bounded search, objectives, sensitivity and Pareto tools
src/validation/ physical/input validation and diagnostic reports
src/workflow/ reproducible experiments, quality gates and benchmarks
src/export/ CSV/SVG/Markdown/HTML and artifact bundles
src/main/ executable demonstration and smoke-test workloadmoon fmt --check
moon check --deny-warn --target all
moon test --deny-warn --target all
moon info
moon run src/mainLayerStack
→ SpectrumSweepConfig
→ run_experiment
→ validate_experiment
→ optimize_thickness / run_monte_carlo_yield
→ export_workflow_markdown / export_workflow_csvInstall
Download zipHigh-performance Transfer Matrix Method (TMM) library for thin-film, waveguide, and multi-layer photonic structure calculations in MoonBit.