cst_set_mesh_density
Set global mesh density parameters to control automatic mesh generation, balancing cell count per wavelength for accuracy against simulation time.
Instructions
Set global mesh density parameters controlling automatic mesh generation. Higher cells_per_wavelength gives finer mesh and better accuracy at the cost of longer simulation time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_cells | No | Minimum number of mesh steps across any structure (default 5) | |
| ratio_limit | No | Maximum ratio between adjacent mesh cells (default 20) | |
| cells_per_wavelength | No | Number of mesh cells per wavelength (default 15) |