Template Class Genrou
Defined in File Genrou.hpp
Inheritance Relationships
Base Type
public GridKit::PhasorDynamics::Component< scalar_type, index_type >(Template Class Component)
Class Documentation
-
template<typename scalar_type, typename index_type>
class Genrou : public GridKit::PhasorDynamics::Component<scalar_type, index_type> Public Functions
-
Genrou(BusT *bus, IdxT unit_id)
Constructor for a GENROU generator model with saturation.
Arguments passed to ModelEvaluatorImpl:
Number of equations = 0
Number of independent variables = 0
Number of quadratures = 0
Number of optimization parameters = 0
-
Genrou(BusT *bus, SignalT *omega, SignalT *pmech, const ModelDataT &data)
Constructor for a GENROU generator model with saturation.
-
Genrou(BusT *bus, SignalT *omega, SignalT *pmech, SignalT *efd, const ModelDataT &data)
Constructor for a GENROU generator model with saturation.
-
Genrou(BusT *bus, const ModelDataT &data)
Constructor for a GENROU generator model with saturation.
-
Genrou(BusT *bus, IdxT unit_id, RealT p0, RealT q0, RealT H, RealT D, RealT Ra, RealT Tdop, RealT Tdopp, RealT Tqopp, RealT Tqop, RealT Xd, RealT Xdp, RealT Xdpp, RealT Xq, RealT Xqp, RealT Xqpp, RealT Xl, RealT S10, RealT S12)
Constructor for a GENROU generator model with saturation.
-
virtual int setGridKitComponentID(IdxT) final override
Set the component ID.
-
virtual int allocate() final override
allocate method computes sparsity pattern of the Jacobian.
-
virtual int verify() const final override
verify method checks that attached signals are also linked
-
virtual int initialize() final override
Initialization of the branch model
-
virtual int tagDifferentiable() final override
Identify differential variables.
-
virtual int evaluateResidual() final override
Residual evaluation and contribution to the connected bus.
-
virtual int evaluateJacobian() final override
Jacobian evaluation not implemented yet.
Jacobian evaluation experimental.
- Returns:
int - error code, 0 = success
-
ScalarT getSpeed()
Access generator relative speed.
- Returns:
int - error code, 0 = success
-
inline auto getSignals() -> ComponentSignals<ScalarT, IdxT, GenrouInternalVariables, GenrouExternalVariables>&
Get the
ComponentSignalsfrom thisGenrou
-
virtual const Model::VariableMonitorBase *getMonitor() const override
Get non-owning reference to monitor.
-
Genrou(BusT *bus, IdxT unit_id)