![]() |
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 Member Functions | |
| IGenerators (dss::APIUtil *util) | |
| strings | AllNames () |
| Array of strings with all Generator names in the circuit. | |
| int32_t | Count () |
| Number of Generator objects in active circuit. | |
| int32_t | First () |
| Sets the first Generator active. More... | |
| string | Name () |
| Get the name of the current active Generator. | |
| IGenerators & | Name (const char *value) |
| Sets the active Generator by Name. | |
| IGenerators & | Name (const string &value) |
| int32_t | Next () |
| Sets the next Generator active. More... | |
| int32_t | idx () |
| Get active Generator by index; index is 1-based: 1..count. | |
| void | idx (int32_t value) |
| Get active Generator by index; index is 1-based: 1..count. | |
| bool | ForcedON () |
| Indicates whether the generator is forced ON regardles of other dispatch criteria. | |
| IGenerators & | ForcedON (bool value) |
| int32_t | Model () |
| Generator Model. | |
| IGenerators & | Model (int32_t value) |
| double | PF () |
| Power factor (pos. More... | |
| IGenerators & | PF (double value) |
| int32_t | Phases () |
| Number of phases. | |
| IGenerators & | Phases (int32_t value) |
| strings | RegisterNames () |
| Array of Names of all generator energy meter registers. | |
| template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>> | |
| VectorT | RegisterValues () |
| Array of valus in generator energy meter registers. | |
| double | Vmaxpu () |
| Vmaxpu for generator model. | |
| IGenerators & | Vmaxpu (double value) |
| double | Vminpu () |
| Vminpu for Generator model. | |
| IGenerators & | Vminpu (double value) |
| double | kV () |
| Voltage base for the active generator, kV. | |
| IGenerators & | kV (double value) |
| double | kVArated () |
| kVA rating of the generator | |
| IGenerators & | kVArated (double value) |
| double | kW () |
| kW output for the active generator. More... | |
| IGenerators & | kW (double value) |
| double | kvar () |
| kvar output for the active generator. More... | |
| IGenerators & | kvar (double value) |
| string | daily () |
| Name of the loadshape for a daily generation profile. More... | |
| IGenerators & | daily (const char *value) |
| IGenerators & | daily (const string &value) |
| string | duty () |
| Name of the loadshape for a duty cycle simulation. More... | |
| IGenerators & | duty (const char *value) |
| IGenerators & | duty (const string &value) |
| string | Yearly () |
| Name of yearly loadshape. More... | |
| IGenerators & | Yearly (const char *value) |
| IGenerators & | Yearly (const string &value) |
| int32_t | Status () |
| Response to dispatch multipliers: Fixed=1 (dispatch multipliers do not apply), Variable=0 (follows curves). More... | |
| IGenerators & | Status (int32_t value) |
| bool | IsDelta () |
| Generator connection. More... | |
| IGenerators & | IsDelta (bool value) |
| double | kva () |
| kVA rating of electrical machine. More... | |
| IGenerators & | kva (double value) |
| int32_t | Class () |
| An arbitrary integer number representing the class of Generator so that Generator values may be segregated by class. More... | |
| IGenerators & | Class (int32_t value) |
| string | Bus1 () |
| Bus to which the Generator is connected. More... | |
| IGenerators & | Bus1 (const char *value) |
| IGenerators & | Bus1 (const string &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. | |
| APIUtil * | api_util |
| API utility functions. | |
|
inline |
Bus to which the Generator is connected.
May include specific node specification.
(API Extension)
|
inline |
An arbitrary integer number representing the class of Generator so that Generator values may be segregated by class.
(API Extension)
|
inline |
Name of the loadshape for a daily generation profile.
(API Extension)
|
inline |
Name of the loadshape for a duty cycle simulation.
(API Extension)
|
inline |
Sets the first Generator active.
Returns 0 if no more.
|
inline |
Generator connection.
True/1 if delta connection, False/0 if wye.
(API Extension)
|
inline |
kVA rating of electrical machine.
Applied to machine or inverter definition for Dynamics mode solutions.
(API Extension)
|
inline |
kvar output for the active generator.
Updates power factor based on present kW value.
|
inline |
kW output for the active generator.
kvar is updated for current power factor.
|
inline |
Sets the next Generator active.
Returns 0 if no more.
|
inline |
Power factor (pos.
= producing vars). Updates kvar based on present kW value.
|
inline |
Response to dispatch multipliers: Fixed=1 (dispatch multipliers do not apply), Variable=0 (follows curves).
Related enumeration: GeneratorStatus
(API Extension)
|
inline |
Name of yearly loadshape.
(API Extension)