Template Struct BusData

Struct Documentation

template<typename real_type, typename index_type>
struct BusData

Contains modeling data for a Bus.

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

Todo:

Decide on naming scheme for model parameters.

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
using MonitorableVariables = BusMonitorableVariables

Alias.

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.

RealT v_base = {1.0}

Voltage base in volts.

std::optional<RealT> freq_base

Override for the system-wide base frequency.

std::optional<RealT> va_base

Override for the system-wide power base.

std::set<MonitorableVariables> monitored_variables

Set indicating the variables being monitored.