DPsim
TurbineGovernor.h
1 /* Copyright 2017-2021 Institute for Automation of Complex Power Systems,
2  * EONERC, RWTH Aachen University
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7  *********************************************************************************/
8 
9 #pragma once
10 
11 #include <dpsim-models/Logger.h>
12 #include <dpsim-models/SimSignalComp.h>
13 
14 namespace CPS {
15 namespace Signal {
16 
19  public SharedFactory<TurbineGovernor> {
20 protected:
21  // ### Steam Turbine Parameters ####
23  Real mTa;
25  Real mTb;
27  Real mTc;
29  Real mFa;
31  Real mFb;
33  Real mFc;
34 
35  // ### Regulator ####
37  Real mK;
38 
39  // ### Speed Relay and servo motor ####
41  Real mTsr;
43  Real mTsm;
45  Real mLc1 = 0.1;
47  Real mLc2 = -1;
48 
49  // ### Vaariables ###
51  Real mTm = 0;
53  Real mVcv = 0;
55  Real mpVcv = 0;
57  Real mPb = 1;
59  Real mOmRef = 1;
61  Real mOm = 0;
63  Real mPmRef;
65  Real Psr_in = 0;
67  Real Psm_in = 0;
68 
69  Real AuxVar = 0;
70 
71  Real T1;
72  Real T2;
73 
74 public:
76  TurbineGovernor(String name) : SimSignalComp(name, name) {}
77 
79  TurbineGovernor(String name, CPS::Logger::Level logLevel)
80  : SimSignalComp(name, name, logLevel) {}
81 
83  void setParameters(Real Ta, Real Tb, Real Tc, Real Fa, Real Fb, Real Fc,
84  Real K, Real Tsr, Real Tsm);
86  void initialize(Real PmRef, Real Tm_init);
88  Real step(Real mOm, Real mOmRef, Real PmRef, Real dt);
89 };
90 } // namespace Signal
91 } // namespace CPS
Turbine governor model to be used with synchronous generator.
TurbineGovernor(String name, CPS::Logger::Level logLevel)
Constructor with log level.
Real Psm_in
Input of servor motor.
Real mLc2
Closing rate limit.
Real mVcv
Valve position.
Real mLc1
Opening rate limit.
Real mPb
Boiler pressure.
Real mFb
Fraction of total turbine power generated by IP section.
Real mTsm
Time constant of servo motor.
Real mTb
Time constant of reheater.
Real mTa
Time constant of main inlet volume and steam chest.
Real mFc
Fraction of total turbine power generated by LP section.
Real mTc
Time constant of cross over piping and LP inlet volumes.
Real mpVcv
Valve position changing rate.
Real step(Real mOm, Real mOmRef, Real PmRef, Real dt)
Performs an step to update field voltage value.
Real mTsr
Time constant of speed relay.
Real mFa
Fraction of total turbine power generated by HP section.
Real mTm
Mechanical Torque in pu (output of steam turbine)
Real mPmRef
Power Reference.
Real Psr_in
Input of speed realy.
void setParameters(Real Ta, Real Tb, Real Tc, Real Fa, Real Fb, Real Fc, Real K, Real Tsr, Real Tsm)
Initializes exciter parameters.
Real mOmRef
Speed reference.