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

virtual int evaluateResidual()

Evaluate the model’s residual function.

For models which can be appropriately modeled in semi-explicit form, this will evaluate

\[F(t, y, \dot{y}) = f(t,y) - M \dot{y},\]
where
\[M\]
is the mass matrix. For models which can be modeled in Hessenberg form,
\[M\]
should be a simple indicator function for if the variable is differential (if
\[\dot{y}\]
appears in its equation). This indicator should be given by tag().

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?