nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#656 Add load_tracker object to the powerflow module, #1386

Closed nikhilgupta10 closed 8 years ago

nikhilgupta10 commented 8 years ago

This trac ticket it to track the development and merging of the load_tracker object into the v2.3 codebase.

The load_tracker object allows a variable to be tracked and an output value to be scaled accordingly to try and track a setpoint.

The typically use is to allow a SCADA signal from an inline device such as a recloser to be replayed into the system and use the load_tracker object to scale the downstream load objects so that the inline power or current measurements match.

Typical usage would be:

object load_tracker
{
    name RECLOSER_1_LOAD_TRACKER;
    target RECLOSER_1;
    property power_in;
    setpoint 145000; // overwritten by player or HTTP requests
    deadband 1.0;    // percent error before correcting
    damping  2.0;    // damping factor 0 = no damping, n = 1/(1+n) correction in error
    full_scale 219000; // Note: This is the sum of the phase base powers
                       //       from the downstream loads but is only used
                       //       when there is no feedback signal and we have
                       //       to do feed-forward control
}

object load
{
    name LOAD_2;
    parent NODE_4;
    phases ABC;
    nominal_voltage 6350.85;
    base_power_A RECLOSER_1_LOAD_TRACKER.output*22000;
    base_power_B RECLOSER_1_LOAD_TRACKER.output*22000;
    base_power_C RECLOSER_1_LOAD_TRACKER.output*22000;
    power_fraction_A 0.5;
    ...

,

nikhilgupta10 commented 8 years ago

nikhilgupta10 imported these comments from Sourceforge:

If this is to be included in 2.3, it should be ready for RC1. It not, we can hold it until 2.3 code is reintegrated into trunk.

,

Load Tracker Diagram

, I've checked in two changeset for this code branch:

http://sourceforge.net/apps/trac/gridlab-d/changeset/3688
http://sourceforge.net/apps/trac/gridlab-d/changeset/3765

With the changesets that Jason added to fix switch.power_in updating correctly this is now feature complete.

I've also attached a diagram that illustrates how the load_tracker is supposed to be used (based on the autotests) if that is helpful.

,

put in as of r3790.

,