Template Class Pll
Defined in File Pll.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 Pll : public GridKit::EMT::Component<scalar_type, index_type> Synchronous-reference-frame PLL on a three-phase bus.
Public Functions
-
explicit Pll(const ModelDataT &data)
Construct a PLL on a three-phase voltage.
Layout: internal variables
thetaandxof size 1, inputvof size 3, and outputomegaof size 1.
-
virtual Model::ConfigurationChecks verify() const override
Check that the gains are positive.
- Returns:
The failed checks.
-
virtual int setAbsoluteTolerance(RealT rel_tol) override
Set the tolerance of the angle to
rel_tolradians, and those of the integrator state and of the frequency torel_toltimes the system base frequency.- Parameters:
rel_tol – [in] Relative tolerance of the integrator.
- Returns:
0.
-
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.
-
virtual int evaluateResidual() override
Add the residual of a linear model to the system residual.
The residual of a linear model is its constant partials dF/dy and dF/dy’ applied to the values and the derivatives, so no kernel is evaluated. A model with any other term forwards
evaluateResidualto its kernels.- Returns:
0.
- Pre:
tagDifferentiablehas stored the partials.
-
virtual int evaluateOutputs() override
Evaluate every output at the current values, whether or not it is connected.
-
virtual int evaluateJacobian() override
Set the Jacobian entries to dF/dy + alpha dF/dy’.
- Returns:
0.
- Pre:
tagDifferentiablehas stored the partials of the entries.
-
explicit Pll(const ModelDataT &data)