Template Class GeneratorPV

Inheritance Relationships

Base Type

Class Documentation

template<class ScalarT, typename IdxT>
class GeneratorPV : public GridKit::GeneratorBase<ScalarT, IdxT>

Implementation of a PV generator.

Public Functions

GeneratorPV(bus_type *bus, GenData &data)

Constructor for a constant load model.

Calls default ModelEvaluatorImpl constructor.

virtual int allocate()

allocate method computes sparsity pattern of the Jacobian.

virtual int initialize()

Initialization of the grid model

virtual int evaluateResidual()

Contributes to the bus residual.

Must be connected to a PQ bus.

inline virtual ScalarT &Q()

Reactive power excess on PV bus.

Returns:

reference to negative PV generator reactive power

inline virtual const ScalarT &Q() const

Reactive power excess on PV bus.

Returns:

const reference to negative PV generator reactive power