DPsim
Loading...
Searching...
No Matches
ExciterStatic.h
1// SPDX-FileCopyrightText: 2025 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/Base/Base_Exciter.h>
7#include <dpsim-models/Logger.h>
8#include <dpsim-models/SimSignalComp.h>
9
10namespace CPS {
11namespace Signal {
12
14 public SharedFactory<ExciterStaticParameters> {
15
16public:
18 Real Tr = 0;
20 Real Ta = 0;
22 Real Tb = 0;
24 Real Te = 0;
26 Real Ka = 0;
27
29 Real MaxEfd = 0;
31 Real MinEfd = 0;
32
34 Real Kbc = 0;
35};
36
40 public SimSignalComp,
41 public SharedFactory<ExciterStatic> {
42
43private:
45 std::shared_ptr<ExciterStaticParameters> mParameters;
47 Real mVref = 0;
49 Real mVh = 0;
51 Real mVr = 0;
52 Real mVr_prev = 0;
54 Real mXb = 0;
55 Real mXb_prev = 0;
57 Real mVin = 0;
59 Real mVe;
61 Real mEfd = 0;
63 Real mEfdLim = 0;
64
66 Real mCa;
67 Real mCb;
68
69public:
71 ExciterStatic(const String &name,
72 Logger::Level logLevel = Logger::Level::info);
74 void setParameters(std::shared_ptr<Base::ExciterParameters> parameters) final;
76 void initializeStates(Real Vh_init, Real Vf_init) final;
78 Real step(Real Vd, Real Vq, Real dt, Real Vpss = 0) final;
79};
80} // namespace Signal
81} // namespace CPS
Base model for exciters.
void initializeStates(Real Vh_init, Real Vf_init) final
Initializes exciter variables.
void setParameters(std::shared_ptr< Base::ExciterParameters > parameters) final
Initializes exciter parameters.
Real step(Real Vd, Real Vq, Real dt, Real Vpss=0) final
Performs an step to update field voltage value.
ExciterStatic(const String &name, Logger::Level logLevel=Logger::Level::info)
Constructor.
Real Tr
Transducer time constant (s) (optional parameter)
Real Kbc
Proportional gain of anti-Windup.
Real Ta
Time constant of the numerator in the lead lag block (s)
Real Tb
Time constant of the denumerator in the lead lag block (s)
Real Ka
Proportional controller with the gain Ka.
Real Te
Time constant of the exciter machine (s)