DSS C-API and dss.hpp
DSS C-API and dss.hpp expose a customized and extended implementation of OpenDSS to C and C++.
dss::obj::CapControlBatch Class Reference
Inheritance diagram for dss::obj::CapControlBatch:
[legend]
Collaboration diagram for dss::obj::CapControlBatch:
[legend]

Public Types

typedef CapControl::Properties Properties
 
typedef CapControl BatchElementClass
 
typedef CapControl::CapControlType CapControlType
 

Public Member Functions

 CapControlBatch (APIUtil *util)
 Create a batch of all CapControl elements.
 
 CapControlBatch (APIUtil *util, int32_t prop_idx, int32_t prop_value)
 Create a batch of all CapControl elements that match an integer property value.
 
 CapControlBatch (APIUtil *util, const char *regexp)
 Create a batch of all CapControl elements that match a regular expression.
 
CapControlBatchbegin_edit ()
 
CapControlBatchend_edit (int32_t num_edits=1)
 
strings element ()
 Full object name of the circuit element, typically a line or transformer, to which the capacitor control's PT and/or CT are connected.There is no default; must be specified. More...
 
CapControlBatchelement (dss::obj::DSSObj &value)
 
CapControlBatchelement (const string &value)
 
std::vector< dss::obj::DSSObjelement_obj ()
 Full object name of the circuit element, typically a line or transformer, to which the capacitor control's PT and/or CT are connected.There is no default; must be specified. More...
 
CapControlBatchelement_obj (dss::obj::DSSObj &value)
 
BatchInt32ArrayProxy terminal ()
 Number of the terminal of the circuit element to which the CapControl is connected. More...
 
CapControlBatchterminal (int32_t value)
 
template<typename T >
CapControlBatchterminal (T &value)
 
template<typename T >
CapControlBatchterminal (typename T::iterator it_begin, typename T::iterator it_end)
 
strings capacitor ()
 Name of Capacitor element which the CapControl controls. More...
 
CapControlBatchcapacitor (dss::obj::Capacitor &value)
 
CapControlBatchcapacitor (const string &value)
 
std::vector< dss::obj::Capacitorcapacitor_obj ()
 Name of Capacitor element which the CapControl controls. More...
 
CapControlBatchcapacitor_obj (dss::obj::Capacitor &value)
 
BatchInt32ArrayProxy type ()
 {Current | voltage | kvar | PF | time } Control type. More...
 
CapControlBatchtype (string &value)
 
CapControlBatchtype (int32_t value)
 
CapControlBatchtype (CapControl::CapControlType value)
 
CapControlBatchtype (strings &value)
 
CapControlBatchtype (std::vector< int32_t > &value)
 
CapControlBatchtype (std::vector< CapControl::CapControlType > &value)
 
strings type_str ()
 {Current | voltage | kvar | PF | time } Control type. More...
 
CapControlBatchtype_str (string &value)
 
CapControlBatchtype_str (strings &value)
 
BatchFloat64ArrayProxy PTratio ()
 Ratio of the PT that converts the monitored voltage to the control voltage. More...
 
CapControlBatchPTratio (double value)
 
template<typename T >
CapControlBatchPTratio (T &value)
 
template<typename T >
CapControlBatchPTratio (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy CTratio ()
 Ratio of the CT from line amps to control ampere setting for current and kvar control types. More...
 
CapControlBatchCTratio (double value)
 
template<typename T >
CapControlBatchCTratio (T &value)
 
template<typename T >
CapControlBatchCTratio (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy ONsetting ()
 Value at which the control arms to switch the capacitor ON (or ratchet up a step). More...
 
CapControlBatchONsetting (double value)
 
template<typename T >
CapControlBatchONsetting (T &value)
 
template<typename T >
CapControlBatchONsetting (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy OFFsetting ()
 Value at which the control arms to switch the capacitor OFF. More...
 
CapControlBatchOFFsetting (double value)
 
template<typename T >
CapControlBatchOFFsetting (T &value)
 
template<typename T >
CapControlBatchOFFsetting (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy Delay ()
 Time delay, in seconds, from when the control is armed before it sends out the switching command to turn ON. More...
 
CapControlBatchDelay (double value)
 
template<typename T >
CapControlBatchDelay (T &value)
 
template<typename T >
CapControlBatchDelay (typename T::iterator it_begin, typename T::iterator it_end)
 
bools VoltOverride ()
 {Yes | No} Default is No. More...
 
CapControlBatchVoltOverride (bool value)
 
CapControlBatchVoltOverride (bools &value)
 
BatchFloat64ArrayProxy Vmax ()
 Maximum voltage, in volts. More...
 
CapControlBatchVmax (double value)
 
template<typename T >
CapControlBatchVmax (T &value)
 
template<typename T >
CapControlBatchVmax (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy Vmin ()
 Minimum voltage, in volts. More...
 
CapControlBatchVmin (double value)
 
template<typename T >
CapControlBatchVmin (T &value)
 
template<typename T >
CapControlBatchVmin (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy DelayOFF ()
 Time delay, in seconds, for control to turn OFF when present state is ON. More...
 
CapControlBatchDelayOFF (double value)
 
template<typename T >
CapControlBatchDelayOFF (T &value)
 
template<typename T >
CapControlBatchDelayOFF (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchFloat64ArrayProxy DeadTime ()
 Dead time after capacitor is turned OFF before it can be turned back ON. More...
 
CapControlBatchDeadTime (double value)
 
template<typename T >
CapControlBatchDeadTime (T &value)
 
template<typename T >
CapControlBatchDeadTime (typename T::iterator it_begin, typename T::iterator it_end)
 
BatchInt32ArrayProxy CTPhase ()
 Number of the phase being monitored for CURRENT control or one of {AVG | MAX | MIN} for all phases. More...
 
CapControlBatchCTPhase (string &value)
 
CapControlBatchCTPhase (int32_t value)
 
CapControlBatchCTPhase (MonitoredPhase value)
 
CapControlBatchCTPhase (strings &value)
 
CapControlBatchCTPhase (std::vector< int32_t > &value)
 
CapControlBatchCTPhase (std::vector< MonitoredPhase > &value)
 
strings CTPhase_str ()
 Number of the phase being monitored for CURRENT control or one of {AVG | MAX | MIN} for all phases. More...
 
CapControlBatchCTPhase_str (string &value)
 
CapControlBatchCTPhase_str (strings &value)
 
BatchInt32ArrayProxy PTPhase ()
 Number of the phase being monitored for VOLTAGE control or one of {AVG | MAX | MIN} for all phases. More...
 
CapControlBatchPTPhase (string &value)
 
CapControlBatchPTPhase (int32_t value)
 
CapControlBatchPTPhase (MonitoredPhase value)
 
CapControlBatchPTPhase (strings &value)
 
CapControlBatchPTPhase (std::vector< int32_t > &value)
 
CapControlBatchPTPhase (std::vector< MonitoredPhase > &value)
 
strings PTPhase_str ()
 Number of the phase being monitored for VOLTAGE control or one of {AVG | MAX | MIN} for all phases. More...
 
CapControlBatchPTPhase_str (string &value)
 
CapControlBatchPTPhase_str (strings &value)
 
strings VBus ()
 Name of bus to use for voltage override function. More...
 
CapControlBatchVBus (const string &value)
 
CapControlBatchVBus (strings &value)
 
bools EventLog ()
 {Yes/True* | No/False} Default is YES for CapControl. More...
 
CapControlBatchEventLog (bool value)
 
CapControlBatchEventLog (bools &value)
 
strings UserModel ()
 Name of DLL containing user-written CapControl model, overriding the default model. More...
 
CapControlBatchUserModel (const string &value)
 
CapControlBatchUserModel (strings &value)
 
strings UserData ()
 String (in quotes or parentheses if necessary) that gets passed to the user-written CapControl model Edit function for defining the data required for that model. More...
 
CapControlBatchUserData (const string &value)
 
CapControlBatchUserData (strings &value)
 
BatchFloat64ArrayProxy pctMinkvar ()
 For PF control option, min percent of total bank kvar at which control will close capacitor switch. More...
 
CapControlBatchpctMinkvar (double value)
 
template<typename T >
CapControlBatchpctMinkvar (T &value)
 
template<typename T >
CapControlBatchpctMinkvar (typename T::iterator it_begin, typename T::iterator it_end)
 
CapControlBatchReset (bool value)
 {Yes | No} If Yes, forces Reset of this CapControl. More...
 
BatchFloat64ArrayProxy basefreq ()
 Base Frequency for ratings. More...
 
CapControlBatchbasefreq (double value)
 
template<typename T >
CapControlBatchbasefreq (T &value)
 
template<typename T >
CapControlBatchbasefreq (typename T::iterator it_begin, typename T::iterator it_end)
 
bools enabled ()
 {Yes|No or True|False} Indicates whether this element is enabled. More...
 
CapControlBatchenabled (bool value)
 
CapControlBatchenabled (bools &value)
 
CapControlBatchlike (const string &value)
 Make like another object, e.g. More...
 
CapControlBatchlike (const char *value)
 Make like another object, e.g. More...
 
- Public Member Functions inherited from dss::obj::DSSBatch
 DSSBatch (APIUtil *util, int32_t cls_idx)
 Create a batch of all elements in the DSS class.
 
 DSSBatch (APIUtil *util, int32_t cls_idx, int32_t prop_idx, int32_t prop_value)
 Create a batch of all elements that match an integer property value.
 
 DSSBatch (APIUtil *util, int32_t cls_idx, const char *regexp)
 Create a batch of all elements that match a regular expression.
 
 DSSBatch (APIUtil *util)
 Create an uninitialized batch instance.
 
strings name ()
 

Additional Inherited Members

- Public Attributes inherited from dss::obj::DSSBatch
APIUtilapi_util
 
void ** pointer
 
int32_t count [2]
 
- Protected Member Functions inherited from dss::obj::DSSBatch
void check_for_error ()
 
bools get_batch_bool (int32_t index)
 
std::vector< complex > get_batch_complex (int32_t index)
 
template<typename T = VectorXd>
std::vector< T > get_batch_valarray (int32_t index)
 
void set_batch_complex_for_each (int32_t index, std::vector< complex > &values)
 
template<typename T >
void set_batch_val (int32_t index, const T &value)
 
template<typename T = VectorXd>
get_batch_val (int32_t index)
 
template<typename T >
void set_batch_val_for_each (int32_t index, typename T::iterator v, typename T::iterator v_end)
 
- Static Protected Member Functions inherited from dss::obj::DSSBatch
template<typename T = VectorXd>
static T get_batch_val (int32_t index, DSSBatch &batch)
 

Member Function Documentation

◆ basefreq()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::basefreq ( )
inline

Base Frequency for ratings.

DSS property name: basefreq, DSS property index: 23

◆ capacitor()

strings dss::obj::CapControlBatch::capacitor ( )
inline

Name of Capacitor element which the CapControl controls.

No Default; Must be specified.Do not specify the full object name; "Capacitor" is assumed for the object class. Example:

Capacitor=cap1

DSS property name: capacitor, DSS property index: 3

◆ capacitor_obj()

std::vector< dss::obj::Capacitor > dss::obj::CapControlBatch::capacitor_obj ( )
inline

Name of Capacitor element which the CapControl controls.

No Default; Must be specified.Do not specify the full object name; "Capacitor" is assumed for the object class. Example:

Capacitor=cap1

DSS property name: capacitor, DSS property index: 3

◆ CTPhase()

BatchInt32ArrayProxy dss::obj::CapControlBatch::CTPhase ( )
inline

Number of the phase being monitored for CURRENT control or one of {AVG | MAX | MIN} for all phases.

Default=1. If delta or L-L connection, enter the first or the two phases being monitored [1-2, 2-3, 3-1]. Must be less than the number of phases. Does not apply to kvar control which uses all phases by default.

DSS property name: CTPhase, DSS property index: 15

◆ CTPhase_str()

strings dss::obj::CapControlBatch::CTPhase_str ( )
inline

Number of the phase being monitored for CURRENT control or one of {AVG | MAX | MIN} for all phases.

Default=1. If delta or L-L connection, enter the first or the two phases being monitored [1-2, 2-3, 3-1]. Must be less than the number of phases. Does not apply to kvar control which uses all phases by default.

DSS property name: CTPhase, DSS property index: 15

◆ CTratio()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::CTratio ( )
inline

Ratio of the CT from line amps to control ampere setting for current and kvar control types.

DSS property name: CTratio, DSS property index: 6

◆ DeadTime()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::DeadTime ( )
inline

Dead time after capacitor is turned OFF before it can be turned back ON.

Default is 300 sec.

DSS property name: DeadTime, DSS property index: 14

◆ Delay()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::Delay ( )
inline

Time delay, in seconds, from when the control is armed before it sends out the switching command to turn ON.

The control may reset before the action actually occurs. This is used to determine which capacity control will act first. Default is 15. You may specify any floating point number to achieve a model of whatever condition is necessary.

DSS property name: Delay, DSS property index: 9

◆ DelayOFF()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::DelayOFF ( )
inline

Time delay, in seconds, for control to turn OFF when present state is ON.

Default is 15.

DSS property name: DelayOFF, DSS property index: 13

◆ element()

strings dss::obj::CapControlBatch::element ( )
inline

Full object name of the circuit element, typically a line or transformer, to which the capacitor control's PT and/or CT are connected.There is no default; must be specified.

DSS property name: element, DSS property index: 1

◆ element_obj()

std::vector< dss::obj::DSSObj > dss::obj::CapControlBatch::element_obj ( )
inline

Full object name of the circuit element, typically a line or transformer, to which the capacitor control's PT and/or CT are connected.There is no default; must be specified.

DSS property name: element, DSS property index: 1

◆ enabled()

bools dss::obj::CapControlBatch::enabled ( )
inline

{Yes|No or True|False} Indicates whether this element is enabled.

DSS property name: enabled, DSS property index: 24

◆ EventLog()

bools dss::obj::CapControlBatch::EventLog ( )
inline

{Yes/True* | No/False} Default is YES for CapControl.

Log control actions to Eventlog.

DSS property name: EventLog, DSS property index: 18

◆ like() [1/2]

CapControlBatch & dss::obj::CapControlBatch::like ( const char *  value)
inline

Make like another object, e.g.

:

New Capacitor.C2 like=c1 ...

DSS property name: like, DSS property index: 25

◆ like() [2/2]

CapControlBatch & dss::obj::CapControlBatch::like ( const string &  value)
inline

Make like another object, e.g.

:

New Capacitor.C2 like=c1 ...

DSS property name: like, DSS property index: 25

◆ OFFsetting()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::OFFsetting ( )
inline

Value at which the control arms to switch the capacitor OFF.

(See help for ONsetting)For Time control, is OK to have Off time the next day ( < On time)

DSS property name: OFFsetting, DSS property index: 8

◆ ONsetting()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::ONsetting ( )
inline

Value at which the control arms to switch the capacitor ON (or ratchet up a step).

Type of Control:

Current: Line Amps / CTratio Voltage: Line-Neutral (or Line-Line for delta) Volts / PTratio kvar: Total kvar, all phases (3-phase for pos seq model). This is directional. PF: Power Factor, Total power in monitored terminal. Negative for Leading. Time: Hrs from Midnight as a floating point number (decimal). 7:30am would be entered as 7.5.

DSS property name: ONsetting, DSS property index: 7

◆ pctMinkvar()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::pctMinkvar ( )
inline

For PF control option, min percent of total bank kvar at which control will close capacitor switch.

Default = 50.

DSS property name: pctMinkvar, DSS property index: 21

◆ PTPhase()

BatchInt32ArrayProxy dss::obj::CapControlBatch::PTPhase ( )
inline

Number of the phase being monitored for VOLTAGE control or one of {AVG | MAX | MIN} for all phases.

Default=1. If delta or L-L connection, enter the first or the two phases being monitored [1-2, 2-3, 3-1]. Must be less than the number of phases. Does not apply to kvar control which uses all phases by default.

DSS property name: PTPhase, DSS property index: 16

◆ PTPhase_str()

strings dss::obj::CapControlBatch::PTPhase_str ( )
inline

Number of the phase being monitored for VOLTAGE control or one of {AVG | MAX | MIN} for all phases.

Default=1. If delta or L-L connection, enter the first or the two phases being monitored [1-2, 2-3, 3-1]. Must be less than the number of phases. Does not apply to kvar control which uses all phases by default.

DSS property name: PTPhase, DSS property index: 16

◆ PTratio()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::PTratio ( )
inline

Ratio of the PT that converts the monitored voltage to the control voltage.

Default is 60. If the capacitor is Wye, the 1st phase line-to-neutral voltage is monitored. Else, the line-to-line voltage (1st - 2nd phase) is monitored.

DSS property name: PTratio, DSS property index: 5

◆ Reset()

CapControlBatch & dss::obj::CapControlBatch::Reset ( bool  value)
inline

{Yes | No} If Yes, forces Reset of this CapControl.

DSS property name: Reset, DSS property index: 22

◆ terminal()

BatchInt32ArrayProxy dss::obj::CapControlBatch::terminal ( )
inline

Number of the terminal of the circuit element to which the CapControl is connected.

1 or 2, typically. Default is 1.

DSS property name: terminal, DSS property index: 2

◆ type()

BatchInt32ArrayProxy dss::obj::CapControlBatch::type ( )
inline

{Current | voltage | kvar | PF | time } Control type.

Specify the ONsetting and OFFsetting appropriately with the type of control. (See help for ONsetting)

DSS property name: type, DSS property index: 4

◆ type_str()

strings dss::obj::CapControlBatch::type_str ( )
inline

{Current | voltage | kvar | PF | time } Control type.

Specify the ONsetting and OFFsetting appropriately with the type of control. (See help for ONsetting)

DSS property name: type, DSS property index: 4

◆ UserData()

strings dss::obj::CapControlBatch::UserData ( )
inline

String (in quotes or parentheses if necessary) that gets passed to the user-written CapControl model Edit function for defining the data required for that model.

DSS property name: UserData, DSS property index: 20

◆ UserModel()

strings dss::obj::CapControlBatch::UserModel ( )
inline

Name of DLL containing user-written CapControl model, overriding the default model.

Set to "none" to negate previous setting.

DSS property name: UserModel, DSS property index: 19

◆ VBus()

strings dss::obj::CapControlBatch::VBus ( )
inline

Name of bus to use for voltage override function.

Default is bus at monitored terminal. Sometimes it is useful to monitor a bus in another location to emulate various DMS control algorithms.

DSS property name: VBus, DSS property index: 17

◆ Vmax()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::Vmax ( )
inline

Maximum voltage, in volts.

If the voltage across the capacitor divided by the PTRATIO is greater than this voltage, the capacitor will switch OFF regardless of other control settings. Default is 126 (goes with a PT ratio of 60 for 12.47 kV system).

DSS property name: Vmax, DSS property index: 11

◆ Vmin()

BatchFloat64ArrayProxy dss::obj::CapControlBatch::Vmin ( )
inline

Minimum voltage, in volts.

If the voltage across the capacitor divided by the PTRATIO is less than this voltage, the capacitor will switch ON regardless of other control settings. Default is 115 (goes with a PT ratio of 60 for 12.47 kV system).

DSS property name: Vmin, DSS property index: 12

◆ VoltOverride()

bools dss::obj::CapControlBatch::VoltOverride ( )
inline

{Yes | No} Default is No.

Switch to indicate whether VOLTAGE OVERRIDE is to be considered. Vmax and Vmin must be set to reasonable values if this property is Yes.

DSS property name: VoltOverride, DSS property index: 10


The documentation for this class was generated from the following file: