Template Class Bus

Inheritance Relationships

Base Type

Class Documentation

template<typename scalar_type, typename index_type>
class Bus : public GridKit::EMT::Component<scalar_type, index_type>

N-phase bus, whose residuals collect the injected currents.

Public Functions

explicit Bus(const ModelDataT &data)

Construct a bus with N phases.

Layout: internal variable v of size N, with no terminal, input or output. The current balance holds only what the devices add at their terminals.

virtual Model::ConfigurationChecks verify() const override

Check that N and kv are positive.

Returns:

The failed checks.

virtual int setAbsoluteTolerance(RealT rel_tol) override

Set the tolerances of the voltages to rel_tol times the bus base voltage.

Parameters:

rel_tol – [in] Relative tolerance of the integrator.

Returns:

0.

Pre:

The system has bound this bus.