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::classic::ILines Class Reference
Inheritance diagram for dss::classic::ILines:
[legend]
Collaboration diagram for dss::classic::ILines:
[legend]

Public Member Functions

 ILines (dss::APIUtil *util)
 
strings AllNames ()
 Array of strings with all Line names in the circuit.
 
int32_t Count ()
 Number of Line objects in active circuit.
 
int32_t First ()
 Sets the first Line active. More...
 
string Name ()
 Get the name of the current active Line.
 
ILinesName (const char *value)
 Sets the active Line by Name.
 
ILinesName (const string &value)
 
int32_t Next ()
 Sets the next Line active. More...
 
int32_t idx ()
 Get active Line by index; index is 1-based: 1..count.
 
void idx (int32_t value)
 Get active Line by index; index is 1-based: 1..count.
 
int32_t New (const char *Name)
 
int32_t New (const string &Name)
 
string Bus1 ()
 Name of bus for terminal 1.
 
ILinesBus1 (const char *value)
 
ILinesBus1 (const string &value)
 
string Bus2 ()
 Name of bus for terminal 2.
 
ILinesBus2 (const char *value)
 
ILinesBus2 (const string &value)
 
double C0 ()
 Zero Sequence capacitance, nanofarads per unit length.
 
ILinesC0 (double value)
 
double C1 ()
 Positive Sequence capacitance, nanofarads per unit length.
 
ILinesC1 (double value)
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
VectorT Cmatrix ()
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
ILinesCmatrix (const VectorT &value)
 
double EmergAmps ()
 Emergency (maximum) ampere rating of Line.
 
ILinesEmergAmps (double value)
 
string Geometry ()
 Line geometry code.
 
ILinesGeometry (const char *value)
 
ILinesGeometry (const string &value)
 
double Length ()
 Length of line section in units compatible with the LineCode definition.
 
ILinesLength (double value)
 
string LineCode ()
 Name of LineCode object that defines the impedances.
 
ILinesLineCode (const char *value)
 
ILinesLineCode (const string &value)
 
double NormAmps ()
 Normal ampere rating of Line.
 
ILinesNormAmps (double value)
 
int32_t NumCust ()
 Number of customers on this line section.
 
int32_t Parent ()
 Sets Parent of the active Line to be the active line. More...
 
int32_t Phases ()
 Number of Phases, this Line element.
 
ILinesPhases (int32_t value)
 
double R0 ()
 Zero Sequence resistance, ohms per unit length.
 
ILinesR0 (double value)
 
double R1 ()
 Positive Sequence resistance, ohms per unit length.
 
ILinesR1 (double value)
 
double Rg ()
 Earth return resistance value used to compute line impedances at power frequency.
 
ILinesRg (double value)
 
double Rho ()
 Earth Resistivity, m-ohms.
 
ILinesRho (double value)
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
VectorT Rmatrix ()
 Resistance matrix (full), ohms per unit length. More...
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
ILinesRmatrix (const VectorT &value)
 
string Spacing ()
 Line spacing code.
 
ILinesSpacing (const char *value)
 
ILinesSpacing (const string &value)
 
int32_t TotalCust ()
 Total Number of customers served from this line section.
 
int32_t Units ()
 
ILinesUnits (int32_t value)
 
double X0 ()
 Zero Sequence reactance ohms per unit length.
 
ILinesX0 (double value)
 
double X1 ()
 Positive Sequence reactance, ohms per unit length.
 
ILinesX1 (double value)
 
double Xg ()
 Earth return reactance value used to compute line impedances at power frequency.
 
ILinesXg (double value)
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
VectorT Xmatrix ()
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
ILinesXmatrix (const VectorT &value)
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
VectorT Yprim ()
 Yprimitive: Does Nothing at present on Put; Dangerous.
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
ILinesYprim (const VectorT &value)
 
double SeasonRating ()
 Delivers the rating for the current season (in Amps) if the "SeasonalRatings" option is active.
 
bool IsSwitch ()
 Sets/gets the Line element switch status. More...
 
ILinesIsSwitch (bool value)
 
- Public Member Functions inherited from dss::ContextState
 ContextState (APIUtil *util)
 

Additional Inherited Members

- Public Attributes inherited from dss::ContextState
void * ctx
 Pointer to the DSSContext for easy access.
 
APIUtilapi_util
 API utility functions.
 

Member Function Documentation

◆ First()

int32_t dss::classic::ILines::First ( )
inline

Sets the first Line active.

Returns 0 if no more.

◆ IsSwitch()

bool dss::classic::ILines::IsSwitch ( )
inline

Sets/gets the Line element switch status.

Setting it has side-effects to the line parameters.

◆ Next()

int32_t dss::classic::ILines::Next ( )
inline

Sets the next Line active.

Returns 0 if no more.

◆ Parent()

int32_t dss::classic::ILines::Parent ( )
inline

Sets Parent of the active Line to be the active line.

Returns 0 if no parent or action fails.

◆ Rmatrix()

template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>>
VectorT dss::classic::ILines::Rmatrix ( )
inline

Resistance matrix (full), ohms per unit length.

Array of doubles.


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