Template Class Load

Inheritance Relationships

Base Type

Class Documentation

template<typename scalar_type, typename index_type>
class Load : public GridKit::PhasorDynamics::Component<scalar_type, index_type>

Implementation of a constant load.

Public Functions

Load(BusT *bus)

Constructor for a pi-model load.

System sizes:

  • Number of equations = 2

  • Number of independent variables = 2

virtual int setGridKitComponentID(IdxT) final override

Set the component ID.

virtual int allocate() final override

allocate method computes sparsity pattern of the Jacobian.

virtual int initialize() final override

Initialization of the load model

virtual int tagDifferentiable() final override

Identify differential variables.

virtual int evaluateResidual() final override

Residual contribution of the load is pushed to the bus.

virtual int evaluateJacobian() final override

Jacobian evaluation not implemented.

Jacobian evaluation experimental.

Returns:

int - error code, 0 = success