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 GICsource::Properties | Properties |
typedef GICsource | BatchElementClass |
Public Member Functions | |
GICsourceBatch (APIUtil *util) | |
Create a batch of all GICsource elements. | |
GICsourceBatch (APIUtil *util, int32_t prop_idx, int32_t prop_value) | |
Create a batch of all GICsource elements that match an integer property value. | |
GICsourceBatch (APIUtil *util, const char *regexp) | |
Create a batch of all GICsource elements that match a regular expression. | |
GICsourceBatch & | begin_edit () |
GICsourceBatch & | end_edit (int32_t num_edits=1) |
BatchFloat64ArrayProxy | Volts () |
Voltage magnitude, in volts, of the GIC voltage induced across the associated line. More... | |
GICsourceBatch & | Volts (double value) |
template<typename T > | |
GICsourceBatch & | Volts (T &value) |
template<typename T > | |
GICsourceBatch & | Volts (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | angle () |
Phase angle in degrees of first phase. More... | |
GICsourceBatch & | angle (double value) |
template<typename T > | |
GICsourceBatch & | angle (T &value) |
template<typename T > | |
GICsourceBatch & | angle (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | frequency () |
Source frequency. More... | |
GICsourceBatch & | frequency (double value) |
template<typename T > | |
GICsourceBatch & | frequency (T &value) |
template<typename T > | |
GICsourceBatch & | frequency (typename T::iterator it_begin, typename T::iterator it_end) |
BatchInt32ArrayProxy | phases () |
Number of phases. More... | |
GICsourceBatch & | phases (int32_t value) |
template<typename T > | |
GICsourceBatch & | phases (T &value) |
template<typename T > | |
GICsourceBatch & | phases (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | EN () |
Northward Electric field (V/km). More... | |
GICsourceBatch & | EN (double value) |
template<typename T > | |
GICsourceBatch & | EN (T &value) |
template<typename T > | |
GICsourceBatch & | EN (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | EE () |
Eastward Electric field (V/km). More... | |
GICsourceBatch & | EE (double value) |
template<typename T > | |
GICsourceBatch & | EE (T &value) |
template<typename T > | |
GICsourceBatch & | EE (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | Lat1 () |
Latitude of Bus1 of the line(degrees) More... | |
GICsourceBatch & | Lat1 (double value) |
template<typename T > | |
GICsourceBatch & | Lat1 (T &value) |
template<typename T > | |
GICsourceBatch & | Lat1 (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | Lon1 () |
Longitude of Bus1 of the line (degrees) More... | |
GICsourceBatch & | Lon1 (double value) |
template<typename T > | |
GICsourceBatch & | Lon1 (T &value) |
template<typename T > | |
GICsourceBatch & | Lon1 (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | Lat2 () |
Latitude of Bus2 of the line (degrees) More... | |
GICsourceBatch & | Lat2 (double value) |
template<typename T > | |
GICsourceBatch & | Lat2 (T &value) |
template<typename T > | |
GICsourceBatch & | Lat2 (typename T::iterator it_begin, typename T::iterator it_end) |
BatchFloat64ArrayProxy | Lon2 () |
Longitude of Bus2 of the line (degrees) More... | |
GICsourceBatch & | Lon2 (double value) |
template<typename T > | |
GICsourceBatch & | Lon2 (T &value) |
template<typename T > | |
GICsourceBatch & | Lon2 (typename T::iterator it_begin, typename T::iterator it_end) |
strings | spectrum () |
Not used. More... | |
GICsourceBatch & | spectrum (dss::obj::Spectrum &value) |
GICsourceBatch & | spectrum (const string &value) |
std::vector< dss::obj::Spectrum > | spectrum_obj () |
Not used. More... | |
GICsourceBatch & | spectrum_obj (dss::obj::Spectrum &value) |
BatchFloat64ArrayProxy | basefreq () |
Not used. More... | |
GICsourceBatch & | basefreq (double value) |
template<typename T > | |
GICsourceBatch & | basefreq (T &value) |
template<typename T > | |
GICsourceBatch & | 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... | |
GICsourceBatch & | enabled (bool value) |
GICsourceBatch & | enabled (bools &value) |
GICsourceBatch & | like (const string &value) |
Make like another object, e.g. More... | |
GICsourceBatch & | 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 |
Phase angle in degrees of first phase.
Default=0.0. See Voltage property
DSS property name: angle, DSS property index: 2
|
inline |
Not used.
DSS property name: basefreq, DSS property index: 12
|
inline |
Eastward Electric field (V/km).
If specified, Voltage and Angle are computed from EN, EE, lat and lon values.
DSS property name: EE, DSS property index: 6
|
inline |
Northward Electric field (V/km).
If specified, Voltage and Angle are computed from EN, EE, lat and lon values.
DSS property name: EN, DSS property index: 5
|
inline |
{Yes|No or True|False} Indicates whether this element is enabled.
DSS property name: enabled, DSS property index: 13
|
inline |
Source frequency.
Defaults to 0.1 Hz. So GICSource=0 at power frequency.
DSS property name: frequency, DSS property index: 3
|
inline |
Latitude of Bus1 of the line(degrees)
DSS property name: Lat1, DSS property index: 7
|
inline |
Latitude of Bus2 of the line (degrees)
DSS property name: Lat2, DSS property index: 9
|
inline |
Make like another object, e.g.
:
New Capacitor.C2 like=c1 ...
DSS property name: like, DSS property index: 14
|
inline |
Make like another object, e.g.
:
New Capacitor.C2 like=c1 ...
DSS property name: like, DSS property index: 14
|
inline |
Longitude of Bus1 of the line (degrees)
DSS property name: Lon1, DSS property index: 8
|
inline |
Longitude of Bus2 of the line (degrees)
DSS property name: Lon2, DSS property index: 10
|
inline |
Number of phases.
Defaults to 3. All three phases are assumed in phase (zero sequence)
DSS property name: phases, DSS property index: 4
|
inline |
Not used.
DSS property name: spectrum, DSS property index: 11
|
inline |
Not used.
DSS property name: spectrum, DSS property index: 11
|
inline |
Voltage magnitude, in volts, of the GIC voltage induced across the associated line.
When specified, induced voltage is assumed defined by Voltage and Angle properties.
Specify this value
OR
EN, EE, lat1, lon1, lat2, lon2.
Not both!! Last one entered will take precedence. Assumed identical in each phase of the Line object.
DSS property name: Volts, DSS property index: 1