cst_set_mesh_density
Set mesh density parameters to control automatic mesh generation, balancing accuracy and simulation time by adjusting cells per wavelength, minimum cells, and ratio limits.
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) |