cst_set_mesh_density
Configure automatic mesh generation parameters to control accuracy versus simulation time. Adjust cells per wavelength, minimum mesh steps, and adjacent cell ratio.
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) |