<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Project GridLAB-D</title><link>https://sourceforge.net/p/gridlab-d/</link><description>Recent changes to Project GridLAB-D</description><atom:link href="https://sourceforge.net/p/gridlab-d/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 25 Sep 2025 09:47:49 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gridlab-d/feed.rss" rel="self" type="application/rss+xml"/><item><title>matlab link on windows</title><link>https://sourceforge.net/p/gridlab-d/discussion/842561/thread/847b3f04bb/?limit=25#ef9c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;not working&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph Levon</dc:creator><pubDate>Thu, 25 Sep 2025 09:47:49 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net6049e44cb3e8a752aadc66f96b26c3997336e1bb</guid></item><item><title>GLD matlab co-simulation</title><link>https://sourceforge.net/p/gridlab-d/discussion/842561/thread/eeed1b28fd/?limit=25#586f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I am an undergraduate student working on our final year project to design a smart grid that connects wind, diesel generator (DG), solar, and a battery bank to the main grid. I need to know how to co-simulate this system in MATLAB for real-time simulation. Please help me with this. If there are any examples available, kindly share them with me.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">YOHAN Dhanunka </dc:creator><pubDate>Sat, 02 Aug 2025 07:34:36 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netf8656242e1ef429227ea4d25f1f9c4009c589ea0</guid></item><item><title>Can P_Out and Q_Out be set via HELICS in inverter objects (CONSTANT_PQ mode)?</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/e5a93df6c6/?limit=25#00f0</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;oh I see. That did it. Thank you, Frank!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MA</dc:creator><pubDate>Sat, 26 Jul 2025 00:51:19 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net907ca71e604d9db1c1a5bb2a06a323ed1082cc7f</guid></item><item><title>Can P_Out and Q_Out be set via HELICS in inverter objects (CONSTANT_PQ mode)?</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/e5a93df6c6/?limit=25#1481/11e9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello MA,&lt;/p&gt;
&lt;p&gt;Apologies for the delay getting back to you.&lt;/p&gt;
&lt;p&gt;Regarding &lt;code&gt;P_Out&lt;/code&gt;, that is a set point.  From the GridLAB-D perspective, anything that you can use a &lt;code&gt;player&lt;/code&gt; on, you can also use HELICS on (properly configured, of course).&lt;/p&gt;
&lt;p&gt;Since you mentioned testing the same code with a &lt;code&gt;triplex_load&lt;/code&gt; worked, that should at least rule out the Python.&lt;/p&gt;
&lt;p&gt;Looking at your inverter, I suspect it might just be over-writing and/or ignoring that value because I don't think you have the inverter set up to do exactly what you're trying to do.  The &lt;code&gt;generator_mode&lt;/code&gt; field mode basically does nothing when you put it in four quadrant mode (it would actually throw an error if you used it without the four quadrant mode set).  You probably need to have the &lt;code&gt;four_quadrant_control_mode CONSTANT_PQ;&lt;/code&gt; added.&lt;/p&gt;
&lt;p&gt;-Frank&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Tuffner</dc:creator><pubDate>Fri, 25 Jul 2025 19:46:53 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netecfe13cd0c9a89d0581f1ac88f566403f4e4a538</guid></item><item><title>Can P_Out and Q_Out be set via HELICS in inverter objects (CONSTANT_PQ mode)?</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/e5a93df6c6/?limit=25#1481</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi GridLAB-D Team,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GridLAB-D version:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;GridLAB-D 5.3.0-20236 (e1841e1e:master) 64-bit LINUX RELEASE
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;HELICS version:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="mf"&gt;3.6.1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;2025&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;02&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;24&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I’m currently integrating GridLAB-D with HELICS and working with inverter objects in CONSTANT_PQ mode. I wish to change P_Out and Q_Out in real time, which is why I am using HELICS. Anyways, I am trying to change the P_Out value during the simulation. I can see the values being read by Python and published by the python federate. However, the output file from the recorder does not show these values, it shows zeros.&lt;/p&gt;
&lt;p&gt;To ensure my GridLAB-D - HELICS integration is working correctly, I added a triplex_load and tried changing the constant_power_1 using the python federate, which worked just fine and I can see the values in the recorder output file. &lt;/p&gt;
&lt;p&gt;I checked the inverter.cpp file and I saw the following:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;double P_Out;  // P_Out and Q_Out are set by the user as set values to output in CONSTANT_PQ mode
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I am assuming that the P_Out is writeable. Does that mean P_Out is only writeable using a player object but not HELICS?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MA</dc:creator><pubDate>Thu, 17 Jul 2025 02:28:34 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net88883a7a69c2316698f85f415a06ad832712dba4</guid></item><item><title>Frequency Measurement After Grid Disturbance</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/eb01f639d8/?limit=25#9c9e/4752/1c88/c1c4/fc5f/c0d8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Jett,&lt;/p&gt;
&lt;p&gt;That is very strange.  You are correct that it doesn't seem to be implemented anywhere.  I'm trying to track down if that is a missed commit or something (amusing the the wiki entry is almost three years old and no one else has said anything).  For now, you are correct that the inverter_dyn does not have a VSM mode enabled.  I have notes out to some of the developers to see what happened here -- we clearly wrote up a specification and example, so I'm not sure where the code went.&lt;/p&gt;
&lt;p&gt;-Frank&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Tuffner</dc:creator><pubDate>Tue, 10 Jun 2025 16:34:45 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net52a9007cb3a493aa140d6a8e5b0f1d86160857ee</guid></item><item><title>Frequency Measurement After Grid Disturbance</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/eb01f639d8/?limit=25#9c9e/4752/1c88/c1c4/fc5f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Good day, &lt;/p&gt;
&lt;p&gt;Thank you so much for your help! It works and I was able to observe the frequency nadir after disconnecting the solar from the system. &lt;/p&gt;
&lt;p&gt;The final thing I wanted to do was to connect a battery that starts injecting power after the solar is disconnected. To do this I was planning on using the battery object and the inverter_dyn object by setting VSM_mode true as per the example found in the wiki.&lt;br/&gt;
However, it seems like this hasn't been implemented yet? I got an error saying that frequency_droop_mode, VSM_mode, H, and D are not defined in class inverter_dyn, and upon checking the inverter_dyn.cpp file, it seems like there is no mention of these parameters there either. &lt;br/&gt;
Is this not yet implemented in version 5.3?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jett Marcos</dc:creator><pubDate>Thu, 05 Jun 2025 05:39:13 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net03d83207b8e11bc577f616c3df6a3698e575e4cc</guid></item><item><title>Frequency Measurement After Grid Disturbance</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/eb01f639d8/?limit=25#9c9e/4752/1c88/c1c4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Jett,&lt;br/&gt;
   Apologies for the delay in responding.  You're pretty close, but there's a couple minor items/nuances to include still.&lt;/p&gt;
&lt;p&gt;The first item is to either add &lt;code&gt;flags DELTAMODE;&lt;/code&gt; to all of the powerflow objects, or just add to your &lt;tt&gt;module powerflow&lt;/tt&gt; the &lt;code&gt;all_powerflow_delta&lt;/code&gt; flag:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;module&lt;/span&gt; &lt;span class="n"&gt;powerflow&lt;/span&gt; {
    &lt;span class="n"&gt;enable_subsecond_models&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;;
    &lt;span class="n"&gt;deltamode_timestep&lt;/span&gt; &lt;span class="mi"&gt;10000000&lt;/span&gt;;    //&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="n"&gt;ms&lt;/span&gt;
    &lt;span class="n"&gt;solver_method&lt;/span&gt; &lt;span class="n"&gt;NR&lt;/span&gt;;
    &lt;span class="n"&gt;all_powerflow_delta&lt;/span&gt; &lt;span class="n"&gt;true&lt;/span&gt;;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You have most of them in it, but the transformer missing does appear to cause issues with tracking the changes.&lt;/p&gt;
&lt;p&gt;The second is your player file -- deltamode triggers on "non-integer timesteps", so you have to adjust it slightly to something like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="mf"&gt;01&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;01&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2001&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mf"&gt;00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mf"&gt;00.000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="kr"&gt;CLOSE&lt;/span&gt;&lt;span class="n"&gt;D&lt;/span&gt;
&lt;span class="mf"&gt;01&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;01&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2001&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mf"&gt;00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mf"&gt;01.001000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="kr"&gt;OPEN&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Once you do those two changes, you should see the frequency changing again.&lt;/p&gt;
&lt;p&gt;-Frank&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Tuffner</dc:creator><pubDate>Wed, 04 Jun 2025 03:05:30 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netf7f77bc177e070ad03ba535a4ee1f57102638026</guid></item><item><title>Frequency Measurement After Grid Disturbance</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/eb01f639d8/?limit=25#9c9e/4752/1c88</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Good day, &lt;/p&gt;
&lt;p&gt;Thank you so much for your response. I fixed the switch player and confirmed that it opens after 1 second of the simulation starting, and all the NAN values are now fixed. However, from my simulations, it seems that the grid frequency is a constant 60Hz at all the nodes before and after I disconnect the solar+inverter objects from the rest of the system. &lt;br/&gt;
The recorders are recording at the subsecond level, so I think I was able to trigger deltamode correctly, plus, from my understanding, the existence of the diesel_dg object should mean frequency isn't simplified to a systemwide constant.&lt;br/&gt;
Would you have any idea what is causing this issue? Really, my main goal for this part of the simulation is to see if I can measure the drop in frequency once the solar disconnects.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jett Marcos</dc:creator><pubDate>Sat, 31 May 2025 01:58:01 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netb6afb1090318466e22af8dd03f883852803f4e59</guid></item><item><title>Frequency Measurement After Grid Disturbance</title><link>https://sourceforge.net/p/gridlab-d/discussion/842562/thread/eb01f639d8/?limit=25#9c9e/4752</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Jett,&lt;/p&gt;
&lt;p&gt;It looks like your file might have a couple issues, so that's probably most of the problem.  If you look at your &lt;code&gt;bus_X_output_recorder.csv&lt;/code&gt; files, you notice they turn to &lt;code&gt;NAN&lt;/code&gt; values pretty quick, which is not a good sign.&lt;/p&gt;
&lt;p&gt;If you put a recorder on the &lt;code&gt;status&lt;/code&gt; of your switch, you'll see that it starts &lt;code&gt;OPEN&lt;/code&gt; and never closes.  You'll need to fix the timesteps (use one of the recorder outputs as a guideline).&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;inverter_dyn&lt;/code&gt; object appears to be overloaded since the active power setpoint is the full rating (and then you have a large reactive power output too).&lt;/p&gt;
&lt;p&gt;The transformer voltages between &lt;tt&gt;BUS_1&lt;/tt&gt; and &lt;tt&gt;BUS_3&lt;/tt&gt; doesn't quite seem to have the right voltage ratios (for the nominal voltages defined on the corresponding buses).  That won't necessarily cause problems, but may not be what you intended.&lt;/p&gt;
&lt;p&gt;Finally, if you do actuate the switch properly, isolating a bus in the powerflow can cause some odd behaviors.  To properly accommodate switching/segmenting the system further, you should have a &lt;code&gt;fault_check&lt;/code&gt; object to help remove things when they get disconnected.  E.g.,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;object fault_check {
    name base_fault_check_object;
    check_mode ONCHANGE;
    strictly_radial false;
    grid_association true;  //Flag to ensure non-monolithic islands
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Hopefully that helps.&lt;/p&gt;
&lt;p&gt;-Frank&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Tuffner</dc:creator><pubDate>Fri, 30 May 2025 22:31:56 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta9a813aaa1856117925daf4e3f797e803af21038</guid></item></channel></rss>