Template Class BusPQ
Defined in File BusPQ.hpp
Inheritance Relationships
Base Type
public GridKit::BaseBus< ScalarT, IdxT >(Template Class BaseBus)
Class Documentation
-
template<class ScalarT, typename IdxT>
class BusPQ : public GridKit::BaseBus<ScalarT, IdxT> Implementation of a PQ bus.
Voltage V and phase theta are variables in PQ bus model. Active and reactive power, P and Q, are residual components.
Public Functions
-
BusPQ()
Constructor for a PQ bus.
- Todo:
Arguments that should be passed to ModelEvaluatorImpl constructor:
Number of equations = 2 (size_)
Number of variables = 2 (size_)
Number of quadratures = 0
Number of optimization parameters = 0
-
BusPQ(ScalarT V, ScalarT theta)
BusPQ constructor.
This constructor sets initial values for voltage and phase angle.
- Todo:
Arguments that should be passed to ModelEvaluatorImpl constructor:
Number of equations = 2 (size_)
Number of variables = 2 (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()
PQ 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.
-
BusPQ()