Template Class BaseBus
Defined in File BaseBus.hpp
Inheritance Relationships
Base Type
public GridKit::ModelEvaluatorImpl< ScalarT, IdxT >(Template Class ModelEvaluatorImpl)
Derived Types
public GridKit::BusPQ< ScalarT, IdxT >(Template Class BusPQ)public GridKit::BusPV< ScalarT, IdxT >(Template Class BusPV)public GridKit::BusSlack< ScalarT, IdxT >(Template Class BusSlack)
Class Documentation
-
template<class ScalarT, typename IdxT>
class BaseBus : public GridKit::ModelEvaluatorImpl<ScalarT, IdxT> Base class for all power flow buses.
Derived bus types: 0 - swing bus (V and theta are constants) 1 - PV bus (P and V are constants) 2 - PQ bus (P and Q are constants)
- Todo:
Consider static instead of dynamic polymorphism for bus types. Create Bus class that takes template parameter BusType.
Subclassed by GridKit::BusPQ< ScalarT, IdxT >, GridKit::BusPV< ScalarT, IdxT >, GridKit::BusSlack< ScalarT, IdxT >
Public Functions
-
inline virtual int setAbsoluteTolerance(RealT)
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.