Case Library
Case Library is the built-in collection of classic thin-film examples in Dreapex TMM. Click the Case Library button in the top toolbar (pi pi-th-large icon, testid: layout-toolbar-open-case-library) to open the dialog and load a complete model — structure, optics, sweep, and optimizer — in one click.
Three primary uses:
- On first launch, get a working model that already produces results, instead of starting from an empty structure;
- Before writing a new case, mirror the Sweep / Optimizer combination of a mature example to avoid common pitfalls;
- Demonstrate common thin-film structures in teaching or design reviews.
Dialog Layout
| Region | Purpose |
|---|---|
| Left category list | Filter cases by film type: All Cases / AR Coatings / Mirrors / Filters / Special |
| Center card grid | Thumbnails, names, and one-line summaries for the cases in the active category |
| Right detail panel | Full description, highlight list, and Open Case button for the selected case |
Open Case triggers a confirmation dialog and then replaces the entire current model. The current structure, optics, sweep, and optimizer configuration are overwritten; the local autosave draft remains in the browser and can be restored via the case-comparison workflow.
Case Inventory
| ID | Name | Category | Highlights |
|---|---|---|---|
dbr-mirror | DBR Mirror @ 633 nm | Mirror | 8 pairs of TiO₂ / SiO₂ quarter-wave layers; reflection peak at 633 nm with side ripples; Phase / GD dispersion detectors enabled by default |
single-layer-ar | Single-layer MgF₂ AR @ 550 nm | AR Coating | Textbook single-layer AR; V-shaped reflectance dip; angle-dependent shift |
v-coat-ar | V-coat AR @ 550 nm | AR Coating | Al₂O₃ + MgF₂ two-layer AR; deeper V-dip than single-layer |
broadband-ar | Broadband 3-layer AR | AR Coating | MgF₂ / ZrO₂ / Al₂O₃ broadband AR; flat low reflectance across the visible |
bandpass-filter | Fabry-Pérot Bandpass @ 550 nm | Filter | DBR · half-wave cavity · DBR sandwich; narrow transmission peak |
hot-mirror | Hot Mirror | Filter | Visible-pass, NIR-reflect; common in lighting and projector heat management |
cold-mirror | Cold Mirror | Filter | Visible-reflect, IR-pass; used to extract IR heat from light sources |
solar-stack | a-Si Solar Cell | Special | ITO + amorphous-silicon absorber + glass substrate; inspect layer absorption |
beam-splitter | 50/50 Beam Splitter @ 633 nm | Special | Three-layer dielectric splitter; close to R = T = 0.5 at 45° incidence |
DBR Mirror @ 633 nm is the default case loaded on first launch.
Loading Flow
- Click the
Case Librarybutton in the top toolbar. - Pick a category on the left, or keep
All Cases. - Choose a case in the card grid.
- Read the right-side highlights to confirm the structure matches your intent.
- Click
Open Case→ confirmation dialog →Replace. - After loading, the app navigates to
Structureso you can edit or run immediately.
Run Sweep or Run Optimizer produces meaningful results immediately.Cases and Learning Paths
| Learning goal | Recommended cases |
|---|---|
| Interference and quarter-wave stacks | dbr-mirror |
| Single-layer AR and angle dependence | single-layer-ar |
| Compare single / double / multilayer AR performance | single-layer-ar → v-coat-ar → broadband-ar |
| Fabry-Pérot cavity filter | bandpass-filter |
| Hot vs. cold light separation | hot-mirror and cold-mirror |
| Energy distribution inside an absorber | solar-stack (with Layer Absorption and depth detectors) |
| Polarization-dependent splitting | beam-splitter |
Relationship to Local Data
Loading a case only replaces the model snapshot in the Pinia store. It does not clear:
- Refractive index files already imported into the browser (
Databasemode still works); - Imported incident spectrum files;
- User preferences and performance thresholds in
Settings; - History entries in
Logs.
If you want to keep your current model before loading a case, click the export button in the toolbar (pi pi-download) first to save it as a .tmm file. See Model File Import / Export.