Template Class Generator2

Inheritance Relationships

Base Type

Class Documentation

template<class ScalarT, typename IdxT>
class Generator2 : public GridKit::ModelEvaluatorImpl<ScalarT, IdxT>

Implementation of a second order generator model.

Public Functions

Generator2(bus_type *bus)

Constructor for a simple generator model.

Arguments passed to ModelEvaluatorImpl:

  • Number of equations = 2

  • Number of quadratures = 1

  • Number of optimization parameters = 1

virtual int allocate()

allocate method computes sparsity pattern of the Jacobian.