# WiFi Solver

[WiFi Solver](https://wifi-solver.com/) simulates how WiFi signals propagate around your house. Build a two-dimensional scene, choose materials, place sources, and explore how the signal changes as waves reflect, refract and are absorbed. Read more about the [background](/about) behind this app.

<figure><img src="https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2F9xupVpSzEyzLej0lpA76%2Feditor-overview.jpg?alt=media" alt=""><figcaption></figcaption></figure>

## Start here

[Getting started](/signing-up) takes you from opening an example to building and running your first simulation. [Simulations](/simulations) explains saved simulations and links to the detailed guides.

## Build, run and inspect

| What you want to do                       | Guide                                                            |
| ----------------------------------------- | ---------------------------------------------------------------- |
| Understand the simulator                  | [Workspace and navigation](/simulations/editor-and-workspace)    |
| Add, select, name and group objects       | [Objects and groups](/simulations/objects-and-scenes)            |
| Choose materials or import a floorplan    | [Materials and image imports](/simulations/materials-and-images) |
| Edit WiFi sources                         | [Sources](/simulations/sources)                                  |
| Control your simulation                   | [Run a simulation](/simulations/running)                         |
| Manage advanced simulation options        | [Grid settings and diagnostics](/simulations/grid-settings)      |
| Visualise the simulation results          | [Visualising results](/simulations/visualising-results)          |
| Compare results and export images or data | [Probes and exports](/simulations/probes-and-exports)            |

## Share your work

[Sharing simulations](/sharing) covers private and public access and website embeds. [AI assistants and MCP](/ai-assistants) explains how to connect an assistant to your saved simulations.


# Getting started

## 1. Open an example or sign in

Visit [wifi-solver.com](https://wifi-solver.com) to try the pre-built examples.

To create and save your own simulations, sign in and choose an access option on the [sign-up page](https://wifi-solver.com/payment).

## 2. Create your simulation

From the home page, choose **Create simulation**. Give it a name in the editor's top navigation bar. New simulations are private by default.

![The home page lists saved simulations](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2Fym90MxCCqHRh6SnBpM8v%2Fimage.png?alt=media\&token=2fe23e69-815c-4b30-825b-35ae559fe6f2)

## 3. Set up the scene

Ensure **Edit** is selected as the cursor mode in the navigation bar. Open **Selection** from the bottom dock. While nothing selected, it shows an **Add...** section that rectangles, circles, images, sources and probes.

![Selection pane with the Add controls and Show all objects button](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FrAtgkqfcLTEjFSzVv7zM%2Fselection-add.png?alt=media)

For your first scene, add a rectangle and select it to set its dimensions and material. Position the source where you want waves to originate. See [Objects and groups](/simulations/objects-and-scenes), [Sources](/simulations/sources), and [Materials and image imports](/simulations/materials-and-images) for the full controls.

## 4. Run and inspect

1. In **Simulation**, choose **Start**.
2. In **Visualisation**, choose **Power** for the smoother signal display.
3. Let waves travel through the scene, then choose **Stop** to inspect a snapshot.
4. Add a probe if you want horizontal and vertical profiles through a point.

Use [Run a simulation](/simulations/running) for execution controls and [Visualising results](/simulations/visualising-results) for display options. [Probes and exports](/simulations/probes-and-exports) explains measurements and downloads.

## 5. Save or share

Simulations save automatically while you work. Computed fields and sampled probe profiles are generated in your browser and are not saved - export results you want to keep.

To send the simulation to someone else, use [Sharing simulations](/sharing). To edit through an assistant, see [AI assistants and MCP](/ai-assistants).


# Simulations

A saved simulation contains the grid and wavelength settings, scene objects, sources, probe settings and display options. Its waves and signal profiles are computed locally in your browser using WebGPU.

## Create and manage saved simulations

Open a simulation from the home page, or choose **Create simulation** to start a new one. Edit its name in the top navigation bar.

![Saved simulations on the home page](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2Fym90MxCCqHRh6SnBpM8v%2Fimage.png?alt=media\&token=2fe23e69-815c-4b30-825b-35ae559fe6f2)

To remove a simulation from the list, choose **Delete** in its editor menu and confirm. To recover it, return home, use the menu beside **Simulations** to **Show deleted**, then open the deleted item's menu and choose **Restore**.

## Build your scene

Start with [Workspace and navigation](/simulations/editor-and-workspace), then use:

* [Objects and groups](/simulations/objects-and-scenes) to add geometry, select items, name them and organize related objects.
* [Sources](/simulations/sources) to position and adjust wave emitters.

### Materials

Choose a material preset for each rectangle or circle, or set custom refractive and absorption indices. An imported image uses a fixed colour-to-material palette. See [Materials and image imports](/simulations/materials-and-images) for the controls, palette and an example floorplan.

## Run and inspect the result

Review [Grid settings and diagnostics](/simulations/grid-settings), then [run the simulation](/simulations/running). Use [Visualising results](/simulations/visualising-results) to switch signal displays, colour scales and 2D/3D views.

### Adding probes

Add probes from the **Selection** pane to inspect horizontal and vertical profiles. [Probes and exports](/simulations/probes-and-exports) covers probe settings, comparing snapshots and exporting CSV, PNG and NumPy data.

## Share or connect an assistant

[Share a public link or embed](/sharing), or [connect an AI assistant through MCP](/ai-assistants). Public viewers can run the scene and change their view; editing and saving require the appropriate account access.


# Workspace and navigation

The editor combines a simulation canvas, a top navigation bar, control panes and a bottom dock. Panes can sit in the scrollable column on the left or float over the canvas.

![House simulation with control panes beside the canvas](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2F9xupVpSzEyzLej0lpA76%2Feditor-overview.jpg?alt=media)

## Find the right pane

![The workspace dock](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2Ftn8Mit6Lv9a8TvIoVy2r%2Fworkspace-dock.png?alt=media)

| Pane          | Use it for                                                                    |
| ------------- | ----------------------------------------------------------------------------- |
| Simulation    | Start, stop, reset and choose execution speed                                 |
| Parameters    | Edit grid dimensions, cell size and wavelength; review diagnostics            |
| Visualisation | Signal display, object overlays, colours and 2D/3D view                       |
| Selection     | Add items, edit the selected item's properties, and export the view or signal |
| Scene         | Browse objects, groups, sources and probes                                    |
| Probes        | Compare signal profiles and export probe CSV data                             |

## Arrange the workspace

Drag a pane by its title bar to move it. Drag it out of the left column to float it over the simulation, or back into the left column to snap it back there.

## Move around the canvas

| Interaction             | Effect                          |
| ----------------------- | ------------------------------- |
| Drag empty space in 2D  | Pan                             |
| Drag empty space in 3D  | Orbit                           |
| Right-click and drag    | Pan in 2D or orbit in 3D        |
| Scroll                  | Zoom                            |
| Touch drag / pinch      | Move the view / zoom            |
| Visualisation **Reset** | Restore the default camera view |

Choose **Move** in the navigation bar when you want to navigate without editing items. Choose **Edit** to select and manipulate them.

## Select items

Click an object, source or probe on the canvas, or its row in the **Scene** pane. The **Selection** pane shows its available properties. Shift-click objects to add or remove them from a multiple selection.

A single canvas click on a grouped object selects the group. Double-click the object on the canvas to select that member alone. Clicking a member's row in **Scene** selects that member directly. See [Objects and groups](/simulations/objects-and-scenes) for group behaviour.


# Objects and groups

Use rectangles, circles and imported images to build the material geometry of a scene. The **Selection** pane edits an individual item; the **Scene** pane helps you find and organize items in a larger simulation.

## Add an object

Open **Selection** from the dock. With nothing selected, use the **Add...** buttons.

![Selection pane with Add controls](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FrAtgkqfcLTEjFSzVv7zM%2Fselection-add.png?alt=media)

Rectangles and circles are added directly. **Add image** opens a file picker; prepare its colours using [Materials and image imports](/simulations/materials-and-images).

## Edit properties

Select an object on the canvas or in **Scene**. In **Selection**, give it a useful **Name**, then set its geometry and material.

![Properties of a named wall](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FtSRGDDA4rK38KODIcZqF%2Fobject-properties.png?alt=media)

| Control                               | Meaning                                                 |
| ------------------------------------- | ------------------------------------------------------- |
| Name                                  | The label shown in the scene tree                       |
| x, y                                  | Centre position in metres from the domain's bottom-left |
| Width, Height                         | Dimensions in metres for rectangles and images          |
| Radius                                | Radius in metres for circles                            |
| Rotation                              | Angle in degrees for rectangles and images              |
| Material                              | A preset for a rectangle or circle                      |
| Refractive index n / Absorption kappa | Custom material indices                                 |

For a selected rectangle or image, drag a corner handle to resize it and the handle above it to rotate. A selected circle has a radius handle. Select an individual group member first when you want to resize or rotate only that object.

See [Materials and image imports](/simulations/materials-and-images) for preset and custom material behaviour.

## Find items in the scene pane

Open **Scene** from the dock, or choose **Show all objects** from **Selection**. The Scene pane shows all objects, sources and probes in the simulation. Groups of objects are represented as folders - give groups and objects names to help you organise the simulation.

![Scene tree with a named room, separate objects, a source and a probe](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2F6TJGGTawSnfEOXjRbf8A%2Fscene-groups.png?alt=media)

## Create and move groups

Use a group for related objects you want to move as one unit, such as a room's walls and door.

1. Select two or more ungrouped objects. Use Shift-click to add or remove objects from the selection.
2. In **Scene**, choose **Group selected**.
3. Give the group a descriptive name.

To move objects into an existing group, drag their Scene rows onto the group header or any of its expanded contents. Alternatively, open an object's ellipsis menu and choose **Move to group**, then the destination.

![Object actions in the Scene pane](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FcPICQPMr8QsQFjEHwtip%2Fobject-actions.png?alt=media)

Single-clicking on a grouped object selects the entire group - if you click and drag, the whole group will move together. To edit just one member, double-click it on the canvas, or click its Scene row.

The group's ellipsis menu in the Scene panel gives options to rename or remove the group:

![Group actions](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FHYMfnPFiM5kobN4BFvIj%2Fgroup-actions.png?alt=media)

Rename an individual object through its **Name** field in Selection. For emitters and measurements, see [Sources](/simulations/sources) and [Probes and exports](/simulations/probes-and-exports).

## Editing shortcuts

When **Edit** mode is active and a text field is not focused:

| Shortcut                        | Action                                      |
| ------------------------------- | ------------------------------------------- |
| Ctrl/Cmd + Z                    | Undo a recent edit                          |
| Ctrl/Cmd + C, then Ctrl/Cmd + V | Copy and paste the selected object          |
| Delete or Backspace             | Delete the selected object, source or probe |


# Materials and image imports

Materials control how objects bend, reflect and absorb waves. Rectangles and circles use a predefined or custom material. Images use colours to describe several materials in one bitmap.

## Choose a material

Select a rectangle or circle, then open **Material** in the **Selection** pane.

![Object material and index controls](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FtSRGDDA4rK38KODIcZqF%2Fobject-properties.png?alt=media)

Presets include Air, Wood, Glass, Brick, Concrete, Plasterboard, Ceiling board, Chipboard, Plywood, Marble (stone), Vinyl tile, Carpet tile and Asphalt concrete. They represent material classes; a particular wall's composition, moisture and construction may differ.

Building-material presets use coefficients from [ITU-R P.2040-4](https://www.itu.int/rec/R-REC-P.2040-4-202509-I/en). Their properties are evaluated at the configured source frequency.

## Custom materials

Edit **Refractive index n** and **Absorption kappa** to override a rectangle or circle's preset.

* **n** controls the real part of the refractive index.
* **kappa** controls attenuation. Zero gives no material absorption in this model.
* Both values must be finite, with n ≥ 1, kappa ≥ 0, and n² − kappa² ≥ 1.

Changing wavelength or material indices changes the wavelength inside materials and can change the grid resolution needed. Review [Grid settings and diagnostics](/simulations/grid-settings) after such changes.

## Prepare a floorplan image

Convert your floorplan to the import palette before uploading it. Use flat, pure colours and an opaque black background for air.

| Image colour | RGB           | Material |
| ------------ | ------------- | -------- |
| Red          | 255, 0, 0     | Wood     |
| Green        | 0, 255, 0     | Glass    |
| Blue         | 0, 0, 255     | Brick    |
| White        | 255, 255, 255 | Concrete |
| Black        | 0, 0, 0       | Air      |

Labels, shadows, gradients and antialiased edges can create unintended material regions - please ensure your image only uses these colours. A lossless PNG with the pure palette colours is a useful starting point; JPEG compression can alter those colours.

The following is a good example to try:

![Example floorplan prepared for the image material palette](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FqQ5YnILk4HQFvxbN0rQc%2Fhouse-01-01.png?alt=media\&token=4c02f2e4-cc0b-437f-89a8-fe5f451b3577)

## Import and size the image

1. With nothing selected, choose **Add image** in **Selection**.
2. Pick the prepared image file.
3. Select the imported object and set **Width** and **Height** to its real dimensions in metres.
4. Adjust its centre position and rotation to align it with the scene.
5. Run with an object overlay visible to check the imported boundaries.

The image's pixel resolution and the simulation grid both limit the detail that can be represented. Large images can be reduced during loading; keep important walls and gaps wide enough to survive both the image conversion and the grid sampling.

Image materials come from the fixed palette. Per-object custom n and kappa controls apply to rectangles and circles, not to the individual regions within an image.


# Sources

Sources emit WiFi waves from a single point - use them to model the WiFi sources in your house.

## Add a source

Open **Selection** with nothing selected and choose the WiFi icon in **Add...**. A simulation supports up to four sources; the Add source control is available while there is capacity.

## Edit position, name and strength

Click a source marker on the canvas or its row under **Sources** in the Scene pane.

![A named source's properties](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FsNISHAP8hiflbh6x8GrS%2Fsource-properties.png?alt=media)

* **Name** is optional. Use a descriptive label such as “Hall access point” when there are several sources.
* **x** and **y** position its centre in metres from the domain's bottom-left. In Edit mode you can also drag the source marker in the canvas.
* **Strength** changes the relative strength of the source.
* The delete icon removes the selected source.

## Set the wavelength

All sources use the simulation's configured **Wavelength**. Open the [**Parameters**](/simulations/grid-settings) pane to change it.

| Frequency | Approximate wavelength |
| --------- | ---------------------- |
| 2.4 GHz   | 12.5 cm                |
| 5 GHz     | 6 cm                   |

Shorter wavelengths need smaller grid cells, particularly inside materials. Review [Grid settings and diagnostics](/simulations/grid-settings) whenever you change wavelength.

## Compare source positions

1. Run a scene and inspect it with a consistent signal display and colour range.
2. Add [probes](/simulations/probes-and-exports) at locations you want to compare.
3. Export or hold a static probe profile.
4. Move the source, reset the simulation for a clean run, then let the new field develop before comparing.

With multiple sources, their waves interact in the same field. Changing the strongest source can also change the reference used by probe displays and CSV data. Keep source strengths consistent when comparing profiles.

See [Run a simulation](/simulations/running) for reset and timing controls.


# Run a simulation

The **Simulation** pane controls execution. The calculation runs on your device, so larger grids and slower GPUs can take longer to reach the same simulated time.

## Start, stop and reset

![Simulation pane in Automatic mode](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2Fg91EvJge01X3tvznEMsk%2Fsimulation-automatic.png?alt=media)

* **Start** advances the field from its current state.
* **Stop** pauses it so you can inspect the current result.
* **Reset** clears the running field and returns the calculation to its beginning while keeping the scene settings and geometry.
* **Step** counts numerical timesteps. **Time** is simulated physical time in nanoseconds.

After changing the scene, use **Reset** when you want a clean comparison. Allow the new field to develop before comparing it with the earlier result.

## Automatic speed

Choose **Automatic** for normal viewing. Set **Target (actual) FPS** to the frame rate you want; the value in parentheses is the measured rate. The app adjusts how many simulation steps happen between renders.

**Render every** is shown for information in this mode and is controlled automatically. Increasing the target frame rate does not make the numerical grid more accurate.

## Manual speed

![Simulation pane in Manual mode](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2F4JTaNnpbcMKlls3dbUXS%2Fsimulation-manual.png?alt=media)

Choose **Manual** when you need explicit control:

| Control      | Effect                                                               |
| ------------ | -------------------------------------------------------------------- |
| Time step    | Changes the physical duration of one numerical update                |
| Render every | Sets how many numerical updates happen before the next screen render |

Increasing **Render every** can spend more GPU time on computation and less on drawing, at the cost of less frequent screen updates. It does not change the duration of an individual numerical timestep.

Increasing **Time step** changes the numerical calculation. Review the timestep and source-period checks in [Grid settings and diagnostics](/simulations/grid-settings), and reduce it if temporal resolution is inadequate.

## When is the result ready?

A field takes simulated time to propagate through the scene, reflect and be absorbed. Use the **Time** readout and watch whether the observable you care about, such as a probe profile, has settled.

For comparisons, keep the physical scene, display settings and elapsed simulated time consistent. A coarse grid or an early snapshot can change the apparent result.

Open [Visualising results](/simulations/visualising-results) to choose the signal display, then [Probes and exports](/simulations/probes-and-exports) to inspect and save profiles.

## If it runs slowly or fails

Close other GPU-heavy work, try a smaller physical domain, and review the local GPU limit in Parameters. A finer grid increases both memory use and the number of updates needed to reach a given simulated time. Coarsening cells changes resolution; check the wavelength guidance before using that tradeoff.

See [Grid settings and diagnostics](/simulations/grid-settings) for memory, buffer-size and numerical-resolution checks.


# 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](/simulations/running) 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](/simulations/materials-and-images) 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.


# Visualising results

Open **Visualisation** from the dock to choose how the current field is displayed. These controls affect the display; the underlying grid and scene are configured separately.

![Visualisation pane](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FWi41m7SwphJXk4CWZAVr%2Fvisualisation-pane-v2.png?alt=media)

## Choose the signal

| Signal   | Use it for                                           |
| -------- | ---------------------------------------------------- |
| EM field | Inspect the instantaneous field and wave oscillation |
| Power    | Inspect the smoother relative signal distribution    |

**EM field** can flicker quickly as waves oscillate. **Power** is the app's smoothed, amplitude-like signal display, useful for comparing coverage patterns.

Allow the field to develop before interpreting a snapshot. See [Run a simulation](/simulations/running) for execution and settling time.

## Show the scene over the signal

Choose **Objects**:

* **Hide** removes the geometry overlay.
* **Outline** shows boundaries so you can relate the signal to walls and other objects.
* **Index** shows the relative-permittivity distribution of the scene.

![The House example in 2D with object outlines](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FK6FyZew5YCydp9UHjJOn%2Fsignal-2d.jpg?alt=media)

## Switch between 2D and 3D

**2D** is useful for locating features and editing geometry. **3D** presents the same two-dimensional simulation as a height surface; it does not change the solver into a three-dimensional model.

![The House example displayed as a 3D signal surface](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FCH6zln1iBx22BgqxbSnv%2Fsignal-3d.jpg?alt=media)

Drag to pan in 2D or orbit in 3D, and scroll or pinch to zoom. Right-drag also pans or orbits. Use the pane's **Reset** button to restore the default camera view.

## Choose a colour map and scale

Open **Colour map** to choose a palette. Set **Colour scale** to:

* **Linear** to show the signal using the linear mapping.
* **Logarithmic** to make weaker and stronger regions visible together over a wider range.

Use **Colour range** to expose or reduce detail. A colour change can make a weak region more visible without changing the simulated field.

When comparing runs, keep the signal choice, colour map, scale and range consistent. Use [probes and data exports](/simulations/probes-and-exports) when you need profiles or numeric values instead of judging colour alone.

## Save a view

In an editable simulation with nothing selected, open Selection's **Export as...** menu and choose **Image (.png)**. This saves the canvas output without the surrounding control panes. The same menu can export relative signal data; see [Probes and exports](/simulations/probes-and-exports).


# Probes and exports

Probes sample horizontal and vertical signal profiles through a point. Use them to compare positions or hold one profile while a later field develops.

## Add a probe

With nothing selected, open **Selection → Add...** and choose the probe icon. Select a probe marker or its row in **Scene** to open its settings.

![Probe name, position, mode, radius and colour](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FxANIfCsblNomfnuaQTmt%2Fprobe-properties.png?alt=media)

| Control      | Meaning                                                       |
| ------------ | ------------------------------------------------------------- |
| Name         | Label used in Scene and exported data                         |
| x, y         | Profile intersection, in metres from the domain's bottom-left |
| Live         | Update samples while the simulation runs                      |
| Static       | Hold the recorded profile for comparison                      |
| Probe radius | Number of neighbouring grid cells included in the measurement |
| Color        | Marker and trace colour                                       |

A larger radius averages over a wider area and can smooth fine variations. Moving a probe or changing its radius samples at the new position or radius. Use the delete control to remove it.

## Read the plots

![Horizontal and vertical probe profiles](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FD74HTYZPC0bTIU1INiej%2Fprobe-pane.png?alt=media)

Open **Probes** from the dock or from the button beside the Scene pane's Probes section. Each probe uses the colour chosen in its properties. Resize the pane to give the traces more room; double-click its resize handle to restore the default size.

The plot uses positive dB loss labels: weaker signal appears farther down the plot. The reference depends on the strongest configured source. These are relative, amplitude-like signal values, not calibrated dBm or measured received WiFi power.

## Compare two profiles

1. Let a live probe sample the first condition.
2. Switch it to **Static** to hold its current profile.
3. Add another live probe, or change the scene and let the next condition develop.
4. Compare the traces after a consistent simulated time.

Probe settings save with the simulation. Sampled profiles and the computed field belong to the current browser session; download the data if you want to retain those measurements after reloading.

## Export 1D probe data

Use the download icon in the **Probes title bar** when the simulation has started or finished running, and a CSV download will be generated.&#x20;

The CSV includes probe ID, name, radius in cells, axis, distance in metres, x/y position, the raw signal buffer value named `flux`, and `relative_db`. Its relative dB values use the probe reference; weaker signals have negative values.

## Export 2D simulation data

In an editable simulation, clear the selection, then open **Export as...** in **Selection**.

![View and signal export choices](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2Fche5IzROcoh8yUiCk1Lo%2Fexport-options.png?alt=media)

| Export                     | Contents                                                     |
| -------------------------- | ------------------------------------------------------------ |
| Image (.png)               | Current canvas output, without the control panes             |
| Relative signal (dB, .npy) | Float32 NumPy array with shape (Nx, Ny), indexed by x then y |

The NPY export normalizes the strongest valid grid value to 0 dB. Lower values are negative; zero or invalid signal is represented by negative infinity. This reference differs from the source-based reference used for probe CSV data.

For example, to display the array in Python:

```python
import numpy as np
import matplotlib.pyplot as plt

levels = np.load("export.npy")
plt.imshow(levels.T, origin="lower")
plt.colorbar(label="Relative signal / dB")
plt.show()
```

The example's axes are cell indices. Use the saved cell size to convert them to metres.


# Sharing simulations

Simulations are private by default - manage sharing from the **Public/Private** control in the navigation bar.

![Simulation sharing and embed controls](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FFnsnhdupnqTPWEUs8EYr%2Fsharing-controls.png?alt=media)

| Setting | Who can open it                                                              |
| ------- | ---------------------------------------------------------------------------- |
| Private | The owner while signed in, and an authorized MCP app viewer for that account |
| Public  | Anyone with the simulation link                                              |

To share a public view, choose **Public**, then send the simulation's browser URL. Changing the sharing setting is saved with the simulation.

Public viewers can start or stop their own calculation and adjust visualisation options. They cannot edit or save the owner's objects, sources, probes or grid settings.

## Embed a public simulation

1. Set the simulation to **Public**.
2. Open its sharing control.
3. Choose **Copy embed code**.
4. Paste the iframe snippet into a website or an application that accepts HTML embeds.

The copied snippet includes a simulation-specific embed URL. For example:

```html
<iframe
  width="800"
  height="450"
  src="https://wifi-solver.com/embed/sim_aa4c7625-2077-487a-9426-00e33174edfc"
  allowfullscreen>
</iframe>
```

Replace the example ID with your own by using the app's copy control. Adjust the width and height to suit the surrounding page.

Some applications accept only a URL. Use the iframe's `src` value, such as:

```
https://wifi-solver.com/embed/sim_aa4c7625-2077-487a-9426-00e33174edfc
```

![A simulation embedded in another page](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FI8yEUJHuq01DHJ8YrM1h%2Fimage.png?alt=media\&token=ea2120eb-0487-4d78-96c1-89521cc406a0)

## View private simulations with an assistant

An authorized [MCP connection](/ai-assistants) can display a private simulation in clients that support the MCP app viewer and its tool calls.


# AI assistants and MCP

<figure><img src="https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FY07hrDXRPR15p630cdFD%2Fimage.png?alt=media&amp;token=121070f8-cba7-4c95-a83f-47fe3b1bda78" alt=""><figcaption></figcaption></figure>

Connect an MCP-compatible assistant to inspect and edit your saved WiFi Solver simulations. The connection supports names, groups, materials, grid guidance, revision history and an embedded viewer in clients with MCP app support.

## Connect your account

On the WiFi Solver [home page](https://wifi-solver.com/home), choose **Connect to MCP server**.

![WiFi Solver MCP connection dialog](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2F9BUWytRYdFohrhpJPH7e%2Fmcp-connection.png?alt=media)

1. Copy the server URL below.
2. Add a remote MCP server in your assistant's connector or MCP settings.
3. Sign in to WiFi Solver and approve the permissions you want to grant.
4. Ask the assistant to list or show your simulations.

```
https://mcp.wifi-solver.com/mcp
```

A paid WiFi Solver account is required. Read operations need read permission; editing also needs write permission. Client setup and available app-viewer features depend on the AI application.

Use [Manage connected apps](https://mcp.wifi-solver.com/connections) to review or revoke a connection.

## Ask for a saved simulation

For example:

> List my simulations and show the most recent one.

A client with MCP app support can open the simulation in an embedded viewer. Authorized viewers can display private simulations without changing their sharing setting. Clients with fewer viewer capabilities can provide a link to open WiFi Solver.

The simulation runs through WebGPU in the viewer or browser. MCP tools read and edit saved configuration; they do not execute a calculation on the server or return computed signal measurements to the assistant.

## Build and organize a scene

Examples of useful requests:

> Create a 6 m by 4 m scene. Consult the grid guidance for 2.4 GHz before choosing the cell size.

> Name the walls and door, and put the related objects into a group called Living room.

> Move the Hall access point to the centre of the hallway, then show the simulation.

Ask the assistant to use descriptive object and source names, and group objects that should be managed as a unit. Groups keep related pieces together for browsing and translation.

The tools can create and duplicate simulations, batch-edit scene items and settings, look up frequency-dependent material presets, and set custom material indices. They should consult setup guidance before changing grid size, frequency or materials, and review the returned diagnostics.

For visual editing, see [Objects and groups](/simulations/objects-and-scenes), [Sources](/simulations/sources) and [Materials and image imports](/simulations/materials-and-images).

## Review and recover edits

The server keeps up to 100 recoverable revisions. An assistant can list available history and restore an earlier state as a new revision, preserving the current state in history.

For example:

> Show the recent revision history for this simulation.

> Restore the revision before the wall edits, then show it.

Edits are checked against the current revision. If another browser tab or assistant has changed the simulation, the assistant must read the latest saved version before editing again. The browser may also ask you to reload a simulation that changed elsewhere.

## Inspect the result

Open the viewer or the browser app to run and inspect a changed scene. Use [grid diagnostics](/simulations/grid-settings) to review its setup, then [probes and exports](/simulations/probes-and-exports) to capture signal profiles.

A successful tool edit or a passing diagnostic is not a measured result or a guarantee of numerical stability.


# About

Hi, I'm Jason and I wrote WiFi Solver as a fun solo project.

WiFi Solver is the evolution of the Android app [WiFi Solver FDTD](https://play.google.com/store/apps/details?id=com.jasmcole.wifisolver\&hl=en_GB), originally launched in 2014. This app was written in the aftermath of a blog post I wrote during my PhD about simulating WiFi called [Helmhurts](https://jasmcole.com/2014/08/25/helmhurts/), which went a bit viral back then.

Read more about that blog post from coverage in [Ars Technica](https://arstechnica.com/gadgets/2014/08/mapping-wi-fi-dead-zones-with-physics-and-gifs/), [The Verge](https://www.theverge.com/science/2020/7/21/21328522/wifi-mapping-signal-physics-science-isp-router-tips-tricks-verge-science), [The Conversation](https://theconversation.com/how-particle-accelerator-maths-helped-me-fix-my-wi-fi-38113) and (surprisingly!) the [Daily Mail](https://www.dailymail.co.uk/sciencetech/article-2735856/The-physics-WIFI-ROUTER-Scientist-proves-centre-home-best-signal-strength.html).

Ten years later in 2024 I was no longer a physicist but a software engineer, so I decided that a fitting way to mark the 10-year anniversary of that app would be to reimagine it on the web, which would be much more modern and take advantage of the significant advances in GPU support in browsers during that time.&#x20;

You can find out more about me, or get in touch, at my blog [Almost Looks Like Work](https://jasmcole.com/), a collection of explorations into physics, maths, and programming.


