Template Class GeneratorSlack

Inheritance Relationships

Base Type

Class Documentation

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

Implementation of a power grid.

Public Functions

GeneratorSlack(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.