The Port Sweep Settings in the Magnetic Fields interface,
Input Sweep Settings in the Magnetic and Electric Fields interface,
Manual Terminal Sweep Settings section in the Electrostatics interface and the
Manual Terminal Sweep Settings section in the Electric Currents interface describe how to cycle through the ports and terminals, compute the entire S-matrix and export it to a Touchstone file.