DPsim
SP_Ph1_PVNode.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 #include <dpsim-models/SimPowerComp.h>
11 
12 namespace CPS {
13 namespace SP {
14 namespace Ph1 {
15 
16 class PVNode : public SimPowerComp<Complex>, public SharedFactory<PVNode> {
17 public:
18  const Attribute<Real>::Ptr mVoltageSetPoint;
19  const Attribute<Real>::Ptr mPowerSetPoint;
20  const Attribute<Real>::Ptr mVoltagePerUnit;
21 
22  PVNode(String uid, String name, Logger::Level logLevel = Logger::Level::off);
23 
24  PVNode(String uid, String name, Real power, Real vSetPoint,
25  Logger::Level logLevel = Logger::Level::off);
26 
27  PVNode(String uid, String name, Real power, Real vSetPoint, Real maxQ,
28  Real ratedU, Real ratedS, Logger::Level logLevel = Logger::Level::off);
29 };
30 
31 } // namespace Ph1
32 } // namespace SP
33 } // namespace CPS
String uid()
Returns unique id.
Base class for all components that are transmitting power.
Definition: SimPowerComp.h:17