Skip to content
Product

Power usage metering

SunSolve Power usage is metered in rays, shown as Rays (M) for millions of rays. Your subscription includes an allowance of rays, and each simulation you run draws on it. One usage unit is one million rays traced, so a simulation that traces 2×106 rays uses 2 Rays (M).

The usage estimate shown in the simulation bar is calculated from the inputs of the simulation before it runs. Usage (U) is calculated as:

U=R×N106

where:

  • R is the number of rays per run
  • N is the number of runs in the simulation, which depends on the solving mode

A single-solution simulation contains one run, so N=1. Sweeps and optimisations are described below.

InputSymbolDescription

Rays per run, R, Rays traced in each run. Set on the Options tab as Rays per run (see Simulation options).

Sweep steps, P and S, Number of steps in the primary and secondary sweeps.Optimised inputs, n, Number of inputs being optimised.Runs per generation, NG, Number of runs in each optimisation generation.Run limit, L, Maximum number of runs allowed for an optimisation.

The usage breakdown lists these same inputs, so you can check any estimate against this formula.

In a sweep, each combination of swept values is one run. The number of runs is the product of the steps in each depth that has at least one swept input:

N=P×S

If only one depth is swept, N is the number of steps on that depth. A sweep with no swept inputs counts as a single run, and the usage per simulation is R/106.

An optimisation runs in generations, and the usage estimate is an upper bound. It is shown as “up to” the estimated usage. The first generation contains NG runs or gn+1 runs, whichever is higher, where g is the number of grid points per optimised input: g=4 for two inputs, g=3 for three inputs, and g=2 otherwise. The first generation count is:

F=max⁡(NG,gn+1)

The maximum usage is then:

Umax⁡=max⁡(L,F)×R106

The first generation always runs in full, so when F is higher than the run limit L, the estimate uses F runs. Later generations never exceed the run limit. The optimiser can also stop earlier, see Termination conditions, so actual usage is usually lower than the estimate.

For a single-solution simulation with R=2×106 and N=1:

U=2×106×1106=2

The simulation uses 2 Rays (M).

For a sweep with P=3 primary steps, S=4 secondary steps, and R=5×105:

N=3×4=12 U=5×105×12106=6

The sweep uses 6 Rays (M), which is 0.5 Rays (M) per run across 12 runs.

Optimisation with a run limit above the first generation

Section link: Optimisation with a run limit above the first generation

For an optimisation of two inputs with NG=10, L=50, and R=106:

F=max⁡(10,42+1)=max⁡(10,17)=17 Umax⁡=max⁡(50,17)×106106=50

The estimate is up to 50 Rays (M).

Optimisation with a first generation above the run limit

Section link: Optimisation with a first generation above the run limit

For the same optimisation with L=10:

Umax⁡=max⁡(10,17)×106106=17

The first generation runs in full, so the estimate is up to 17 Rays (M), not 10 Rays (M).

See Simulation options for the ray tracer settings, and Ray count and stochastic error for how the number of rays affects results.