Template Class GroundedBus

Inheritance Relationships

Base Type

Class Documentation

template<typename ScalarT, typename IdxT>
class GroundedBus : public GridKit::PowerElectronics::NodeBase<ScalarT, IdxT>

Public Functions

inline virtual int allocate() final

Allocate all internal memory used by the model.

Post:

Changing the model by changing its internal topology (i.e. size(), nnz(), sparsity pattern in getCsrJacobian(), etc.) may invalidate the model until allocate() is called again. Calling any function that requires allocate() to be called in between modifying the model and reallocating may invoke undefined behaviour.