Template Class LineLumped
Defined in File LineLumped.hpp
Inheritance Relationships
Base Type
public GridKit::EMT::Component< scalar_type, index_type >(Template Class Component)
Class Documentation
-
template<typename scalar_type, typename index_type>
class LineLumped : public GridKit::EMT::Component<scalar_type, index_type> N-phase, K-conductor lumped line, with conductor k on phase c_k.
Public Functions
-
explicit LineLumped(const ModelDataT &data)
Construct a line of
Kconductors onNphases.Layout: internal variable
i12of sizeK, terminalsbus1andbus2of sizeN. Submodelzreadsi12as its input, and its output is added to the residual ofi12. When the case givesYp, submodelsy1andy2read the conductor voltages at their terminals, and their outputs are added to the residuals of those voltages.
-
VectorFitT &submodel(SubmodelsT symbol)
Submodel
symbol, an impedance or admittance operator.- Throws:
std::invalid_argument – for
y1ory2of a line withoutYp.
-
virtual Model::ConfigurationChecks verify() const override
Check the phase and conductor counts, the phase of each conductor, the length, and that the operators are
KbyK.- Returns:
The failed checks.
-
virtual int setAbsoluteTolerance(RealT rel_tol) override
Set the current tolerances to
rel_toltimes the system power base over the base voltage of each conductor’s phase at terminal 1.- Parameters:
rel_tol – [in] Relative tolerance of the integrator.
- Returns:
0.
- Pre:
The bus at
bus1has set its tolerances with the samerel_tol.
-
virtual int tagDifferentiable() override
Fill the tag() vector with proper indicators.
Note
For some models, this may be a no-op, and the vector returned by tag() will still be empty.
- Pre:
allocate() must have been called.
-
explicit LineLumped(const ModelDataT &data)