Template Class MicrogridBusDQ

Inheritance Relationships

Base Type

Class Documentation

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

Declaration of a MicrogridBusDQ class.

Public Functions

MicrogridBusDQ(IdxT id, RealT RN, NodeT *node1)

Constructor for a constant MicrogridBusDQ model.

Calls default ModelEvaluatorImpl constructor.

In DQ space Each microgrid line has a virtual resistance RN Model

is from paper: “Modeling, Analysis and Testing of Autonomous Operation

of an Inverter-Based Microgrid”, Nagaraju Pogaku, Milan Prodanovic, and Timothy C. Green, Section E

virtual int initialize()

Initialization of the grid model

virtual int allocate() final

Allocates all of the internal buffers for the component. If a components needs a more specialized allocation (such as by having additional internal buffers), it should override this function and then call it in the body to ensure it stays up-to-date with new implementations.

Pre:

nnz_ and size_ must be set. Typically these are set by the child object in its constructor.

Returns:

An error code, or 0 if success

virtual int evaluateInternalResidual() final

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

Returns:

An error code, or 0 if successful.

virtual int evaluateExternalResidual() final

Evaluate residual This model has “Virtual resistors”. The voltage of the bus divided by its virtual resistance. The components are external to allow for outside components to add inductances to the terms.

refernce to equations in class header

virtual int evaluateJacobian()

Generate Jacobian.

Template Parameters:
  • ScalarT

  • IdxT

Returns:

int