Menu

Running GridLab-D via Python

2024-04-18
2024-05-03
  • Abdullah Al Mamun

    Hi,

    I have downloaded the GridLab-D in my windows machine (GridLAB-D 5.2.0-19642 (0df31c0:HEAD) 64-bit WINDOWS RELEASE).

    I am trying to run GridLab-D via python. I don't know if it is currently possible or not. If yes, then could someone please provide me the procedure to do it? I tried to find the procedure but some are pretty old and I am confused with it.

    Also, if you are suggesting of using HELICS then could you please give me the up to date connection process between GridLab-D and HELICS in a windows machine? I also have HELICS installed in my windows machine

    cmd: helics-cli --version
    HELICS Library version 3.5.2 (2024-04-08)

    Thank you!

    Regards
    Mamun

     

    Last edit: Abdullah Al Mamun 2024-04-22
    • Frank Tuffner

      Frank Tuffner - 2024-05-02

      Hello Mamun,

      Apologies for the delay in getting back to you on this.

      Technically, it is possible to run GridLAB-D in Python, but only by manually calling the executable (with something like popen or similar). There's a simple example up on the GitHub tools repository.

      For HELICS, if you download the compiled executable for GridLAB-D, you'll need the complimentary compiled binaries for HELICS. Since you're using Python, you'll want to consult the HELICS repository and forums/tickets for the most up to date procedure on doing that. From the GridLAB-D side, you usually just have to download one of the Helics-XXX-win64.zip files (located under the HELICS releases) and then copy the helics.dll from the bin folder into the bin folder of your GridLAB-D install.

      I'll note that depending on what you are using (mostly if you don't need deltamode or subsecond capability), you can also look into using LFE Arras. That's a fork of GridLAB-D that has some more advanced Python capabilities, but I'm not sure if it has HELICS integrated yet or not.

      -Frank

       
  • Abdullah Al Mamun

    Thank you, Dr. Tuffner. This is really helpful. I will look into these materials.

    -Mamun

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.