Template Class BusSlack
Defined in File BusSlack.hpp
Inheritance Relationships
Base Type
public GridKit::BaseBus< ScalarT, IdxT >(Template Class BaseBus)
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().
-
virtual int evaluateResidual()