Altair Compose GUI for parallel PSIM simulation executions based on a run matrix of parameters

RSGarciarivas
RSGarciarivas
Altair Employee
edited September 2023 in Altair Exchange

Overview

This is an Altair Compose Graphical User Interface (GUI) for streamlining PSIM simulations and design exploration.

It requires three inputs:

  1. Excel (.xlsx) file, each row containing desired parameters for each simulation to perform.
  2. PSIM schematic file containing the model to simulate.
  3. Desired output directory in which to create result files for each run.

Look at the example files attached.

Once all inputs are defined, user can click TEST or RUN buttons.

  • TEST: Picks a single run randomly and simulates to check model integrity. A list dialog appears when done, containing all available variables in result files and gives the user the option to plot any signals if needed.
  • RUN: Simulates all cases contained in the run matrix in parallel batches. Names output files according to that run's parameters.

Parallel simulations are handled through the function PsimASimulate.

Pre-Requisite

This script requires Compose and PSIM 2022.3 or later. Note that different versions (e.g., Compose 2022.3 and PSIM 2023) might work but is not recommended.

If the schematic file contains a parameters block, it should be disabled.

Usage/Installation Instructions

To run the script:

  1. Run the .oml file in Compose.
  2. Define all inputs using the select buttons.
  3. Click test or run buttons.
  4. Wait for process to finish.