> For the complete documentation index, see [llms.txt](https://help.wifi-solver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wifi-solver.com/simulations/grid-settings.md).

# Grid settings and diagnostics

The grid determines the physical area and how finely the model represents waves and geometry. Open **Simulation parameters** from **Simulation** to edit it and inspect the diagnostics.

![Parameters pane with grid and resolution diagnostics](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2Fh5CBtqdofGWmyHhpIMRb%2Fgrid-pane.png?alt=media)

## Set the domain and wavelength

| Setting    | Meaning                                                                      |
| ---------- | ---------------------------------------------------------------------------- |
| Nx, Ny     | Number of cells horizontally and vertically; each must be a multiple of four |
| Grid size  | Physical width and height of each cell, shown in centimetres                 |
| Wavelength | Vacuum wavelength emitted by the sources, shown in centimetres               |

## Check the timestep

The app scales its timestep from the two-dimensional vacuum [CFL limit](https://en.wikipedia.org/wiki/Courant%E2%80%93Friedrichs%E2%80%93Lewy_condition) using the configured timestep multiplier. The pane reports the actual timestep, the CFL limit and timesteps per source oscillation.

Use the **Time step** slider in [Manual speed](https://help.wifi-solver.com/simulations/running.md) when you need to adjust temporal resolution.

## Review diagnostics

Strongly absorbing materials also need enough cells across the attenuation length. Review any loss-resolution warning after setting custom absorption indices.

For an image object, the diagnostics conservatively include every material in the supported bitmap palette; they do not inspect which colours occur in the image. An image-related warning may therefore include a material that is absent from your particular floorplan.

See [Materials and image imports](https://help.wifi-solver.com/simulations/materials-and-images.md) for the palette and custom indices.

## Check the GPU limit

**Parameters** reports a grid-cell limit derived from your GPU capabilities. Large grids can exceed GPU buffer sizes or exhaust available GPU memory.

A grid that fits a reported limit can still fail to allocate or run. If capacity is the problem, consider a smaller physical domain while preserving the required cell size. Explain and check the resolution tradeoff before choosing coarser cells.

## Check convergence

For a more useful accuracy check:

1. Record the observable you care about, such as a probe profile.
2. Halve the cell size and approximately double Nx and Ny, preserving the physical domain and valid multiples of four.
3. Rerun to the same elapsed simulated time and compare.

This quadruples the cell count and requires more timesteps for the same physical duration. If a result changes substantially, investigate resolution, scene representation and settling time.
