Template Class Bus

Inheritance Relationships

Base Type

Class Documentation

template<typename scalar_type, typename index_type>
class Bus : public GridKit::PhasorDynamics::BusBase<scalar_type, index_type>

Implementation of a PQ bus.

Voltage V and phase theta are variables in PQ bus model. Active and reactive power, P and Q, are residual components.

Public Functions

virtual int setAbsoluteTolerance(RealT rel_tol) final override

Compute the absolute tolerance for each variable in the model.

This represents a “noise” level close to zero for which pure relative error cannot be used.

Parameters:

rel_tol – The relative tolerance which can be used to pick the absolute tolerance.

Returns:

int 0 if successful, non-zero otherwise.

inline virtual BusTypeT BusType() const final override

Pure virtual function, returns bus type (DEFAULT or SLACK).