Ipsa 2 Scripting

Ipsa contains an interface to the Python scripting language, enabling the user to automate many functions including:

  • Reading and creating Ipsa files
  • Create, edit and delete all types of network components
  • Edit all network data
  • Draw networks automatically
  • Draw geographic networks
  • Perform load flow studies and access all results
    • Normal load flows
    • Profile studies
    • Contingency studies
  • Perform fault level studies and access all results
    • All fault level studies
    • Waveform studies
  • Perform harmonic studies and access all results
    • Voltage penetration
    • Harmonic resonance
  • Add, edit and delete extended data
  • Import data from other sources such as databases and spreadsheets
  • Export data to databases and spreadsheets

The Python interface functions are included with all versions of Ipsa 2 and are licensed for the same features as the main Ipsa application. For example an Ipsa 2 Harmonics license is required in order to perform scripted harmonics analysis.

Typical applications that have been developed include:

  • PSS/E import and export scripts
  • DINIS import script
  • Generation capacity calculations
  • Implement generator constraint schemes, e.g. LIFO stacks for ANM schemes
  • GIS data import

The Python interface functions are included with all versions of Ipsa and are licensed for the same features as the main Ipsa application. For example an Ipsa Harmonics license is required in order to perform scripted harmonics analysis.

Ipsa currently uses Python version 2.7.

Python Language

Python is a powerful object orientated programming language that is easy to learn and use, its main features include:

  • High level dynamic data types
  • Rapid development time
  • Object orientation and modularity
  • Extensive standard libraries and modules
  • Interfaces to other applications such as Microsoft Excel and Access

Additionally Python has an open source license which makes it freely usable and distributable, even for commercial applications.