Template Class Branch

Inheritance Relationships

Base Type

Class Documentation

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

Implementation of a pi-model branch between two buses.

Public Functions

Branch(bus_type *bus1, bus_type *bus2)

Constructor for a pi-model branch.

Arguments passed to ModelEvaluatorImpl:

  • Number of equations = 0

  • Number of independent variables = 0

  • Number of quadratures = 0

  • Number of optimization parameters = 0

virtual int allocate()

allocate method computes sparsity pattern of the Jacobian.

virtual int initialize()

Initialization of the branch model

virtual int tagDifferentiable()

Identify differential variables.

virtual int evaluateResidual()

Residual contribution of the branch is pushed to the two terminal buses.

Todo:

Add and verify conductance to ground (B and G)