Template Class TransmissionLine

Inheritance Relationships

Base Type

Class Documentation

template<class ScalarT, typename IdxT>
class TransmissionLine : public GridKit::CircuitComponent<ScalarT, IdxT>

Declaration of a TransmissionLine class.

Model from Adam Birchfield paper (medium distances < 2km). See also textbooks “Power System Analysis” by Grainger and “Power System Dynamics and Stability” by Sauer & Pai

Note

Not used in the Microgrid model.

Public Functions

TransmissionLine(IdxT id, RealT R, RealT X, RealT B)

Constructor for a TransmissionLine model.

Calls default ModelEvaluatorImpl constructor.

This is the Medium distance form with the use of the admittance matrix. Since the line is of medium length then there is no real part for shunt admittance

Todo:

needs to used in a model

test for correctness

virtual int initialize()

Initialization of the grid model

virtual int evaluateInternalResidual() final

Evaluate residual of transmission line.

The complex admittance matrix is: [[ Y/2 + 1/Z, -1/Z]; [ -1/Z, Y/2 + 1/Z]] = [[R/|Z|, -R/|Z|]; [-R/|Z|, R/|Z|]] + i [[B/2 - X/|Z|, X/|Z|]; [X/|Z|, B/2 - X/|Z|]] = Dre + i Dim

Then Ire = Dre Vre - Dim Vim Iim = Dre Vim + Dim Vre

To express this for Modified Nodal Analysis the Voltages of the admittance matrix are put into voltage drops

virtual int evaluateExternalResidual() final

Evaluate all of the residuals of external variables of the component, modifying f_.

Returns:

An error code, or 0 if successful.

virtual int evaluateJacobian()

Generate Jacobian for Transmission Line.

Template Parameters:
  • ScalarT

  • IdxT

Returns:

int