Creating a Multi-File N-Port Model

Instead of referencing a single file, an N-port model can reference an array of solution files, using a project array variable. For instance, the following can be used to specify the File name:

$ModelNames is a project level array variable and $ModelNames_Index is a project level array index variable.

For more information, see Adding a Project Variable Array.

To create a multi-file model using array variables:

  1. View the Component Libraries area, select the Symbols tab. Click Import Models.
  2. Select the NPort_Multi icon. This opens the N-port multi file import window.

  3. Enter a number of pins or ports (from 1 to 1000). Files containing components with exactly the specified number of pins (and only those files) are displayed for selection in the Add Files window.
  4. Enter a Name for the model if chosen.
  5. Select a type for the Reference node:
Note:

See Reference Nodes on S-Parameter Elements in the S-parameter Technical Notes for how the Circuit solver handles reference node configurations.

  1. Clicking Add Files to browse and select multiple Touchstone (*.SnP) files to be added to the list box.
  2. Click OK. An instance of the N-port component is attached to the cursor, so drag and place it in the schematic. When instances of the component are placed, right-click and select Finish or press Esc on the keyboard to stop placing instances.
  3. The simulation can sweep the entries in the created Text Array Variable. In this case, $SElement_Files_Index is the variable to sweep.