Template Class LinearTransformer

Inheritance Relationships

Base Type

Class Documentation

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

Declaration of a LinearTransformer class.

Public Functions

LinearTransformer(IdxT id, RealT L0, RealT L1, RealT R0, RealT R1, RealT M)

Constructor for a LinearTransformer model.

Calls default ModelEvaluatorImpl constructor.

Todo:

Not tested in any model yet. Should be

Has not been 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

  • L0[in] - inductance 0

  • L1[in] - inductance 1

  • R0[in] - resistance 0

  • R1[in] - resistance 1

  • M[in] - mutual inductance

virtual int initialize()

Initialization of the grid model

virtual int evaluateInternalResidual() final

Computes the component resisdual.

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.