Template Class SynchronousMachine

Inheritance Relationships

Base Type

Class Documentation

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

Declaration of a SynchronousMachine class.

Public Functions

SynchronousMachine(IdxT id, RealT Lls, std::tuple<RealT, RealT> Llkq, RealT Llfd, RealT Llkd, RealT Lmq, RealT Lmd, RealT Rs, std::tuple<RealT, RealT> Rkq, RealT Rfd, RealT Rkd, RealT RJ, RealT P, RealT mub)

Constructor for a constant SynchronousMachine model.

Calls default ModelEvaluatorImpl constructor.

Todo:

This model’s equations are not finished

needs to be tested for correctness

Template Parameters:
  • ScalarT – - floating point type for the model

  • IdxT – - integer index type for the model

Parameters:
  • id[in] - unique identifier for the component

  • Lls[in] - stator leakage inductance

  • Llkq[in] - tuple of damper leakage reactances

  • Llfd[in] - field leakage reactance

  • Llkd[in] - damper leakage reactance

  • Lmq[in] - quadrature axis magnetizing reactance

  • Lmd[in] - direct axis magnetizing reactance

  • Rs[in] - stator resistance

  • Rkq[in] - tuple of damper resistances

  • Rfd[in] - field resistance

  • Rkd[in] - damper resistance

  • RJ[in] - rotor moment of inertia

  • P[in] - number of poles

  • mub[in] - rated frequency

virtual int initialize()

Initialization of the grid model

virtual int evaluateInternalResidual() final

Compute the resisdual of the component.

Todo:

not finished

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.