Template Class BusSlack

Inheritance Relationships

Base Type

Class Documentation

template<class ScalarT, typename IdxT>
class BusSlack : public GridKit::BaseBus<ScalarT, IdxT>

Implementation of a slack bus.

Slack bus sets voltage V and phase theta as constants. Active and reactive power, P and Q, are component model outputs, but are computed outside the BusSlack class.

Public Functions

BusSlack()

Constructor for a slack bus.

Arguments passed to ModelEvaluatorImpl:

  • Number of equations = 0 (size_)

  • Number of variables = 0 (size_)

  • Number of quadratures = 0

  • Number of optimization parameters = 0

BusSlack(ScalarT V, ScalarT theta)

BusSlack constructor.

Arguments passed to ModelEvaluatorImpl:

  • Number of equations = 0 (size_)

  • Number of variables = 0 (size_)

  • Number of quadratures = 0

  • Number of optimization parameters = 0

inline virtual ScalarT &V()

Todo:

Should slack bus allow changing voltage?

inline virtual ScalarT &theta()

Todo:

Should slack bus allow changing phase?

inline virtual ScalarT &lambdaP()

Todo:

Should slack bus allow changing voltage?

inline virtual ScalarT &lambdaQ()

Todo:

Should slack bus allow changing phase?