Template Struct BusData

Inheritance Relationships

Base Type

  • public GridKit::PhasorDynamics::ComponentData< real_type, index_type, BusParameters, Utilities::EmptyEnum, BusSignalInputs, BusSignalOutputs, BusMonitorableVariables > (Template Struct ComponentData)

Struct Documentation

template<typename real_type, typename index_type>
struct BusData : public GridKit::PhasorDynamics::ComponentData<real_type, index_type, BusParameters, Utilities::EmptyEnum, BusSignalInputs, BusSignalOutputs, BusMonitorableVariables>

Contains modeling data for a Bus.

Integer parameters are of the same type as matrix and vector indices.

Template Parameters:
  • real_type – Real parameter data type

  • index_type – Integer parameter data type

Public Types

enum class BusType

Enumeration over the kinds of bus this data structure can be for.

Values:

enumerator INVALID
enumerator DEFAULT
enumerator SLACK
enumerator SIGNAL_VOLTAGE_OUT

Bus with voltage signal outputs and current signal inputs.

enumerator SIGNAL_VOLTAGE_IN

Bus with voltage signal inputs and current signal outputs.

Public Members

std::string name

A name given to this bus.

RealT Vr0 = {1.0}

Initial value for the real bus voltage.

RealT Vi0 = {0.0}

Initial value for the imaginary bus voltage.

IdxT bus_id = {0}

The unique ID of the bus.

BusType bus_type = {BusType::INVALID}

The kind of bus this data is for.