Template Class BusPV
Defined in File BusPV.hpp
Inheritance Relationships
Base Type
public GridKit::BaseBus< ScalarT, IdxT >(Template Class BaseBus)
Class Documentation
-
template<class ScalarT, typename IdxT>
class BusPV : public GridKit::BaseBus<ScalarT, IdxT> Implementation of a PV bus.
Voltage V and phase theta are variables in PV bus model. Active and reactive power, P and Q, are residual components.
Public Functions
-
BusPV()
Constructor for a PV bus.
- Todo:
Arguments that should be passed to ModelEvaluatorImpl constructor:
Number of equations = 1 (size_)
Number of variables = 1 (size_)
Number of quadratures = 0
Number of optimization parameters = 0
-
BusPV(ScalarT V, ScalarT theta0)
Constructor for a PV bus.
- Todo:
Arguments that should be passed to ModelEvaluatorImpl constructor:
Number of equations = 1 (size_)
Number of variables = 1 (size_)
Number of quadratures = 0
Number of optimization parameters = 0
-
virtual int allocate()
allocate method resizes local solution and residual vectors.
-
virtual int initialize()
initialize method sets bus variables to stored initial values.
-
virtual int evaluateResidual()
PV bus does not compute residuals, so here we just reset residual values.
Warning
This implementation assumes bus residuals are always evaluated before component model residuals.
-
virtual int initializeAdjoint()
initialize method sets bus variables to stored initial values.
-
BusPV()