Installation

February 14, 2022 · View on GitHub

The stable release of TDcoSim can be installed from PyPI. The version under development can be installed from GitHub. The commands to be executed in the Windows command line interface for both options are included below:

You can install tdcosim by running the following command on command line.

pip install git+https://github.com/tdcosim/TDcoSim.git@master

In the event you do not have git installed on your machine, you can alternatively run the following from command line.

pip install https://github.com/tdcosim/TDcoSim/archive/master.zip

After installation open a new command prompt and run the following to set psse path,

tdcosim setconfig -p "path\to\psse_installation"  

If PSSE 35 is being used the following may be used:

tdcosim setconfig -p "C:\Program Files\PTI\PSSE35\35.0\PSSPY37" 

If PSSE 33 is being used the following may be used:

tdcosim setconfig -p "C:\Program Files (x86)\PTI\PSSE33\PSSBIN" 

Due to the embedded compatibility requirements between PSSE and Python, please refer to the following compatibility table and the PSSE API document that located in the Doc folder on PSSE install location when paring PSSE with Python.

It should be noted that the table below is a subset of all successful combinations from our team’s development environment, and it is crucial to set the PSSE installation path properly so that the module PSSPY can be located.

Compatibility Table PSSE-Python


Note: Git needs to installed (in case it is not already available) before TDcoSim can be installed.


Post Installation

Get info about tdcosim

tdcosim describe

Test if tdcosim example simulations (dynamics and QSTS) are working,

tdcosim test

Dependencies:

The packages listed below must be installed separately:

Required


Note: Either demo (limited to 50 buses) or full version of PSS/E can be used. OpenDSS is an open source software and can be installed for free.



Note: PSS/E 35.0.0 and above support will support both 32 and 64 bit versions of Python.


Optional

  • For using the high performance ODE solver diffeqpy, version >= 1.1.0

  • For using the high performance ODE solver diffeqpy, version >= 1.1.0

    • Install tdcosim with the diffeqpy flag as shown below.

         pip install tdcosim[diffeqpy]
      
    • After installation open a new command prompt and run the script install_julia_diffeqpy.py available in the repository. It will install Julia (if not already installed), all the required libraries, and setup a Julia environment linked to the Python environment.

         python install_julia_diffeqpy.py
      
    • Download and install Julia interpreter: Julia, version >= 1.5 (Optional)

    • Add Julia to system PATH environment variables as shown here (Only for Windows OS) (Optional)


Note: If co-simulations involving more than 10 detailed DER models are needed to be run, it is recommended to select diffeqpy as the ODE solver.



Note: All Python packages can be installed with pip (e.g. pip install scipy)


Tested configurations :

PSS/EOpenDSSPythondiffeqpy/JuliaTested
358.6.1.12.7.3-Yes
339.3.0.22.7.3-Yes
358.6.1.13.7-Yes
358.6.1.13.71.2 - Julia 1.5.3Yes (till 75 feeders)
358.6.1.13.71.2 - Julia 1.6.1Yes (till 50 feeders)
358.6.1.13.71.2 - Julia 1.7.0Yes (till 50 feeders)