DPsim
Loading...
Searching...
No Matches
SP_Ph1_PQNode.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/SimPowerComp.h>
12
13namespace CPS {
14namespace SP {
15namespace Ph1 {
16
17class PQNode : public SimPowerComp<Complex>, public SharedFactory<PQNode> {
18public:
19 const Attribute<Real>::Ptr mPowerNom;
20 const Attribute<Real>::Ptr mReactivePowerNom;
21 const Attribute<Real>::Ptr mPower;
22 const Attribute<Real>::Ptr mReactivePower;
23
24 PQNode(String uid, String name, Logger::Level logLevel = Logger::Level::off);
25
26 PQNode(String uid, String name, Real power, Real reactive_power,
27 Logger::Level logLevel = Logger::Level::off);
28
29 void initializeFromTerminal();
30 void setPerUnitSystem();
31};
32
33} // namespace Ph1
34} // namespace SP
35} // namespace CPS
String uid()
Returns unique id.
SimPowerComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)