DPsim
Loading...
Searching...
No Matches
SP_Ph1_VDNode.cpp
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#include <dpsim-models/SP/SP_Ph1_VDNode.h>
10
11using namespace CPS;
12
13SP::Ph1::VDNode::VDNode(String uid, String name, Logger::Level logLevel)
14 : SimPowerComp<Complex>(uid, name, logLevel),
15 mDeltaSetPoint(mAttributes->create<Real>("Delta_set")),
16 mVoltageSetPointPerUnit(mAttributes->create<Real>("V_set_pu")) {}
17
18SP::Ph1::VDNode::VDNode(String uid, String name, Real vSetPointPerUnit,
19 Logger::Level logLevel)
20 : VDNode(uid, name, logLevel) {
21
22 **mVoltageSetPointPerUnit = vSetPointPerUnit;
23 **mDeltaSetPoint = 0.;
24}
25
26SP::Ph1::VDNode::VDNode(String uid, String name, Real vSetPointPerUnit,
27 Real delta, Logger::Level logLevel)
28 : VDNode(uid, name, logLevel) {
29
30 **mVoltageSetPointPerUnit = vSetPointPerUnit;
31 **mDeltaSetPoint = delta;
32}
Base class for all components that are transmitting power.