6#include <dpsim-models/Base/Base_Governor.h>
7#include <dpsim-models/Logger.h>
8#include <dpsim-models/SimSignalComp.h>
45class SteamTurbineGovernor :
public SimSignalComp,
49 std::shared_ptr<SteamGovernorParameters> mParameters;
56 Real mDelOm_2prev = 0;
61 const Attribute<Real>::Ptr mDelOm;
63 const Attribute<Real>::Ptr mP1;
65 const Attribute<Real>::Ptr mP;
67 const Attribute<Real>::Ptr mPgvLim;
69 const Attribute<Real>::Ptr mPgv;
79 explicit SteamTurbineGovernor(
const String &name)
80 : SimSignalComp(name, name), mDelOm(
mAttributes->create<Real>(
"DelOm")),
86 SteamTurbineGovernor(
const String &name, CPS::Logger::Level logLevel);
89 setParameters(std::shared_ptr<Base::GovernorParameters> parameters)
final;
91 Real
step(Real Omega, Real dt)
final;
Base model for Governors.
AttributeList::Ptr mAttributes
Attribute List.
Real Pmin
Minimum mechanical power (pu)
Real dPmax
Maximum rate of change of Pgv (pu/s)
Real T3
Time constant T3 of the actuator.
Real Pmax
Maximum mechanical power (pu)
Real dPmin
Minimum rate of change of Pgv (pu/s)
Real T2
T2 related to the lead in the controller K(1+sT2)
Real R
Droop — the value 1/K in the controller K(1+sT2)/(1+sT1)
Real OmRef
Speed setpoint (pu); typically 1.
Real T1
T1 related to the lag in the controller K(1+sT2)/(1+sT1)
Real Kbc
Anti-windup proportional gain.
void initializeStates(Real Pref) final
Set steady-state initial values (call after setParameters, before first step)
Real step(Real Omega, Real dt) final
Step the governor and return the valve/gate opening signal Pgv.