# Mildly stretched grid vs uniform

<span class="validation-badge">validated · 2026-08-28</span>

<div class="case-meta"><span>analytical</span><span>resolution 1</span><span>analytical</span><span>high_yield</span><span>p1</span><span>grid</span></div>

This case checks the implementation against an analytical identity, convergence property, or independent physics invariant. The originating Tidy3D example is [`AutoGrid.ipynb`](https://github.com/flexcompute/tidy3d-notebooks/blob/c37c785d52e9258c9d048a781524b8e8d7c758ca/AutoGrid.ipynb), pinned at commit `c37c785d52e9`.

```{figure} ../../_static/generated/boundaries.svg
:alt: Technical schematic associated with Mildly stretched grid vs uniform

Computational domain and absorbing-boundary schematic.
```

## What is exercised

Upstream solver/tests/simulation/physics/test_nonuniform_grid.py

This case runs at its declared full benchmark resolution (resolution factor 1.0).



## Recorded result

| Metric | Observed / error | Reference / limit | Error | Effective budget | Result |
|---|---:|---:|---:|---:|---:|
| `pytest_exit` | 0 | 0 | 0 | — | <span class="metric-pass">PASS</span> |

The table is rendered from `progress.json`; it is not a hand-written success claim. For metrics that report an error directly, the “observed” column repeats that error and the reference column is the acceptance threshold.

## Reproduce

```bash
uv run fdtdx-bench run --case analytical_nonuniform_grid
```

Implementation and provenance: `benchmarks/cases/analytical_nonuniform_grid/case.yaml`, `benchmarks/cases/analytical_nonuniform_grid/run.py`.

[Return to the example atlas](../index.md)
