DPsim
Base_Ph1_CurrentSource.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/Definitions.h>
12 
13 namespace CPS {
14 namespace Base {
15 namespace Ph1 {
17 protected:
19  Complex mCurrentRef;
21  Real mSrcFreq = -1;
22 
23 public:
25  void setParameters(Complex currentRef, Real srcFreq = -1) {
26  mCurrentRef = currentRef;
27  mSrcFreq = srcFreq;
28  }
29 };
30 } // namespace Ph1
31 } // namespace Base
32 } // namespace CPS
Real mSrcFreq
Source frequency [Hz].
Complex mCurrentRef
Current set point [A].
void setParameters(Complex currentRef, Real srcFreq=-1)
Sets model specific parameters.