Simulations

Once you've created your first simulation, you'll be directed to the simulation page - here you can see the simulation results and control all aspects of the simulation.

A simulation is a 2D rectangular region containing a number of objects and sources. When the simulation is running, WiFi waves are emitted from sources, and move around the simulation. When waves encounter an object, they are reflected, refracted and absorbed realistically. When waves reach the edge of the simulation domain, they leave and don't return.

Control panes

The various floating windows contain different controls for the simulation. They can be moved around and minimised, after which they will appear in the lower-left corner of the screen:

Move around the simulation like you would in Google Maps:

  • Click and drag to move around the simulation.

  • Scroll to zoom in and out (or pinch if using a mobile device)

  • To disable interactions with objects, choose the Move option from the options in the navigation bar

Simulation controls

Here you can control the execution of the simulation, and the underlying parameters that control it.

Automatic speed

Select this option if you want the simulation to run at a comfortable frame rate for easy viewing. Choose the desired frame rate, and the simulation will adjust its speed automatically.

Manual speed

The manual simulation speed options

Select this option if you need more control over exactly how a simulation is executed:

  • Time step - this setting controls the actual time step that the simulation uses. Larger steps speed up the simulation, but may result in numerical instability.

  • Render every - this setting controls how many simulation steps are performed before the UI is updated. Increasing this setting may improve simulation speed if your device struggles to render the simulation quickly.

Simulation parameters

The simulation parameters appear in a new control pane

The settings here control how the simulation is actually constructed - changing any of them will require restarting the simulation.

  • Nx/Ny - the number of simulation grid cells in the x/y directions. Increasing these values allows simulating a larger area, but at the cost of increased simulation times.

  • Grid size - the physical size of each grid cell. If this size is too large, the simulation may become unstable. A good rule of thumb is that it is smaller than 10% of the wavelength.

  • Wavelength - this is the wavelength of radiation that sources emit. The smaller this value, the smaller the grid size will need to be to maintain stability.

Visualisation controls

Visualisation controls

The controls here affect how the simulation results are visualised, and don't affect the simulation itself.

  • Signal - choose EM field to show the current amplitude of the electromagnetic field - this setting may result in a lot of flickering if the simulation is running rapidly. Choose Power to show the time-averaged radiation power - this setting results in a much smoother visualisation.

  • Objects - chose Outline to show object outlines, Index to show objects filled-in, and None to hide objects.

  • 2D/3D - switch between 2D and 3D visualisation modes. Objects and sources can only be edited in 2D mode, but 3D mode can be helpful when understanding the results of the simulation.

  • Colormap - choose one of many colormaps to visualise the Signal you have chosen.

  • Colormap scale - set the limits of the colormap to expose or reduce detail.

Selection controls

When no objects or sources are selected, you'll see the options to add an object/source, or export an image of the simulation:

The selection controls with nothing selected.
  • Save image - the current contents of the simulation will be saved as a PNG file to your device.

  • Add object - add a new object or source to the simulation.

The selection controls with an object selected

When an object is selected, you'll be able to finely adjust its properties, copy it, or delete it.

When a source is selected, you can finely adjust its position and relative strength.

Adding objects

WiFi Solver supports several different object types in simulations:

  • Rectangles - a rectangular region of constant material.

  • Circles - a circular region of constant material.

  • Images - a bitmap whose colour determines the material (see below).

  • Sources - a WiFi source - up to 4 sources can be added to a simulation.

Materials

Choosing a material for an object changes how it refracts and absorbs WiFi waves. Several common house materials are pre-defined with the appropriate values for WiFi signals.

Images

When uploading an image, the following colours are converted to the corresponding material. All other colours are matched to the closest material:

  • Red - rgb(255, 0, 0) - wood

  • Green - rgb(0, 255, 0) - glass

  • Blue - rgb(0, 0, 255) - brick

  • White - rgb(255,255,255) - concrete

An example image that is safe to use in a simulation looks like this:

An example image for a simulation. Why not trythis one?

Saving changes

Changes are saved automatically as you make them. See when your changes were last saved from the menu in the navigation bar:

Last updated