Solver setup and running#
Solution types#
Pick the type in the Problem group of the Simulation tab (or Solver › Solution Type):
| Type | Solves for | Typical use |
|---|---|---|
| Driven (Frequency Domain) | The response to each port or plane wave over a frequency sweep | S-parameters, fields, far fields, RCS |
| Eigenmode | Resonant frequencies and Q of the structure | Cavities, filters, resonators, qubits |
| Electrostatic | The capacitance and conductance matrix of conductors | Capacitance extraction |
| Magnetostatic | The inductance and resistance matrix | Inductance extraction |
| Transient (Time Domain) | The response to a pulse over time | Time-domain signals |
| RLGC Extractor | Per-length R, L, G, C of a line, from static solves | Transmission-line models |
Frequency range#
Frequency Range... (Problem group) sets the start and stop of the active setup's sweep. Everything else is in Solver Setup.
The Solver Setup window#
Solver Setup... (Setup group), or double-click a setup under Solver in the tree. A project can have several setups (Add Setup...); the one used by Run is the active one.
General#
| Setting | Meaning |
|---|---|
| Solver Problem Type | As above |
| Element order | 2 (the default) is accurate for most models; 1 is faster per element but often stops on an inaccurate pass; 3 for high accuracy or current monitors |
| Processor cores (MPI ranks) | Solver processes on this computer. Use up to the number of physical cores |
Frequency Sweep (Driven)#
| Setting | Meaning |
|---|---|
| Start / Stop Frequency | The band. A start of 0 gives a DC point: the solver solves down to Min Solved Freq (Auto picks it from the model) and the 0 Hz S-matrix is fitted from the lowest solves |
| Sweep Distribution | Linear Step (Δf), Linear Count (N points), Logarithmic / Decade |
| Sweep type | Uniform, Adaptive or Interpolating (below) |
| **Fit Tolerance ( | ΔS |
| Save Fields | Solution frequency only (default), All frequencies, or None |
| Far Field | The same choice for far-field data |
Sweep types:
| Sweep | How it works | Use for |
|---|---|---|
| Uniform | A full solve at every point | Few points, or a reference result |
| Adaptive | The solver builds a reduced model of the structure from a few solves and evaluates it at every point | Most sweeps, including sharply resonant designs |
| Interpolating | About 40 solved points; every Sij is fitted with one rational model and checked with extra solves until two rounds of checks agree | Smooth broadband responses with many points |
The Interpolating sweep marks which points were solved and which fitted in the S-parameter plots, and notes the fit in exported Touchstone files. If the fit doesn't converge within its solve budget, only the solved points are kept and the log suggests an Adaptive sweep. Below 60 points it simply solves every point.
Saving fields at every frequency is slow and takes a full field set per point and port. Keep the default unless you need field plots at many frequencies; a Saved Field monitor records one extra frequency.
Frequency-dependent materials (Djordjevic–Sarkar) are solved in sub-bands, each with the material values of its own band, and joined into one result.
Adaptive meshing#
| Setting | Default | Meaning |
|---|---|---|
| Adaptive meshing | on | Refine until the results stop changing |
| Reuse the adapted mesh when the model is unchanged | on | Skip the passes when nothing that affects the mesh changed |
| Solution frequency | highest sweep frequency | Where the mesh is refined |
| More adapt frequencies (GHz) | none | More frequencies to refine at: every pass solves them all, and ΔS is checked at each |
| Also adapt at the bottom of sweeps spanning 10× or more | on | Adds the lowest sweep frequency on wide sweeps (a mesh refined only at the top can be too coarse at the bottom) |
| Maximum ΔS per pass | 0.02 | Stop when the largest |
| Maximum frequency change per pass | The same for eigenmode solves, in per cent | |
| Consecutive converged passes | 1 | How many passes in a row must meet the target |
| Minimum passes | 1 | Never stop before this many |
| Minimum mesh growth per pass | 50 % | A pass only counts as converged if it grew the mesh this much; Off lets any pass count |
| Maximum refinements | 5 | The pass limit (passes − 1) |
| Maximum unknowns | from installed memory | Stop before the mesh outgrows the machine |
| Relative error tolerance | 0.01 | The solver's own error estimate: a second way to stop, after at least two passes (advanced) |
| Initial uniform refinements | 0 | Split every element this many times first |
Linear Solver#
The iterative solver (GMRES by default), its tolerance, iteration limit and preconditioner. The defaults suit nearly every model. The tolerance bounds a preconditioned residual, not the S-parameter error.
Eigenmode, static and transient setups#
- Eigenmode: the number of modes, the frequency to search near, the convergence tolerance and iteration limit, and whether to save the mode fields.
- Electrostatic / Magnetostatic: assign terminals (Boundaries › Ports and Sources › Voltage Terminal, Current Terminal, Terminal) and the solver gives the capacitance or inductance matrix.
- Transient: the final time, time step, stepping scheme and excitation pulse shape.
- RLGC Extractor: the reference frequency and the length to normalise to.
Check Model#
Check Model... (quick bar, or the Run group) checks the geometry, materials, boundaries, ports and setup and lists everything that would stop or spoil a solve, with what to do about it. A job isn't started while Check Model finds errors.
Electrical Connections... (Solver menu) shows which conductors touch each other: useful when a port or terminal doesn't connect where you expect.
Running#
Click Run (F5). Where it runs is chosen under it: On: This computer ▾, a cluster, or the cloud.
- TE10 meshes the model.
- The solver runs the adaptive passes. Progress shows each pass with its unknowns and ΔS.
- Then the frequency sweep.
- The results are sorted into the project's results folder and the plots update.
Cancel Simulation (or the Stop button in Progress) stops a solve. A failed or cancelled solve keeps the
setup's previous results; its files go to logs/<setup>/failed-run/ in the results folder.
The solve's console output is in Results › Logfile, and the per-pass table in Results › Convergence...
Running in the background#
Submit Job (Cluster / Cloud / Background)... (Remote menu) packages the solve as a job: on this computer in the background (so you can keep editing), on a cluster, in the cloud, or as a zip for manual submission.
Job Monitor... lists the project's jobs with their state and log; cancel, fetch results again, resubmit or clean up from there. Jobs are saved with the project. See Clusters and Cloud.
Parameter sweeps#
Parameter Sweep... (Setup group) solves the model for a range of parameter values:

Choose the setup and the parameter, then the start, stop and step; the window lists the variations. Add several parameters to sweep their combinations. The sweep runs as one job (an array job on a cluster), with one set of results per variation; each variation's S-parameters appear as their own data set in the S-parameter window, so you can overlay them.
Optimize#
Optimize... changes chosen parameters within their ranges, solving each try, until goals are met: for example |S11| below −20 dB from 9 to 11 GHz.
- Pick the solver setup, the method and the largest number of solves (30 by default).
- Tick the parameters to vary (Use) and give each a start value, minimum and maximum.
- Add Goal: the quantity and the S-parameter (i, j), the frequency range, the condition, the target and a weight.
- Run. Stop ends it early; Apply Best Values writes the best parameters found to the model.
| Method | Character |
|---|---|
| Nelder-Mead (default) | Local search; fewest solves |
| Pattern Search | Local search with steady steps |
| Differential Evolution | Searches the whole range; needs many solves |






