DPsim
Loading...
Searching...
No Matches
Base_Governor.h
1// SPDX-FileCopyrightText: 2026 Institute for Automation of Complex Power Systems, EONERC, RWTH Aachen University
2// SPDX-License-Identifier: MPL-2.0
3
4#pragma once
5
6#include <dpsim-models/Definitions.h>
7
8namespace CPS {
9namespace Base {
10
11class GovernorParameters {
12public:
13 GovernorParameters() {}
14 virtual ~GovernorParameters() = default;
15};
16
18class Governor {
19public:
20 virtual void
21 setParameters(std::shared_ptr<Base::GovernorParameters> parameters) = 0;
22
24 virtual void initializeStates(Real PmRef) = 0;
25
27 virtual Real step(Real Omega, Real dt) = 0;
28
29 virtual ~Governor() = default;
30};
31
32} // namespace Base
33} // namespace CPS
Base model for Governors.
virtual Real step(Real Omega, Real dt)=0
Step the governor and return the valve/gate opening signal Pgv.
virtual void initializeStates(Real PmRef)=0
Set steady-state initial values (call after setParameters, before first step)