DSS C-API and dss.hpp
DSS C-API and dss.hpp expose a customized and extended implementation of OpenDSS to C and C++.
|
Public Types | |
typedef GenDispatcher::Properties | Properties |
typedef GenDispatcher | BatchElementClass |
Public Member Functions | |
GenDispatcherBatch (APIUtil *util) | |
Create a batch of all GenDispatcher elements. | |
GenDispatcherBatch (APIUtil *util, int32_t prop_idx, int32_t prop_value) | |
Create a batch of all GenDispatcher elements that match an integer property value. | |
GenDispatcherBatch (APIUtil *util, const char *regexp) | |
Create a batch of all GenDispatcher elements that match a regular expression. | |
GenDispatcherBatch & | begin_edit () |
GenDispatcherBatch & | end_edit (int32_t num_edits=1) |
strings | Element () |
Full object name of the circuit element, typically a line or transformer, which the control is monitoring. More... | |
GenDispatcherBatch & | Element (dss::obj::DSSObj &value) |
GenDispatcherBatch & | Element (const string &value) |
std::vector< dss::obj::DSSObj > | Element_obj () |
Full object name of the circuit element, typically a line or transformer, which the control is monitoring. More... | |
GenDispatcherBatch & | Element_obj (dss::obj::DSSObj &value) |
BatchInt32ArrayProxy | Terminal () |
Number of the terminal of the circuit element to which the GenDispatcher control is connected. More... | |
GenDispatcherBatch & | Terminal (int32_t value) |
template<typename T > | |
GenDispatcherBatch & | Terminal (T &value) |
template<typename T > | |
GenDispatcherBatch & | Terminal (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | kWLimit () |
kW Limit for the monitored element. More... | |
GenDispatcherBatch & | kWLimit (double value) |
template<typename T > | |
GenDispatcherBatch & | kWLimit (T &value) |
template<typename T > | |
GenDispatcherBatch & | kWLimit (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | kWBand () |
Bandwidth (kW) of the dead band around the target limit.No dispatch changes are attempted if the power in the monitored terminal stays within this band. More... | |
GenDispatcherBatch & | kWBand (double value) |
template<typename T > | |
GenDispatcherBatch & | kWBand (T &value) |
template<typename T > | |
GenDispatcherBatch & | kWBand (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | kvarlimit () |
Max kvar to be delivered through the element. More... | |
GenDispatcherBatch & | kvarlimit (double value) |
template<typename T > | |
GenDispatcherBatch & | kvarlimit (T &value) |
template<typename T > | |
GenDispatcherBatch & | kvarlimit (typename T::iterator it_begin, typename T::iterator it_end) |
std::vector< strings > | GenList () |
Array list of generators to be dispatched. More... | |
GenDispatcherBatch & | GenList (strings &value) |
std::vector< VectorXd > | Weights () |
GenDispatcher.Weights. More... | |
GenDispatcherBatch & | Weights (VectorXd &value) |
BatchFloat64ArrayProxy | basefreq () |
Base Frequency for ratings. More... | |
GenDispatcherBatch & | basefreq (double value) |
template<typename T > | |
GenDispatcherBatch & | basefreq (T &value) |
template<typename T > | |
GenDispatcherBatch & | basefreq (typename T::iterator it_begin, typename T::iterator it_end) |
bools | enabled () |
{Yes|No or True|False} Indicates whether this element is enabled. More... | |
GenDispatcherBatch & | enabled (bool value) |
GenDispatcherBatch & | enabled (bools &value) |
GenDispatcherBatch & | like (const string &value) |
Make like another object, e.g. More... | |
GenDispatcherBatch & | like (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 | |
APIUtil * | api_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> | |
T | 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) |
|
inline |
Base Frequency for ratings.
DSS property name: basefreq, DSS property index: 8
|
inline |
Full object name of the circuit element, typically a line or transformer, which the control is monitoring.
There is no default; must be specified.
DSS property name: Element, DSS property index: 1
|
inline |
Full object name of the circuit element, typically a line or transformer, which the control is monitoring.
There is no default; must be specified.
DSS property name: Element, DSS property index: 1
|
inline |
{Yes|No or True|False} Indicates whether this element is enabled.
DSS property name: enabled, DSS property index: 9
|
inline |
Array list of generators to be dispatched.
If not specified, all generators in the circuit are assumed dispatchable.
DSS property name: GenList, DSS property index: 6
|
inline |
Max kvar to be delivered through the element.
Uses same dead band as kW.
DSS property name: kvarlimit, DSS property index: 5
|
inline |
Bandwidth (kW) of the dead band around the target limit.No dispatch changes are attempted if the power in the monitored terminal stays within this band.
DSS property name: kWBand, DSS property index: 4
|
inline |
kW Limit for the monitored element.
The generators are dispatched to hold the power in band.
DSS property name: kWLimit, DSS property index: 3
|
inline |
Make like another object, e.g.
:
New Capacitor.C2 like=c1 ...
DSS property name: like, DSS property index: 10
|
inline |
Make like another object, e.g.
:
New Capacitor.C2 like=c1 ...
DSS property name: like, DSS property index: 10
|
inline |
Number of the terminal of the circuit element to which the GenDispatcher control is connected.
1 or 2, typically. Default is 1. Make sure you have the direction on the power matching the sign of kWLimit.
DSS property name: Terminal, DSS property index: 2
|
inline |
DSS property name: Weights, DSS property index: 7