DPsim
Loading...
Searching...
No Matches
ExciterDC1Simp.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
15 public SharedFactory<ExciterDC1SimpParameters> {
16
17public:
19 Real Tr = 0;
21 Real Ta = 0;
23 Real Tef = 0;
25 Real Tf = 0;
27 Real Ka = 0;
29 Real Kef = 0;
31 Real Kf = 0;
33 Real Aef = 0;
35 Real Bef = 0;
37 Real MaxVa = 0;
39 Real MinVa = 0;
40};
41
46
48 public SimSignalComp,
49 public SharedFactory<ExciterDC1Simp> {
50
51private:
53 std::shared_ptr<ExciterDC1SimpParameters> mParameters;
54
55 // ### Exciter Variables ####
57 Real mVref = 0;
59 Real mVr_prev = 0;
61 Real mVf_prev = 0;
63 Real mVa_prev = 0;
65 Real mEf_prev = 0;
66
68 const Attribute<Real>::Ptr mVh;
70 const Attribute<Real>::Ptr mVr;
72 Real mVf;
74 Real mVin;
76 Real mVa;
78 Real mVsat;
80 const Attribute<Real>::Ptr mEf;
81
82public:
84 ExciterDC1Simp(const String &name,
85 CPS::Logger::Level logLevel = Logger::Level::info);
87 void setParameters(std::shared_ptr<Base::ExciterParameters> parameters) final;
89 void initializeStates(Real Vh_init, Real Vf_init) final;
91 Real step(Real mVd, Real mVq, Real dt, Real Vpss = 0) final;
92};
93} // namespace Signal
94} // namespace CPS
Base model for exciters.
void initializeStates(Real Vh_init, Real Vf_init) final
Initializes exciter variables.
ExciterDC1Simp(const String &name, CPS::Logger::Level logLevel=Logger::Level::info)
Constructor.
void setParameters(std::shared_ptr< Base::ExciterParameters > parameters) final
Initializes exciter parameters.
Real step(Real mVd, Real mVq, Real dt, Real Vpss=0) final
Performs an step to update field voltage value.
Real Tef
Field circuit time constant.
Real Tf
Stabilizer time constant.
Real Bef
Second ceiling coefficient.
Real Kef
Field circuit integral deviation.
Real Tr
Transducer time constant (s)
Real Aef
First ceiling coefficient.
Real Ta
Amplifier time constant.